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

Unified Diff: third_party/WebKit/public/web/WebWidget.h

Issue 2894043002: Add machinery to show touch editing context menus in OOPIFs. (Closed)
Patch Set: Add DCHECK, rebase test. 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/public/web/WebWidget.h
diff --git a/third_party/WebKit/public/web/WebWidget.h b/third_party/WebKit/public/web/WebWidget.h
index 4dae362cddce6a367577b5c35ed1a5c488d30abc..70c6930d8a40bf9460043fa6ab387370e1cc7b13 100644
--- a/third_party/WebKit/public/web/WebWidget.h
+++ b/third_party/WebKit/public/web/WebWidget.h
@@ -31,6 +31,10 @@
#ifndef WebWidget_h
#define WebWidget_h
+#include "WebCompositionUnderline.h"
+#include "WebMenuSourceType.h"
+#include "WebRange.h"
+#include "WebTextDirection.h"
dcheng 2017/05/26 17:18:45 Btw since clang-format is changing these anyway, d
#include "public/platform/WebBrowserControlsState.h"
#include "public/platform/WebCanvas.h"
#include "public/platform/WebCommon.h"
@@ -40,9 +44,6 @@
#include "public/platform/WebRect.h"
#include "public/platform/WebSize.h"
#include "public/platform/WebTextInputInfo.h"
-#include "WebCompositionUnderline.h"
-#include "WebRange.h"
-#include "WebTextDirection.h"
namespace blink {
@@ -224,6 +225,9 @@ class WebWidget {
return false;
}
+ // Called by client to request showing the context menu.
+ virtual void ShowContextMenu(WebMenuSourceType) {}
+
protected:
~WebWidget() {}
};

Powered by Google App Engine
This is Rietveld 408576698