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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual gfx::Rect GetRootWindowResizerRect() const = 0; | 88 virtual gfx::Rect GetRootWindowResizerRect() const = 0; |
89 | 89 |
90 // The RenderView is being constructed (message sent to the renderer process | 90 // The RenderView is being constructed (message sent to the renderer process |
91 // to construct a RenderView). Now is a good time to send other setup events | 91 // to construct a RenderView). Now is a good time to send other setup events |
92 // to the RenderView. This precedes any other commands to the RenderView. | 92 // to the RenderView. This precedes any other commands to the RenderView. |
93 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 93 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} |
94 | 94 |
95 // The RenderView has been constructed. | 95 // The RenderView has been constructed. |
96 virtual void RenderViewReady(RenderViewHost* render_view_host) {} | 96 virtual void RenderViewReady(RenderViewHost* render_view_host) {} |
97 | 97 |
98 // The RenderView died somehow (crashed or was killed by the user). | 98 // The process containing the RenderView exited somehow (either cleanly, |
| 99 // crash, or user kill). |
99 virtual void RenderViewTerminated(RenderViewHost* render_view_host, | 100 virtual void RenderViewTerminated(RenderViewHost* render_view_host, |
100 base::TerminationStatus status, | 101 base::TerminationStatus status, |
101 int error_code) {} | 102 int error_code) {} |
102 | 103 |
103 // The RenderView is going to be deleted. This is called when each | 104 // The RenderView is going to be deleted. This is called when each |
104 // RenderView is going to be destroyed | 105 // RenderView is going to be destroyed |
105 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} | 106 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} |
106 | 107 |
107 // The state for the page changed and should be updated. | 108 // The state for the page changed and should be updated. |
108 virtual void UpdateState(RenderViewHost* render_view_host, | 109 virtual void UpdateState(RenderViewHost* render_view_host, |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 272 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
272 virtual bool IsVirtualKeyboardRequested(); | 273 virtual bool IsVirtualKeyboardRequested(); |
273 | 274 |
274 protected: | 275 protected: |
275 virtual ~RenderViewHostDelegate() {} | 276 virtual ~RenderViewHostDelegate() {} |
276 }; | 277 }; |
277 | 278 |
278 } // namespace content | 279 } // namespace content |
279 | 280 |
280 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 281 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |