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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 // Return this object cast to a TabContents, if it is one. If the object is | 268 // Return this object cast to a TabContents, if it is one. If the object is |
269 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw and | 269 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw and |
270 // jam as reviewers before you use this method. http://crbug.com/82582 | 270 // jam as reviewers before you use this method. http://crbug.com/82582 |
271 virtual TabContents* GetAsTabContents(); | 271 virtual TabContents* GetAsTabContents(); |
272 | 272 |
273 // Return this object cast to a BackgroundContents, if it is one. If the | 273 // Return this object cast to a BackgroundContents, if it is one. If the |
274 // object is not a BackgroundContents, returns NULL. | 274 // object is not a BackgroundContents, returns NULL. |
275 virtual BackgroundContents* GetAsBackgroundContents(); | 275 virtual BackgroundContents* GetAsBackgroundContents(); |
276 | 276 |
277 // Return id number of browser window which this object is attached to. If no | |
278 // browser window is attached to, just return -1. | |
279 virtual int GetBrowserWindowID() const = 0; | |
280 | |
281 // Return type of RenderView which is attached with this object. | 277 // Return type of RenderView which is attached with this object. |
282 virtual ViewType::Type GetRenderViewType() const = 0; | 278 virtual ViewType::Type GetRenderViewType() const = 0; |
283 | 279 |
284 // The RenderView is being constructed (message sent to the renderer process | 280 // The RenderView is being constructed (message sent to the renderer process |
285 // to construct a RenderView). Now is a good time to send other setup events | 281 // to construct a RenderView). Now is a good time to send other setup events |
286 // to the RenderView. This precedes any other commands to the RenderView. | 282 // to the RenderView. This precedes any other commands to the RenderView. |
287 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 283 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} |
288 | 284 |
289 // The RenderView has been constructed. | 285 // The RenderView has been constructed. |
290 virtual void RenderViewReady(RenderViewHost* render_view_host) {} | 286 virtual void RenderViewReady(RenderViewHost* render_view_host) {} |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 virtual bool IsExternalTabContainer() const; | 407 virtual bool IsExternalTabContainer() const; |
412 | 408 |
413 // Notification that a worker process has crashed. | 409 // Notification that a worker process has crashed. |
414 void WorkerCrashed() {} | 410 void WorkerCrashed() {} |
415 | 411 |
416 protected: | 412 protected: |
417 virtual ~RenderViewHostDelegate() {} | 413 virtual ~RenderViewHostDelegate() {} |
418 }; | 414 }; |
419 | 415 |
420 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 416 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |