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

Unified Diff: third_party/WebKit/Source/web/ContextMenuClientImpl.h

Issue 2813463002: Factor out code to set up editing-related context menu items to a static function. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ContextMenuClientImpl.h
diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.h b/third_party/WebKit/Source/web/ContextMenuClientImpl.h
index 63c87cdc30b080e20b08b2280bfee6cef8494a08..f69612fd7ab112ad43d58e78d7374a5e8b8c9b79 100644
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.h
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.h
@@ -35,6 +35,8 @@
namespace blink {
+class Document;
+class Editor;
class WebViewImpl;
struct WebContextMenuData;
@@ -47,6 +49,7 @@ class ContextMenuClientImpl final : public ContextMenuClient {
private:
void PopulateCustomMenuItems(const ContextMenu*, WebContextMenuData*);
+ static int ComputeEditFlags(Document&, Editor&);
bool ShouldShowContextMenuFromTouch(const blink::WebContextMenuData&);
WebViewImpl* web_view_;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698