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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // that the browser process may update the preferences at any time. | 73 // that the browser process may update the preferences at any time. |
74 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; | 74 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; |
75 | 75 |
76 // Returns the associated WebView. May return NULL when the view is closing. | 76 // Returns the associated WebView. May return NULL when the view is closing. |
77 virtual blink::WebView* GetWebView() = 0; | 77 virtual blink::WebView* GetWebView() = 0; |
78 | 78 |
79 // Gets the focused element. If no such element exists then | 79 // Gets the focused element. If no such element exists then |
80 // the element will be Null. | 80 // the element will be Null. |
81 virtual blink::WebElement GetFocusedElement() const = 0; | 81 virtual blink::WebElement GetFocusedElement() const = 0; |
82 | 82 |
83 // Gets the node that the context menu was pressed over. | |
84 virtual blink::WebNode GetContextMenuNode() const = 0; | |
85 | |
86 // Returns true if the parameter node is a textfield, text area, a content | 83 // Returns true if the parameter node is a textfield, text area, a content |
87 // editable div, or has an ARIA role of textbox. | 84 // editable div, or has an ARIA role of textbox. |
88 virtual bool IsEditableNode(const blink::WebNode& node) const = 0; | 85 virtual bool IsEditableNode(const blink::WebNode& node) const = 0; |
89 | 86 |
90 // Evaluates a string of JavaScript in a particular frame. | 87 // Evaluates a string of JavaScript in a particular frame. |
91 virtual void EvaluateScript(const base::string16& frame_xpath, | 88 virtual void EvaluateScript(const base::string16& frame_xpath, |
92 const base::string16& jscript, | 89 const base::string16& jscript, |
93 int id, | 90 int id, |
94 bool notify_result) = 0; | 91 bool notify_result) = 0; |
95 | 92 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 145 |
149 private: | 146 private: |
150 // This interface should only be implemented inside content. | 147 // This interface should only be implemented inside content. |
151 friend class RenderViewImpl; | 148 friend class RenderViewImpl; |
152 RenderView() {} | 149 RenderView() {} |
153 }; | 150 }; |
154 | 151 |
155 } // namespace content | 152 } // namespace content |
156 | 153 |
157 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 154 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |