| 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/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class WebURLRequest; | 24 class WebURLRequest; |
| 25 class WebView; | 25 class WebView; |
| 26 struct WebContextMenuData; | 26 struct WebContextMenuData; |
| 27 struct WebPluginParams; | 27 struct WebPluginParams; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace gfx { | 30 namespace gfx { |
| 31 class Size; | 31 class Size; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace webkit { | |
| 35 struct WebPluginInfo; | |
| 36 } | |
| 37 | |
| 38 namespace content { | 34 namespace content { |
| 39 | 35 |
| 40 class ContextMenuClient; | 36 class ContextMenuClient; |
| 41 class RenderViewVisitor; | 37 class RenderViewVisitor; |
| 42 struct ContextMenuParams; | 38 struct ContextMenuParams; |
| 43 struct SSLStatus; | 39 struct SSLStatus; |
| 40 struct WebPluginInfo; |
| 44 | 41 |
| 45 class CONTENT_EXPORT RenderView : public IPC::Sender { | 42 class CONTENT_EXPORT RenderView : public IPC::Sender { |
| 46 public: | 43 public: |
| 47 // Returns the RenderView containing the given WebView. | 44 // Returns the RenderView containing the given WebView. |
| 48 static RenderView* FromWebView(WebKit::WebView* webview); | 45 static RenderView* FromWebView(WebKit::WebView* webview); |
| 49 | 46 |
| 50 // Returns the RenderView for the given routing ID. | 47 // Returns the RenderView for the given routing ID. |
| 51 static RenderView* FromRoutingID(int routing_id); | 48 static RenderView* FromRoutingID(int routing_id); |
| 52 | 49 |
| 53 // Visit all RenderViews with a live WebView (i.e., RenderViews that have | 50 // Visit all RenderViews with a live WebView (i.e., RenderViews that have |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual WebKit::WebNode GetContextMenuNode() const = 0; | 82 virtual WebKit::WebNode GetContextMenuNode() const = 0; |
| 86 | 83 |
| 87 // Returns true if the parameter node is a textfield, text area, a content | 84 // Returns true if the parameter node is a textfield, text area, a content |
| 88 // editable div, or has an ARIA role of textbox. | 85 // editable div, or has an ARIA role of textbox. |
| 89 virtual bool IsEditableNode(const WebKit::WebNode& node) const = 0; | 86 virtual bool IsEditableNode(const WebKit::WebNode& node) const = 0; |
| 90 | 87 |
| 91 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no | 88 // Create a new NPAPI/Pepper plugin depending on |info|. Returns NULL if no |
| 92 // plugin was found. | 89 // plugin was found. |
| 93 virtual WebKit::WebPlugin* CreatePlugin( | 90 virtual WebKit::WebPlugin* CreatePlugin( |
| 94 WebKit::WebFrame* frame, | 91 WebKit::WebFrame* frame, |
| 95 const webkit::WebPluginInfo& info, | 92 const WebPluginInfo& info, |
| 96 const WebKit::WebPluginParams& params) = 0; | 93 const WebKit::WebPluginParams& params) = 0; |
| 97 | 94 |
| 98 // Evaluates a string of JavaScript in a particular frame. | 95 // Evaluates a string of JavaScript in a particular frame. |
| 99 virtual void EvaluateScript(const string16& frame_xpath, | 96 virtual void EvaluateScript(const string16& frame_xpath, |
| 100 const string16& jscript, | 97 const string16& jscript, |
| 101 int id, | 98 int id, |
| 102 bool notify_result) = 0; | 99 bool notify_result) = 0; |
| 103 | 100 |
| 104 // Returns true if we should display scrollbars for the given view size and | 101 // Returns true if we should display scrollbars for the given view size and |
| 105 // false if the scrollbars should be hidden. | 102 // false if the scrollbars should be hidden. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 169 |
| 173 private: | 170 private: |
| 174 // This interface should only be implemented inside content. | 171 // This interface should only be implemented inside content. |
| 175 friend class RenderViewImpl; | 172 friend class RenderViewImpl; |
| 176 RenderView() {} | 173 RenderView() {} |
| 177 }; | 174 }; |
| 178 | 175 |
| 179 } // namespace content | 176 } // namespace content |
| 180 | 177 |
| 181 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 178 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |