| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 virtual bool OnMessageReceived(const IPC::Message& message); | 194 virtual bool OnMessageReceived(const IPC::Message& message); |
| 195 | 195 |
| 196 // Gets the URL that is currently being displayed, if there is one. | 196 // Gets the URL that is currently being displayed, if there is one. |
| 197 virtual const GURL& GetURL() const; | 197 virtual const GURL& GetURL() const; |
| 198 | 198 |
| 199 // Return this object cast to a TabContents, if it is one. If the object is | 199 // Return this object cast to a TabContents, if it is one. If the object is |
| 200 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw and | 200 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw and |
| 201 // jam as reviewers before you use this method. http://crbug.com/82582 | 201 // jam as reviewers before you use this method. http://crbug.com/82582 |
| 202 virtual TabContents* GetAsTabContents(); | 202 virtual TabContents* GetAsTabContents(); |
| 203 | 203 |
| 204 // Return this object cast to a BackgroundContents, if it is one. If the | |
| 205 // object is not a BackgroundContents, returns NULL. | |
| 206 // DEPRECATED: http://crbug.com/98934 | |
| 207 virtual BackgroundContents* GetAsBackgroundContents(); | |
| 208 | |
| 209 // Return type of RenderView which is attached with this object. | 204 // Return type of RenderView which is attached with this object. |
| 210 virtual content::ViewType GetRenderViewType() const = 0; | 205 virtual content::ViewType GetRenderViewType() const = 0; |
| 211 | 206 |
| 212 // The RenderView is being constructed (message sent to the renderer process | 207 // The RenderView is being constructed (message sent to the renderer process |
| 213 // to construct a RenderView). Now is a good time to send other setup events | 208 // to construct a RenderView). Now is a good time to send other setup events |
| 214 // to the RenderView. This precedes any other commands to the RenderView. | 209 // to the RenderView. This precedes any other commands to the RenderView. |
| 215 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 210 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} |
| 216 | 211 |
| 217 // The RenderView has been constructed. | 212 // The RenderView has been constructed. |
| 218 virtual void RenderViewReady(RenderViewHost* render_view_host) {} | 213 virtual void RenderViewReady(RenderViewHost* render_view_host) {} |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 virtual void RequestToLockMouse() {} | 384 virtual void RequestToLockMouse() {} |
| 390 | 385 |
| 391 // Notification that the view has lost the mouse lock. | 386 // Notification that the view has lost the mouse lock. |
| 392 virtual void LostMouseLock() {} | 387 virtual void LostMouseLock() {} |
| 393 | 388 |
| 394 protected: | 389 protected: |
| 395 virtual ~RenderViewHostDelegate() {} | 390 virtual ~RenderViewHostDelegate() {} |
| 396 }; | 391 }; |
| 397 | 392 |
| 398 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 393 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |