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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2571583008: Support tracking focused element for OOPIFs. (Closed)
Patch Set: Do not call ScrollFocusedEditableNodeIntoRect for OOPIFs. Created 3 years, 12 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 ScreenOrientationProvider* GetScreenOrientationProvider() override; 478 ScreenOrientationProvider* GetScreenOrientationProvider() override;
479 void EnterFullscreenMode(const GURL& origin) override; 479 void EnterFullscreenMode(const GURL& origin) override;
480 void ExitFullscreenMode(bool will_cause_resize) override; 480 void ExitFullscreenMode(bool will_cause_resize) override;
481 bool ShouldRouteMessageEvent( 481 bool ShouldRouteMessageEvent(
482 RenderFrameHost* target_rfh, 482 RenderFrameHost* target_rfh,
483 SiteInstance* source_site_instance) const override; 483 SiteInstance* source_site_instance) const override;
484 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 484 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
485 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 485 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
486 const GURL& url) override; 486 const GURL& url) override;
487 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; 487 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
488 void OnFocusedElementChangedInFrame(
489 RenderFrameHostImpl* frame,
490 const gfx::Rect& bounds_in_root_view) override;
488 491
489 // RenderViewHostDelegate ---------------------------------------------------- 492 // RenderViewHostDelegate ----------------------------------------------------
490 RenderViewHostDelegateView* GetDelegateView() override; 493 RenderViewHostDelegateView* GetDelegateView() override;
491 bool OnMessageReceived(RenderViewHostImpl* render_view_host, 494 bool OnMessageReceived(RenderViewHostImpl* render_view_host,
492 const IPC::Message& message) override; 495 const IPC::Message& message) override;
493 // RenderFrameHostDelegate has the same method, so list it there because this 496 // RenderFrameHostDelegate has the same method, so list it there because this
494 // interface is going away. 497 // interface is going away.
495 // WebContents* GetAsWebContents() override; 498 // WebContents* GetAsWebContents() override;
496 void RenderViewCreated(RenderViewHost* render_view_host) override; 499 void RenderViewCreated(RenderViewHost* render_view_host) override;
497 void RenderViewReady(RenderViewHost* render_view_host) override; 500 void RenderViewReady(RenderViewHost* render_view_host) override;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 SessionStorageNamespace* GetSessionStorageNamespace( 551 SessionStorageNamespace* GetSessionStorageNamespace(
549 SiteInstance* instance) override; 552 SiteInstance* instance) override;
550 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; 553 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override;
551 double GetPendingPageZoomLevel() override; 554 double GetPendingPageZoomLevel() override;
552 FrameTree* GetFrameTree() override; 555 FrameTree* GetFrameTree() override;
553 void SetIsVirtualKeyboardRequested(bool requested) override; 556 void SetIsVirtualKeyboardRequested(bool requested) override;
554 bool IsVirtualKeyboardRequested() override; 557 bool IsVirtualKeyboardRequested() override;
555 bool IsOverridingUserAgent() override; 558 bool IsOverridingUserAgent() override;
556 bool IsJavaScriptDialogShowing() const override; 559 bool IsJavaScriptDialogShowing() const override;
557 bool HideDownloadUI() const override; 560 bool HideDownloadUI() const override;
561 bool IsFocusedElementEditable() override;
562 void ClearFocusedElement() override;
558 563
559 // NavigatorDelegate --------------------------------------------------------- 564 // NavigatorDelegate ---------------------------------------------------------
560 565
561 void DidStartNavigation(NavigationHandle* navigation_handle) override; 566 void DidStartNavigation(NavigationHandle* navigation_handle) override;
562 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; 567 void DidRedirectNavigation(NavigationHandle* navigation_handle) override;
563 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; 568 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override;
564 void DidFinishNavigation(NavigationHandle* navigation_handle) override; 569 void DidFinishNavigation(NavigationHandle* navigation_handle) override;
565 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, 570 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host,
566 const GURL& validated_url, 571 const GURL& validated_url,
567 bool is_error_page) override; 572 bool is_error_page) override;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override; 660 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override;
656 bool HasMouseLock(RenderWidgetHostImpl* render_widget_host) override; 661 bool HasMouseLock(RenderWidgetHostImpl* render_widget_host) override;
657 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, 662 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host,
658 const std::vector<uint8_t>& proto) override; 663 const std::vector<uint8_t>& proto) override;
659 void OnRenderFrameProxyVisibilityChanged(bool visible) override; 664 void OnRenderFrameProxyVisibilityChanged(bool visible) override;
660 void SendScreenRects() override; 665 void SendScreenRects() override;
661 void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) override; 666 void OnFirstPaintAfterLoad(RenderWidgetHostImpl* render_widget_host) override;
662 TextInputManager* GetTextInputManager() override; 667 TextInputManager* GetTextInputManager() override;
663 bool OnUpdateDragCursor() override; 668 bool OnUpdateDragCursor() override;
664 bool AddDomainInfoToRapporSample(rappor::Sample* sample) override; 669 bool AddDomainInfoToRapporSample(rappor::Sample* sample) override;
670 void FocusedNodeTouched(bool editable) override;
665 671
666 // RenderFrameHostManager::Delegate ------------------------------------------ 672 // RenderFrameHostManager::Delegate ------------------------------------------
667 673
668 bool CreateRenderViewForRenderManager( 674 bool CreateRenderViewForRenderManager(
669 RenderViewHost* render_view_host, 675 RenderViewHost* render_view_host,
670 int opener_frame_routing_id, 676 int opener_frame_routing_id,
671 int proxy_routing_id, 677 int proxy_routing_id,
672 const FrameReplicationState& replicated_frame_state) override; 678 const FrameReplicationState& replicated_frame_state) override;
673 void CreateRenderWidgetHostViewForRenderManager( 679 void CreateRenderWidgetHostViewForRenderManager(
674 RenderViewHost* render_view_host) override; 680 RenderViewHost* render_view_host) override;
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 // Adds/removes a callback called on creation of each new WebContents. 1515 // Adds/removes a callback called on creation of each new WebContents.
1510 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1516 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1511 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1517 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1512 1518
1513 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1519 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1514 }; 1520 };
1515 1521
1516 } // namespace content 1522 } // namespace content
1517 1523
1518 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1524 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698