| OLD | NEW |
| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 device::WakeLockServiceContext* GetWakeLockServiceContext() override; | 486 device::WakeLockServiceContext* GetWakeLockServiceContext() override; |
| 487 void EnterFullscreenMode(const GURL& origin) override; | 487 void EnterFullscreenMode(const GURL& origin) override; |
| 488 void ExitFullscreenMode(bool will_cause_resize) override; | 488 void ExitFullscreenMode(bool will_cause_resize) override; |
| 489 bool ShouldRouteMessageEvent( | 489 bool ShouldRouteMessageEvent( |
| 490 RenderFrameHost* target_rfh, | 490 RenderFrameHost* target_rfh, |
| 491 SiteInstance* source_site_instance) const override; | 491 SiteInstance* source_site_instance) const override; |
| 492 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 492 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 493 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 493 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 494 const GURL& url) override; | 494 const GURL& url) override; |
| 495 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 495 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
| 496 void OnFocusedElementChangedInFrame( |
| 497 RenderFrameHostImpl* frame, |
| 498 const gfx::Rect& bounds_in_root_view) override; |
| 496 | 499 |
| 497 // RenderViewHostDelegate ---------------------------------------------------- | 500 // RenderViewHostDelegate ---------------------------------------------------- |
| 498 RenderViewHostDelegateView* GetDelegateView() override; | 501 RenderViewHostDelegateView* GetDelegateView() override; |
| 499 bool OnMessageReceived(RenderViewHost* render_view_host, | 502 bool OnMessageReceived(RenderViewHost* render_view_host, |
| 500 const IPC::Message& message) override; | 503 const IPC::Message& message) override; |
| 501 // RenderFrameHostDelegate has the same method, so list it there because this | 504 // RenderFrameHostDelegate has the same method, so list it there because this |
| 502 // interface is going away. | 505 // interface is going away. |
| 503 // WebContents* GetAsWebContents() override; | 506 // WebContents* GetAsWebContents() override; |
| 504 void RenderViewCreated(RenderViewHost* render_view_host) override; | 507 void RenderViewCreated(RenderViewHost* render_view_host) override; |
| 505 void RenderViewReady(RenderViewHost* render_view_host) override; | 508 void RenderViewReady(RenderViewHost* render_view_host) override; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 SessionStorageNamespace* GetSessionStorageNamespace( | 559 SessionStorageNamespace* GetSessionStorageNamespace( |
| 557 SiteInstance* instance) override; | 560 SiteInstance* instance) override; |
| 558 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; | 561 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; |
| 559 double GetPendingPageZoomLevel() override; | 562 double GetPendingPageZoomLevel() override; |
| 560 FrameTree* GetFrameTree() override; | 563 FrameTree* GetFrameTree() override; |
| 561 void SetIsVirtualKeyboardRequested(bool requested) override; | 564 void SetIsVirtualKeyboardRequested(bool requested) override; |
| 562 bool IsVirtualKeyboardRequested() override; | 565 bool IsVirtualKeyboardRequested() override; |
| 563 bool IsOverridingUserAgent() override; | 566 bool IsOverridingUserAgent() override; |
| 564 bool IsJavaScriptDialogShowing() const override; | 567 bool IsJavaScriptDialogShowing() const override; |
| 565 bool HideDownloadUI() const override; | 568 bool HideDownloadUI() const override; |
| 569 bool IsFocusedElementEditable() override; |
| 570 void ClearFocusedElement() override; |
| 566 | 571 |
| 567 // NavigatorDelegate --------------------------------------------------------- | 572 // NavigatorDelegate --------------------------------------------------------- |
| 568 | 573 |
| 569 void DidStartNavigation(NavigationHandle* navigation_handle) override; | 574 void DidStartNavigation(NavigationHandle* navigation_handle) override; |
| 570 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; | 575 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; |
| 571 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; | 576 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; |
| 572 void DidFinishNavigation(NavigationHandle* navigation_handle) override; | 577 void DidFinishNavigation(NavigationHandle* navigation_handle) override; |
| 573 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, | 578 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
| 574 const GURL& validated_url, | 579 const GURL& validated_url, |
| 575 bool is_error_page, | 580 bool is_error_page, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 void LostCapture(RenderWidgetHostImpl* render_widget_host) override; | 668 void LostCapture(RenderWidgetHostImpl* render_widget_host) override; |
| 664 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override; | 669 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override; |
| 665 bool HasMouseLock(RenderWidgetHostImpl* render_widget_host) override; | 670 bool HasMouseLock(RenderWidgetHostImpl* render_widget_host) override; |
| 666 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, | 671 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, |
| 667 const std::vector<uint8_t>& proto) override; | 672 const std::vector<uint8_t>& proto) override; |
| 668 void OnRenderFrameProxyVisibilityChanged(bool visible) override; | 673 void OnRenderFrameProxyVisibilityChanged(bool visible) override; |
| 669 void SendScreenRects() override; | 674 void SendScreenRects() override; |
| 670 void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) override; | 675 void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) override; |
| 671 TextInputManager* GetTextInputManager() override; | 676 TextInputManager* GetTextInputManager() override; |
| 672 bool OnUpdateDragCursor() override; | 677 bool OnUpdateDragCursor() override; |
| 678 void FocusedNodeTouched(bool editable) override; |
| 673 | 679 |
| 674 // RenderFrameHostManager::Delegate ------------------------------------------ | 680 // RenderFrameHostManager::Delegate ------------------------------------------ |
| 675 | 681 |
| 676 bool CreateRenderViewForRenderManager( | 682 bool CreateRenderViewForRenderManager( |
| 677 RenderViewHost* render_view_host, | 683 RenderViewHost* render_view_host, |
| 678 int opener_frame_routing_id, | 684 int opener_frame_routing_id, |
| 679 int proxy_routing_id, | 685 int proxy_routing_id, |
| 680 const FrameReplicationState& replicated_frame_state) override; | 686 const FrameReplicationState& replicated_frame_state) override; |
| 681 void CreateRenderWidgetHostViewForRenderManager( | 687 void CreateRenderWidgetHostViewForRenderManager( |
| 682 RenderViewHost* render_view_host) override; | 688 RenderViewHost* render_view_host) override; |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1493 // Adds/removes a callback called on creation of each new WebContents. | 1499 // Adds/removes a callback called on creation of each new WebContents. |
| 1494 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1500 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1495 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1501 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1496 | 1502 |
| 1497 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1503 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1498 }; | 1504 }; |
| 1499 | 1505 |
| 1500 } // namespace content | 1506 } // namespace content |
| 1501 | 1507 |
| 1502 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1508 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |