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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 bool WasRecentlyAudible() override; 445 bool WasRecentlyAudible() override;
446 void GetManifest(const GetManifestCallback& callback) override; 446 void GetManifest(const GetManifestCallback& callback) override;
447 void ExitFullscreen(bool will_cause_resize) override; 447 void ExitFullscreen(bool will_cause_resize) override;
448 void ResumeLoadingCreatedWebContents() override; 448 void ResumeLoadingCreatedWebContents() override;
449 void OnPasswordInputShownOnHttp() override; 449 void OnPasswordInputShownOnHttp() override;
450 void OnAllPasswordInputsHiddenOnHttp() override; 450 void OnAllPasswordInputsHiddenOnHttp() override;
451 void OnCreditCardInputShownOnHttp() override; 451 void OnCreditCardInputShownOnHttp() override;
452 void SetIsOverlayContent(bool is_overlay_content) override; 452 void SetIsOverlayContent(bool is_overlay_content) override;
453 bool IsFocusedElementEditable() override; 453 bool IsFocusedElementEditable() override;
454 void ClearFocusedElement() override; 454 void ClearFocusedElement() override;
455 bool IsShowingContextMenu() const override;
456 void SetShowingContextMenu(bool showing) override;
455 457
456 #if defined(OS_ANDROID) 458 #if defined(OS_ANDROID)
457 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; 459 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override;
458 virtual WebContentsAndroid* GetWebContentsAndroid(); 460 virtual WebContentsAndroid* GetWebContentsAndroid();
459 void ActivateNearestFindResult(float x, float y) override; 461 void ActivateNearestFindResult(float x, float y) override;
460 void RequestFindMatchRects(int current_version) override; 462 void RequestFindMatchRects(int current_version) override;
461 service_manager::InterfaceProvider* GetJavaInterfaces() override; 463 service_manager::InterfaceProvider* GetJavaInterfaces() override;
462 #elif defined(OS_MACOSX) 464 #elif defined(OS_MACOSX)
463 void SetAllowOtherViews(bool allow) override; 465 void SetAllowOtherViews(bool allow) override;
464 bool GetAllowOtherViews() override; 466 bool GetAllowOtherViews() override;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 bool HasMouseLock(RenderWidgetHostImpl* render_widget_host) override; 705 bool HasMouseLock(RenderWidgetHostImpl* render_widget_host) override;
704 RenderWidgetHostImpl* GetMouseLockWidget() override; 706 RenderWidgetHostImpl* GetMouseLockWidget() override;
705 void OnRenderFrameProxyVisibilityChanged(bool visible) override; 707 void OnRenderFrameProxyVisibilityChanged(bool visible) override;
706 void SendScreenRects() override; 708 void SendScreenRects() override;
707 TextInputManager* GetTextInputManager() override; 709 TextInputManager* GetTextInputManager() override;
708 bool OnUpdateDragCursor() override; 710 bool OnUpdateDragCursor() override;
709 bool IsWidgetForMainFrame(RenderWidgetHostImpl* render_widget_host) override; 711 bool IsWidgetForMainFrame(RenderWidgetHostImpl* render_widget_host) override;
710 bool AddDomainInfoToRapporSample(rappor::Sample* sample) override; 712 bool AddDomainInfoToRapporSample(rappor::Sample* sample) override;
711 void FocusedNodeTouched(bool editable) override; 713 void FocusedNodeTouched(bool editable) override;
712 void DidReceiveCompositorFrame() override; 714 void DidReceiveCompositorFrame() override;
715 bool IsShowingContextMenuOnPage() const override;
713 716
714 // RenderFrameHostManager::Delegate ------------------------------------------ 717 // RenderFrameHostManager::Delegate ------------------------------------------
715 718
716 bool CreateRenderViewForRenderManager( 719 bool CreateRenderViewForRenderManager(
717 RenderViewHost* render_view_host, 720 RenderViewHost* render_view_host,
718 int opener_frame_routing_id, 721 int opener_frame_routing_id,
719 int proxy_routing_id, 722 int proxy_routing_id,
720 const FrameReplicationState& replicated_frame_state) override; 723 const FrameReplicationState& replicated_frame_state) override;
721 void CreateRenderWidgetHostViewForRenderManager( 724 void CreateRenderWidgetHostViewForRenderManager(
722 RenderViewHost* render_view_host) override; 725 RenderViewHost* render_view_host) override;
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 // there's no RenderWidgetHost holding a lock. 1583 // there's no RenderWidgetHost holding a lock.
1581 RenderWidgetHostImpl* mouse_lock_widget_; 1584 RenderWidgetHostImpl* mouse_lock_widget_;
1582 1585
1583 #if defined(OS_ANDROID) 1586 #if defined(OS_ANDROID)
1584 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; 1587 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_;
1585 #endif 1588 #endif
1586 1589
1587 // Whether this WebContents is for content overlay. 1590 // Whether this WebContents is for content overlay.
1588 bool is_overlay_content_; 1591 bool is_overlay_content_;
1589 1592
1593 bool showing_context_menu_;
1594
1590 int currently_playing_video_count_ = 0; 1595 int currently_playing_video_count_ = 0;
1591 1596
1592 bool has_persistent_video_ = false; 1597 bool has_persistent_video_ = false;
1593 1598
1594 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; 1599 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
1595 base::WeakPtrFactory<WebContentsImpl> weak_factory_; 1600 base::WeakPtrFactory<WebContentsImpl> weak_factory_;
1596 1601
1597 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1602 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1598 }; 1603 };
1599 1604
(...skipping 10 matching lines...) Expand all
1610 // Adds/removes a callback called on creation of each new WebContents. 1615 // Adds/removes a callback called on creation of each new WebContents.
1611 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1616 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1612 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1617 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1613 1618
1614 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1619 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1615 }; 1620 };
1616 1621
1617 } // namespace content 1622 } // namespace content
1618 1623
1619 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1624 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698