| 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 14 | 14 |
| 15 namespace webkit_glue { |
| 15 struct WebPreferences; | 16 struct WebPreferences; |
| 17 } |
| 16 | 18 |
| 17 namespace WebKit { | 19 namespace WebKit { |
| 18 class WebFrame; | 20 class WebFrame; |
| 19 class WebNode; | 21 class WebNode; |
| 20 class WebPlugin; | 22 class WebPlugin; |
| 21 class WebString; | 23 class WebString; |
| 22 class WebURLRequest; | 24 class WebURLRequest; |
| 23 class WebView; | 25 class WebView; |
| 24 struct WebContextMenuData; | 26 struct WebContextMenuData; |
| 25 struct WebPluginParams; | 27 struct WebPluginParams; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // count as regular navigations and do not increment the page id. | 61 // count as regular navigations and do not increment the page id. |
| 60 virtual int GetPageId() const = 0; | 62 virtual int GetPageId() const = 0; |
| 61 | 63 |
| 62 // Returns the size of the view. | 64 // Returns the size of the view. |
| 63 virtual gfx::Size GetSize() const = 0; | 65 virtual gfx::Size GetSize() const = 0; |
| 64 | 66 |
| 65 // Returns the window we are embedded within. | 67 // Returns the window we are embedded within. |
| 66 virtual gfx::NativeViewId GetHostWindow() const = 0; | 68 virtual gfx::NativeViewId GetHostWindow() const = 0; |
| 67 | 69 |
| 68 // Gets WebKit related preferences associated with this view. | 70 // Gets WebKit related preferences associated with this view. |
| 69 virtual WebPreferences& GetWebkitPreferences() = 0; | 71 virtual webkit_glue::WebPreferences& GetWebkitPreferences() = 0; |
| 70 | 72 |
| 71 // Returns the associated WebView. May return NULL when the view is closing. | 73 // Returns the associated WebView. May return NULL when the view is closing. |
| 72 virtual WebKit::WebView* GetWebView() = 0; | 74 virtual WebKit::WebView* GetWebView() = 0; |
| 73 | 75 |
| 74 // Gets the focused node. If no such node exists then the node will be isNull. | 76 // Gets the focused node. If no such node exists then the node will be isNull. |
| 75 virtual WebKit::WebNode GetFocusedNode() const = 0; | 77 virtual WebKit::WebNode GetFocusedNode() const = 0; |
| 76 | 78 |
| 77 // Gets the node that the context menu was pressed over. | 79 // Gets the node that the context menu was pressed over. |
| 78 virtual WebKit::WebNode GetContextMenuNode() const = 0; | 80 virtual WebKit::WebNode GetContextMenuNode() const = 0; |
| 79 | 81 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // The client should handle the navigation externally. | 128 // The client should handle the navigation externally. |
| 127 virtual void LoadURLExternally( | 129 virtual void LoadURLExternally( |
| 128 WebKit::WebFrame* frame, | 130 WebKit::WebFrame* frame, |
| 129 const WebKit::WebURLRequest& request, | 131 const WebKit::WebURLRequest& request, |
| 130 WebKit::WebNavigationPolicy policy) = 0; | 132 WebKit::WebNavigationPolicy policy) = 0; |
| 131 }; | 133 }; |
| 132 | 134 |
| 133 } // namespace content | 135 } // namespace content |
| 134 | 136 |
| 135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 137 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |