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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // The RenderView is going to be deleted. This is called when each | 103 // The RenderView is going to be deleted. This is called when each |
104 // RenderView is going to be destroyed | 104 // RenderView is going to be destroyed |
105 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 105 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
106 | 106 |
107 // The state for the page changed and should be updated. | 107 // The state for the page changed and should be updated. |
108 virtual void UpdateState(RenderViewHost* render_view_host, | 108 virtual void UpdateState(RenderViewHost* render_view_host, |
109 int32 page_id, | 109 int32 page_id, |
110 const PageState& state) {} | 110 const PageState& state) {} |
111 | 111 |
112 // The destination URL has changed should be updated | 112 // The destination URL has changed should be updated. |
113 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} | 113 virtual void UpdateTargetURL(const GURL& url) {} |
114 | 114 |
115 // The page is trying to close the RenderView's representation in the client. | 115 // The page is trying to close the RenderView's representation in the client. |
116 virtual void Close(RenderViewHost* render_view_host) {} | 116 virtual void Close(RenderViewHost* render_view_host) {} |
117 | 117 |
118 // The page is trying to move the RenderView's representation in the client. | 118 // The page is trying to move the RenderView's representation in the client. |
119 virtual void RequestMove(const gfx::Rect& new_bounds) {} | 119 virtual void RequestMove(const gfx::Rect& new_bounds) {} |
120 | 120 |
121 // The pending page load was canceled. | 121 // The pending page load was canceled. |
122 virtual void DidCancelLoading() {} | 122 virtual void DidCancelLoading() {} |
123 | 123 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // created by the RenderViewHost. | 282 // created by the RenderViewHost. |
283 virtual FrameTree* GetFrameTree(); | 283 virtual FrameTree* GetFrameTree(); |
284 | 284 |
285 protected: | 285 protected: |
286 virtual ~RenderViewHostDelegate() {} | 286 virtual ~RenderViewHostDelegate() {} |
287 }; | 287 }; |
288 | 288 |
289 } // namespace content | 289 } // namespace content |
290 | 290 |
291 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 291 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |