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

Unified Diff: content/public/browser/web_contents.h

Issue 2890143003: Move ContextMenu show/hide state tracking to WebContents (Closed)
Patch Set: Remove #if def Created 3 years, 6 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 | « content/public/browser/render_widget_host_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index ebd18a09057faf726baa082d4d1e9d41860173ee..989cfea30e45ca2215c9b406be735236e418a2f4 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -782,6 +782,12 @@ class WebContents : public PageNavigator,
// Returns true if the current focused element is editable.
virtual bool IsFocusedElementEditable() = 0;
+ // Returns true if a context menu is showing on the page.
+ virtual bool IsShowingContextMenu() const = 0;
+
+ // Tells the WebContents whether the context menu is showing.
+ virtual void SetShowingContextMenu(bool showing) = 0;
+
#if defined(OS_ANDROID)
CONTENT_EXPORT static WebContents* FromJavaWebContents(
const base::android::JavaRef<jobject>& jweb_contents_android);
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698