| 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> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/public/common/view_type.h" | |
| 18 #include "ipc/ipc_channel.h" | 17 #include "ipc/ipc_channel.h" |
| 19 #include "net/base/load_states.h" | 18 #include "net/base/load_states.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 22 #include "ui/base/javascript_message_type.h" | 21 #include "ui/base/javascript_message_type.h" |
| 23 #include "webkit/glue/window_open_disposition.h" | 22 #include "webkit/glue/window_open_disposition.h" |
| 24 | 23 |
| 25 class GURL; | 24 class GURL; |
| 26 class SkBitmap; | 25 class SkBitmap; |
| 27 class WebContentsImpl; | 26 class WebContentsImpl; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 200 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 202 | 201 |
| 203 // Gets the URL that is currently being displayed, if there is one. | 202 // Gets the URL that is currently being displayed, if there is one. |
| 204 virtual const GURL& GetURL() const; | 203 virtual const GURL& GetURL() const; |
| 205 | 204 |
| 206 // Return this object cast to a WebContents, if it is one. If the object is | 205 // Return this object cast to a WebContents, if it is one. If the object is |
| 207 // not a WebContents, returns NULL. DEPRECATED: Be sure to include brettw or | 206 // not a WebContents, returns NULL. DEPRECATED: Be sure to include brettw or |
| 208 // jam as reviewers before you use this method. http://crbug.com/82582 | 207 // jam as reviewers before you use this method. http://crbug.com/82582 |
| 209 virtual content::WebContents* GetAsWebContents(); | 208 virtual content::WebContents* GetAsWebContents(); |
| 210 | 209 |
| 211 // Return type of RenderView which is attached with this object. | |
| 212 virtual content::ViewType GetRenderViewType() const = 0; | |
| 213 | |
| 214 // Return the rect where to display the resize corner, if any, otherwise | 210 // Return the rect where to display the resize corner, if any, otherwise |
| 215 // an empty rect. | 211 // an empty rect. |
| 216 virtual gfx::Rect GetRootWindowResizerRect() const = 0; | 212 virtual gfx::Rect GetRootWindowResizerRect() const = 0; |
| 217 | 213 |
| 218 // The RenderView is being constructed (message sent to the renderer process | 214 // The RenderView is being constructed (message sent to the renderer process |
| 219 // to construct a RenderView). Now is a good time to send other setup events | 215 // to construct a RenderView). Now is a good time to send other setup events |
| 220 // to the RenderView. This precedes any other commands to the RenderView. | 216 // to the RenderView. This precedes any other commands to the RenderView. |
| 221 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} | 217 virtual void RenderViewCreated(RenderViewHost* render_view_host) {} |
| 222 | 218 |
| 223 // The RenderView has been constructed. | 219 // The RenderView has been constructed. |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 // Notification that the view has lost the mouse lock. | 424 // Notification that the view has lost the mouse lock. |
| 429 virtual void LostMouseLock() {} | 425 virtual void LostMouseLock() {} |
| 430 | 426 |
| 431 protected: | 427 protected: |
| 432 virtual ~RenderViewHostDelegate() {} | 428 virtual ~RenderViewHostDelegate() {} |
| 433 }; | 429 }; |
| 434 | 430 |
| 435 } // namespace content | 431 } // namespace content |
| 436 | 432 |
| 437 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 433 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |