| 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 // Return this object cast to a TabContents, if it is one. If the object is | 197 // Return this object cast to a TabContents, if it is one. If the object is |
| 198 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw or | 198 // not a TabContents, returns NULL. DEPRECATED: Be sure to include brettw or |
| 199 // jam as reviewers before you use this method. http://crbug.com/82582 | 199 // jam as reviewers before you use this method. http://crbug.com/82582 |
| 200 virtual TabContents* GetAsTabContents(); | 200 virtual TabContents* GetAsTabContents(); |
| 201 virtual content::WebContents* GetAsWebContents(); | 201 virtual content::WebContents* GetAsWebContents(); |
| 202 | 202 |
| 203 // Return type of RenderView which is attached with this object. | 203 // Return type of RenderView which is attached with this object. |
| 204 virtual content::ViewType GetRenderViewType() const = 0; | 204 virtual content::ViewType GetRenderViewType() const = 0; |
| 205 | 205 |
| 206 // Return the rect where to display the resize corner, if any, otherwise |
| 207 // an empty rect. |
| 208 virtual gfx::Rect GetRootWindowResizerRect() const = 0; |
| 209 |
| 206 // The RenderView is being constructed (message sent to the renderer process | 210 // The RenderView is being constructed (message sent to the renderer process |
| 207 // to construct a RenderView). Now is a good time to send other setup events | 211 // to construct a RenderView). Now is a good time to send other setup events |
| 208 // to the RenderView. This precedes any other commands to the RenderView. | 212 // to the RenderView. This precedes any other commands to the RenderView. |
| 209 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 213 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} |
| 210 | 214 |
| 211 // The RenderView has been constructed. | 215 // The RenderView has been constructed. |
| 212 virtual void RenderViewReady(RenderViewHost* render_view_host) {} | 216 virtual void RenderViewReady(RenderViewHost* render_view_host) {} |
| 213 | 217 |
| 214 // The RenderView died somehow (crashed or was killed by the user). | 218 // The RenderView died somehow (crashed or was killed by the user). |
| 215 virtual void RenderViewGone(RenderViewHost* render_view_host, | 219 virtual void RenderViewGone(RenderViewHost* render_view_host, |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 // Notification that the view has lost the mouse lock. | 400 // Notification that the view has lost the mouse lock. |
| 397 virtual void LostMouseLock() {} | 401 virtual void LostMouseLock() {} |
| 398 | 402 |
| 399 protected: | 403 protected: |
| 400 virtual ~RenderViewHostDelegate() {} | 404 virtual ~RenderViewHostDelegate() {} |
| 401 }; | 405 }; |
| 402 | 406 |
| 403 } // namespace content | 407 } // namespace content |
| 404 | 408 |
| 405 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 409 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |