OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 GetLastCommittedNavigationEntryForRenderManager() = 0; | 110 GetLastCommittedNavigationEntryForRenderManager() = 0; |
111 | 111 |
112 // Returns true if the location bar should be focused by default rather than | 112 // Returns true if the location bar should be focused by default rather than |
113 // the page contents. The view calls this function when the tab is focused | 113 // the page contents. The view calls this function when the tab is focused |
114 // to see what it should do. | 114 // to see what it should do. |
115 virtual bool FocusLocationBarByDefault() = 0; | 115 virtual bool FocusLocationBarByDefault() = 0; |
116 | 116 |
117 // Focuses the location bar. | 117 // Focuses the location bar. |
118 virtual void SetFocusToLocationBar(bool select_all) = 0; | 118 virtual void SetFocusToLocationBar(bool select_all) = 0; |
119 | 119 |
120 // Creates a view and sets the size for the specified RVH. | |
121 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) = 0; | |
122 | |
123 // Returns true if views created for this delegate should be created in a | 120 // Returns true if views created for this delegate should be created in a |
124 // hidden state. | 121 // hidden state. |
125 virtual bool IsHidden() = 0; | 122 virtual bool IsHidden() = 0; |
126 | 123 |
127 protected: | 124 protected: |
128 virtual ~Delegate() {} | 125 virtual ~Delegate() {} |
129 }; | 126 }; |
130 | 127 |
131 // Used with FrameTree::ForEach to delete RenderFrameHosts pending shutdown | 128 // Used with FrameTree::ForEach to delete RenderFrameHosts pending shutdown |
132 // from a FrameTreeNode's RenderFrameHostManager. Used during destruction of | 129 // from a FrameTreeNode's RenderFrameHostManager. Used during destruction of |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 NotificationRegistrar registrar_; | 528 NotificationRegistrar registrar_; |
532 | 529 |
533 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 530 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
534 | 531 |
535 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 532 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
536 }; | 533 }; |
537 | 534 |
538 } // namespace content | 535 } // namespace content |
539 | 536 |
540 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 537 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |