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

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

Issue 2890143003: Move ContextMenu show/hide state tracking to WebContents (Closed)
Patch Set: Fixing another compile error 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: 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 2eb11eabb52c7048c0543d2f0544ef29028b7c2f..c821b5ee8854161faa095d10854a79782d9e6b97 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -452,6 +452,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;
@@ -710,6 +712,7 @@ class CONTENT_EXPORT WebContentsImpl
bool AddDomainInfoToRapporSample(rappor::Sample* sample) override;
void FocusedNodeTouched(bool editable) override;
void DidReceiveCompositorFrame() override;
+ bool IsShowingContextMenuOnPage() const override;
// RenderFrameHostManager::Delegate ------------------------------------------
@@ -1587,6 +1590,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;

Powered by Google App Engine
This is Rietveld 408576698