| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |