OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // The page's encoding was changed and should be updated. | 244 // The page's encoding was changed and should be updated. |
245 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 245 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
246 const std::string& encoding) {} | 246 const std::string& encoding) {} |
247 | 247 |
248 // The destination URL has changed should be updated | 248 // The destination URL has changed should be updated |
249 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} | 249 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} |
250 | 250 |
251 // The page is trying to close the RenderView's representation in the client. | 251 // The page is trying to close the RenderView's representation in the client. |
252 virtual void Close(RenderViewHost* render_view_host) {} | 252 virtual void Close(RenderViewHost* render_view_host) {} |
253 | 253 |
| 254 // The RenderViewHost has been swapped out. |
| 255 virtual void SwappedOut(RenderViewHost* render_view_host) {} |
| 256 |
254 // The page is trying to move the RenderView's representation in the client. | 257 // The page is trying to move the RenderView's representation in the client. |
255 virtual void RequestMove(const gfx::Rect& new_bounds) {} | 258 virtual void RequestMove(const gfx::Rect& new_bounds) {} |
256 | 259 |
257 // The RenderView began loading a new page. This corresponds to WebKit's | 260 // The RenderView began loading a new page. This corresponds to WebKit's |
258 // notion of the throbber starting. | 261 // notion of the throbber starting. |
259 virtual void DidStartLoading() {} | 262 virtual void DidStartLoading() {} |
260 | 263 |
261 // The RenderView stopped loading a page. This corresponds to WebKit's | 264 // The RenderView stopped loading a page. This corresponds to WebKit's |
262 // notion of the throbber stopping. | 265 // notion of the throbber stopping. |
263 virtual void DidStopLoading() {} | 266 virtual void DidStopLoading() {} |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 virtual void RequestToLockMouse() {} | 392 virtual void RequestToLockMouse() {} |
390 | 393 |
391 // Notification that the view has lost the mouse lock. | 394 // Notification that the view has lost the mouse lock. |
392 virtual void LostMouseLock() {} | 395 virtual void LostMouseLock() {} |
393 | 396 |
394 protected: | 397 protected: |
395 virtual ~RenderViewHostDelegate() {} | 398 virtual ~RenderViewHostDelegate() {} |
396 }; | 399 }; |
397 | 400 |
398 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 401 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |