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 24 matching lines...) Expand all Loading... |
35 struct WebDropData; | 35 struct WebDropData; |
36 struct WebMenuItem; | 36 struct WebMenuItem; |
37 struct WebPreferences; | 37 struct WebPreferences; |
38 | 38 |
39 namespace base { | 39 namespace base { |
40 class ListValue; | 40 class ListValue; |
41 } | 41 } |
42 | 42 |
43 namespace content { | 43 namespace content { |
44 class BrowserContext; | 44 class BrowserContext; |
| 45 class WebContents; |
45 struct FileChooserParams; | 46 struct FileChooserParams; |
46 struct Referrer; | 47 struct Referrer; |
47 struct RendererPreferences; | 48 struct RendererPreferences; |
48 } | 49 } |
49 | 50 |
50 namespace gfx { | 51 namespace gfx { |
51 class Point; | 52 class Point; |
52 class Rect; | 53 class Rect; |
53 class Size; | 54 class Size; |
54 } | 55 } |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 virtual RendererManagement* GetRendererManagementDelegate(); | 187 virtual RendererManagement* GetRendererManagementDelegate(); |
187 | 188 |
188 // IPC::Channel::Listener implementation. | 189 // IPC::Channel::Listener implementation. |
189 // This is used to give the delegate a chance to filter IPC messages. | 190 // This is used to give the delegate a chance to filter IPC messages. |
190 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 191 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
191 | 192 |
192 // Gets the URL that is currently being displayed, if there is one. | 193 // Gets the URL that is currently being displayed, if there is one. |
193 virtual const GURL& GetURL() const; | 194 virtual const GURL& GetURL() const; |
194 | 195 |
195 // Return this object cast to a TabContents, if it is one. If the object is | 196 // Return this object cast to a TabContents, if it is one. If the object is |
196 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw and | 197 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw or |
197 // jam as reviewers before you use this method. http://crbug.com/82582 | 198 // jam as reviewers before you use this method. http://crbug.com/82582 |
198 virtual TabContents* GetAsTabContents(); | 199 virtual TabContents* GetAsTabContents(); |
| 200 virtual content::WebContents* GetAsWebContents(); |
199 | 201 |
200 // Return type of RenderView which is attached with this object. | 202 // Return type of RenderView which is attached with this object. |
201 virtual content::ViewType GetRenderViewType() const = 0; | 203 virtual content::ViewType GetRenderViewType() const = 0; |
202 | 204 |
203 // The RenderView is being constructed (message sent to the renderer process | 205 // The RenderView is being constructed (message sent to the renderer process |
204 // to construct a RenderView). Now is a good time to send other setup events | 206 // to construct a RenderView). Now is a good time to send other setup events |
205 // to the RenderView. This precedes any other commands to the RenderView. | 207 // to the RenderView. This precedes any other commands to the RenderView. |
206 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 208 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} |
207 | 209 |
208 // The RenderView has been constructed. | 210 // The RenderView has been constructed. |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 virtual void RequestToLockMouse() {} | 392 virtual void RequestToLockMouse() {} |
391 | 393 |
392 // Notification that the view has lost the mouse lock. | 394 // Notification that the view has lost the mouse lock. |
393 virtual void LostMouseLock() {} | 395 virtual void LostMouseLock() {} |
394 | 396 |
395 protected: | 397 protected: |
396 virtual ~RenderViewHostDelegate() {} | 398 virtual ~RenderViewHostDelegate() {} |
397 }; | 399 }; |
398 | 400 |
399 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 401 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |