| 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 "base/process.h" |
| 9 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 10 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 14 | 15 |
| 15 struct WebPreferences; | 16 struct WebPreferences; |
| 16 | 17 |
| 18 namespace IPC { |
| 19 class ChannelHandle; |
| 20 } |
| 21 |
| 17 namespace WebKit { | 22 namespace WebKit { |
| 18 class WebFrame; | 23 class WebFrame; |
| 24 class WebGraphicsContext3D; |
| 19 class WebNode; | 25 class WebNode; |
| 20 class WebPlugin; | 26 class WebPlugin; |
| 21 class WebString; | 27 class WebString; |
| 22 class WebURLRequest; | 28 class WebURLRequest; |
| 23 class WebView; | 29 class WebView; |
| 24 struct WebContextMenuData; | 30 struct WebContextMenuData; |
| 25 struct WebPluginParams; | 31 struct WebPluginParams; |
| 26 } | 32 } |
| 27 | 33 |
| 28 namespace gfx { | 34 namespace gfx { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Gets the focused node. If no such node exists then the node will be isNull. | 80 // Gets the focused node. If no such node exists then the node will be isNull. |
| 75 virtual WebKit::WebNode GetFocusedNode() const = 0; | 81 virtual WebKit::WebNode GetFocusedNode() const = 0; |
| 76 | 82 |
| 77 // Gets the node that the context menu was pressed over. | 83 // Gets the node that the context menu was pressed over. |
| 78 virtual WebKit::WebNode GetContextMenuNode() const = 0; | 84 virtual WebKit::WebNode GetContextMenuNode() const = 0; |
| 79 | 85 |
| 80 // Returns true if the parameter node is a textfield, text area or a content | 86 // Returns true if the parameter node is a textfield, text area or a content |
| 81 // editable div. | 87 // editable div. |
| 82 virtual bool IsEditableNode(const WebKit::WebNode& node) = 0; | 88 virtual bool IsEditableNode(const WebKit::WebNode& node) = 0; |
| 83 | 89 |
| 90 // Create a browser plugin as a WebPlugin. |
| 91 virtual WebKit::WebPlugin* CreateBrowserPlugin( |
| 92 base::ProcessHandle process_handle, |
| 93 const IPC::ChannelHandle& channel_handle, |
| 94 const WebKit::WebPluginParams& params) = 0; |
| 95 |
| 84 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no | 96 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no |
| 85 // plugin was found. | 97 // plugin was found. |
| 86 virtual WebKit::WebPlugin* CreatePlugin( | 98 virtual WebKit::WebPlugin* CreatePlugin( |
| 87 WebKit::WebFrame* frame, | 99 WebKit::WebFrame* frame, |
| 88 const webkit::WebPluginInfo& info, | 100 const webkit::WebPluginInfo& info, |
| 89 const WebKit::WebPluginParams& params) = 0; | 101 const WebKit::WebPluginParams& params) = 0; |
| 90 | 102 |
| 91 // Evaluates a string of JavaScript in a particular frame. | 103 // Evaluates a string of JavaScript in a particular frame. |
| 92 virtual void EvaluateScript(const string16& frame_xpath, | 104 virtual void EvaluateScript(const string16& frame_xpath, |
| 93 const string16& jscript, | 105 const string16& jscript, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // The client should handle the navigation externally. | 138 // The client should handle the navigation externally. |
| 127 virtual void LoadURLExternally( | 139 virtual void LoadURLExternally( |
| 128 WebKit::WebFrame* frame, | 140 WebKit::WebFrame* frame, |
| 129 const WebKit::WebURLRequest& request, | 141 const WebKit::WebURLRequest& request, |
| 130 WebKit::WebNavigationPolicy policy) = 0; | 142 WebKit::WebNavigationPolicy policy) = 0; |
| 131 }; | 143 }; |
| 132 | 144 |
| 133 } // namespace content | 145 } // namespace content |
| 134 | 146 |
| 135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 147 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |