Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: third_party/WebKit/Source/core/events/UIEventWithKeyState.h

Issue 2655873003: Remove PlatformEvent it is no longer used. (Closed)
Patch Set: Remove PlatformEvent it is no longer used. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/UIEventWithKeyState.h
diff --git a/third_party/WebKit/Source/core/events/UIEventWithKeyState.h b/third_party/WebKit/Source/core/events/UIEventWithKeyState.h
index 8556c788325211a05c7c1260a81bca0bf5221082..aa89fc6316451530be062ee26042079310bd17b5 100644
--- a/third_party/WebKit/Source/core/events/UIEventWithKeyState.h
+++ b/third_party/WebKit/Source/core/events/UIEventWithKeyState.h
@@ -27,17 +27,16 @@
#include "core/CoreExport.h"
#include "core/events/EventModifierInit.h"
#include "core/events/UIEvent.h"
-#include "platform/PlatformEvent.h"
#include "public/platform/WebInputEvent.h"
namespace blink {
class CORE_EXPORT UIEventWithKeyState : public UIEvent {
public:
- bool ctrlKey() const { return m_modifiers & PlatformEvent::CtrlKey; }
- bool shiftKey() const { return m_modifiers & PlatformEvent::ShiftKey; }
- bool altKey() const { return m_modifiers & PlatformEvent::AltKey; }
- bool metaKey() const { return m_modifiers & PlatformEvent::MetaKey; }
+ bool ctrlKey() const { return m_modifiers & WebInputEvent::ControlKey; }
+ bool shiftKey() const { return m_modifiers & WebInputEvent::ShiftKey; }
+ bool altKey() const { return m_modifiers & WebInputEvent::AltKey; }
+ bool metaKey() const { return m_modifiers & WebInputEvent::MetaKey; }
// We ignore the new tab modifiers (ctrl or meta, depending on OS) set by
// JavaScript when processing events. However, scripts running in isolated
@@ -55,15 +54,13 @@ class CORE_EXPORT UIEventWithKeyState : public UIEvent {
bool altKey,
bool metaKey);
- static void setFromPlatformModifiers(EventModifierInit&,
- const PlatformEvent::Modifiers);
static void setFromWebInputEventModifiers(EventModifierInit&,
WebInputEvent::Modifiers);
bool getModifierState(const String& keyIdentifier) const;
- PlatformEvent::Modifiers modifiers() const {
- return static_cast<PlatformEvent::Modifiers>(m_modifiers);
+ WebInputEvent::Modifiers modifiers() const {
+ return static_cast<WebInputEvent::Modifiers>(m_modifiers);
}
protected:
@@ -74,7 +71,7 @@ class CORE_EXPORT UIEventWithKeyState : public UIEvent {
bool cancelable,
AbstractView*,
int detail,
- PlatformEvent::Modifiers,
+ WebInputEvent::Modifiers,
TimeTicks platformTimeStamp,
InputDeviceCapabilities* sourceCapabilities = nullptr);
UIEventWithKeyState(const AtomicString& type,
« no previous file with comments | « third_party/WebKit/Source/core/events/TouchEvent.cpp ('k') | third_party/WebKit/Source/core/events/UIEventWithKeyState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698