Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: content/public/renderer/render_view.h

Issue 191293006: Move GetContextMenuNode from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync and fix android clang error Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698