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

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

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: fix tests Created 3 years, 7 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/MouseEvent.h
diff --git a/third_party/WebKit/Source/core/events/MouseEvent.h b/third_party/WebKit/Source/core/events/MouseEvent.h
index eec939b184365b9c182f7d28dbb9afca903c9c74..1336e12c162299cbfc9523250efa263e88d33e22 100644
--- a/third_party/WebKit/Source/core/events/MouseEvent.h
+++ b/third_party/WebKit/Source/core/events/MouseEvent.h
@@ -47,6 +47,8 @@ class CORE_EXPORT MouseEvent : public UIEventWithKeyState {
// Synthetic mouse events generated without a position, for example those
// generated from keyboard input.
kPositionless,
+ // Synthetic mouse event derived from Select All (used for context menu).
+ kFromSelectAll,
};
static MouseEvent* Create() { return new MouseEvent; }
@@ -110,6 +112,8 @@ class CORE_EXPORT MouseEvent : public UIEventWithKeyState {
bool FromTouch() const { return synthetic_event_type_ == kFromTouch; }
+ bool FromSelectAll() const { return synthetic_event_type_ == kFromSelectAll; }
+
const AtomicString& InterfaceName() const override;
bool IsMouseEvent() const override;

Powered by Google App Engine
This is Rietveld 408576698