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

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

Issue 1977633003: Remove RenderFrameImpl::GetFocusedElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes the right click + blur + copy case. Created 4 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Returns the RenderView associated with this frame. 87 // Returns the RenderView associated with this frame.
88 virtual RenderView* GetRenderView() = 0; 88 virtual RenderView* GetRenderView() = 0;
89 89
90 // Get the routing ID of the frame. 90 // Get the routing ID of the frame.
91 virtual int GetRoutingID() = 0; 91 virtual int GetRoutingID() = 0;
92 92
93 // Returns the associated WebFrame. 93 // Returns the associated WebFrame.
94 virtual blink::WebLocalFrame* GetWebFrame() = 0; 94 virtual blink::WebLocalFrame* GetWebFrame() = 0;
95 95
96 // Gets the focused element. If no such element exists then
97 // the element will be Null.
98 virtual blink::WebElement GetFocusedElement() const = 0;
99
100 // Gets WebKit related preferences associated with this frame. 96 // Gets WebKit related preferences associated with this frame.
101 virtual WebPreferences& GetWebkitPreferences() = 0; 97 virtual WebPreferences& GetWebkitPreferences() = 0;
102 98
103 // Shows a context menu with the given information. The given client will 99 // Shows a context menu with the given information. The given client will
104 // be called with the result. 100 // be called with the result.
105 // 101 //
106 // The request ID will be returned by this function. This is passed to the 102 // The request ID will be returned by this function. This is passed to the
107 // client functions for identification. 103 // client functions for identification.
108 // 104 //
109 // If the client is destroyed, CancelContextMenu() should be called with the 105 // If the client is destroyed, CancelContextMenu() should be called with the
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 208
213 private: 209 private:
214 // This interface should only be implemented inside content. 210 // This interface should only be implemented inside content.
215 friend class RenderFrameImpl; 211 friend class RenderFrameImpl;
216 RenderFrame() {} 212 RenderFrame() {}
217 }; 213 };
218 214
219 } // namespace content 215 } // namespace content
220 216
221 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 217 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/password_autofill_agent.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698