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

Unified Diff: content/browser/web_contents/web_contents_impl.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
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 3b589327633783567dc7972421fabc7545e49d34..25da61204869a9034a3ea7807a97f24a099c3aeb 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -456,6 +456,8 @@ class CONTENT_EXPORT WebContentsImpl
void SetIsOverlayContent(bool is_overlay_content) override;
bool IsFocusedElementEditable() override;
void ClearFocusedElement() override;
+ bool IsShowingContextMenu() const override;
+ void SetShowingContextMenu(bool showing) override;
#if defined(OS_ANDROID)
base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override;
@@ -720,6 +722,7 @@ class CONTENT_EXPORT WebContentsImpl
ukm::SourceId ukm_source_id) override;
void FocusedNodeTouched(bool editable) override;
void DidReceiveCompositorFrame() override;
+ bool IsShowingContextMenuOnPage() const override;
// RenderFrameHostManager::Delegate ------------------------------------------
@@ -1605,6 +1608,8 @@ class CONTENT_EXPORT WebContentsImpl
// Whether this WebContents is for content overlay.
bool is_overlay_content_;
+ bool showing_context_menu_;
+
int currently_playing_video_count_ = 0;
bool has_persistent_video_ = false;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698