| 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 "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_listener.h" |
| 13 #include "ipc/ipc_sender.h" | 13 #include "ipc/ipc_sender.h" |
| 14 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 14 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 15 | 15 |
| 16 class GURL; | 16 class GURL; |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 class WebElement; |
| 19 class WebFrame; | 20 class WebFrame; |
| 20 class WebLocalFrame; | 21 class WebLocalFrame; |
| 21 class WebNode; | 22 class WebNode; |
| 22 class WebPlugin; | 23 class WebPlugin; |
| 23 class WebURLRequest; | 24 class WebURLRequest; |
| 24 class WebURLResponse; | 25 class WebURLResponse; |
| 25 struct WebPluginParams; | 26 struct WebPluginParams; |
| 26 } | 27 } |
| 27 | 28 |
| 28 namespace gfx { | 29 namespace gfx { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 55 | 56 |
| 56 // Returns the RenderView associated with this frame. | 57 // Returns the RenderView associated with this frame. |
| 57 virtual RenderView* GetRenderView() = 0; | 58 virtual RenderView* GetRenderView() = 0; |
| 58 | 59 |
| 59 // Get the routing ID of the frame. | 60 // Get the routing ID of the frame. |
| 60 virtual int GetRoutingID() = 0; | 61 virtual int GetRoutingID() = 0; |
| 61 | 62 |
| 62 // Returns the associated WebFrame. | 63 // Returns the associated WebFrame. |
| 63 virtual blink::WebLocalFrame* GetWebFrame() = 0; | 64 virtual blink::WebLocalFrame* GetWebFrame() = 0; |
| 64 | 65 |
| 66 // Gets the focused element. If no such element exists then |
| 67 // the element will be Null. |
| 68 virtual blink::WebElement GetFocusedElement() const = 0; |
| 69 |
| 65 // Gets WebKit related preferences associated with this frame. | 70 // Gets WebKit related preferences associated with this frame. |
| 66 virtual WebPreferences& GetWebkitPreferences() = 0; | 71 virtual WebPreferences& GetWebkitPreferences() = 0; |
| 67 | 72 |
| 68 // Shows a context menu with the given information. The given client will | 73 // Shows a context menu with the given information. The given client will |
| 69 // be called with the result. | 74 // be called with the result. |
| 70 // | 75 // |
| 71 // The request ID will be returned by this function. This is passed to the | 76 // The request ID will be returned by this function. This is passed to the |
| 72 // client functions for identification. | 77 // client functions for identification. |
| 73 // | 78 // |
| 74 // If the client is destroyed, CancelContextMenu() should be called with the | 79 // If the client is destroyed, CancelContextMenu() should be called with the |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 176 |
| 172 private: | 177 private: |
| 173 // This interface should only be implemented inside content. | 178 // This interface should only be implemented inside content. |
| 174 friend class RenderFrameImpl; | 179 friend class RenderFrameImpl; |
| 175 RenderFrame() {} | 180 RenderFrame() {} |
| 176 }; | 181 }; |
| 177 | 182 |
| 178 } // namespace content | 183 } // namespace content |
| 179 | 184 |
| 180 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 185 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |