mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
Userland: Port lists of mime types to String
This commit is contained in:
parent
e75d694974
commit
9ce2682ce6
15 changed files with 18 additions and 26 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <Kernel/API/KeyCode.h>
|
||||
|
@ -460,7 +461,7 @@ private:
|
|||
|
||||
class DragEvent final : public Event {
|
||||
public:
|
||||
DragEvent(Type type, Gfx::IntPoint position, Vector<DeprecatedString> mime_types)
|
||||
DragEvent(Type type, Gfx::IntPoint position, Vector<String> mime_types)
|
||||
: Event(type)
|
||||
, m_position(position)
|
||||
, m_mime_types(move(mime_types))
|
||||
|
@ -468,11 +469,11 @@ public:
|
|||
}
|
||||
|
||||
Gfx::IntPoint position() const { return m_position; }
|
||||
Vector<DeprecatedString> const& mime_types() const { return m_mime_types; }
|
||||
Vector<String> const& mime_types() const { return m_mime_types; }
|
||||
|
||||
private:
|
||||
Gfx::IntPoint m_position;
|
||||
Vector<DeprecatedString> m_mime_types;
|
||||
Vector<String> m_mime_types;
|
||||
};
|
||||
|
||||
class DropEvent final : public Event {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue