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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/public/common/top_controls_state.h" | 15 #include "content/public/common/top_controls_state.h" |
16 #include "ipc/ipc_sender.h" | 16 #include "ipc/ipc_sender.h" |
17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
18 #include "ui/gfx/geometry/rect_f.h" | 18 #include "ui/gfx/geometry/rect_f.h" |
19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
20 | 20 |
21 namespace blink { | 21 namespace blink { |
22 class WebElement; | 22 class WebElement; |
23 class WebFrame; | 23 class WebFrame; |
| 24 class WebFrameWidget; |
24 class WebLocalFrame; | 25 class WebLocalFrame; |
25 class WebNode; | 26 class WebNode; |
26 class WebString; | 27 class WebString; |
27 class WebURLRequest; | 28 class WebURLRequest; |
28 class WebView; | 29 class WebView; |
29 struct WebContextMenuData; | 30 struct WebContextMenuData; |
30 struct WebRect; | 31 struct WebRect; |
31 } | 32 } |
32 | 33 |
33 namespace gfx { | 34 namespace gfx { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // Gets WebKit related preferences associated with this view. | 82 // Gets WebKit related preferences associated with this view. |
82 virtual WebPreferences& GetWebkitPreferences() = 0; | 83 virtual WebPreferences& GetWebkitPreferences() = 0; |
83 | 84 |
84 // Overrides the WebKit related preferences associated with this view. Note | 85 // Overrides the WebKit related preferences associated with this view. Note |
85 // that the browser process may update the preferences at any time. | 86 // that the browser process may update the preferences at any time. |
86 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; | 87 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; |
87 | 88 |
88 // Returns the associated WebView. May return NULL when the view is closing. | 89 // Returns the associated WebView. May return NULL when the view is closing. |
89 virtual blink::WebView* GetWebView() = 0; | 90 virtual blink::WebView* GetWebView() = 0; |
90 | 91 |
| 92 // Returns the associated WebFrameWidget. |
| 93 virtual blink::WebFrameWidget* GetWebFrameWidget() = 0; |
| 94 |
91 // Returns true if we should display scrollbars for the given view size and | 95 // Returns true if we should display scrollbars for the given view size and |
92 // false if the scrollbars should be hidden. | 96 // false if the scrollbars should be hidden. |
93 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; | 97 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; |
94 | 98 |
95 // Bitwise-ORed set of extra bindings that have been enabled. See | 99 // Bitwise-ORed set of extra bindings that have been enabled. See |
96 // BindingsPolicy for details. | 100 // BindingsPolicy for details. |
97 virtual int GetEnabledBindings() const = 0; | 101 virtual int GetEnabledBindings() const = 0; |
98 | 102 |
99 // Whether content state (such as form state, scroll position and page | 103 // Whether content state (such as form state, scroll position and page |
100 // contents) should be sent to the browser immediately. This is normally | 104 // contents) should be sent to the browser immediately. This is normally |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 152 |
149 private: | 153 private: |
150 // This interface should only be implemented inside content. | 154 // This interface should only be implemented inside content. |
151 friend class RenderViewImpl; | 155 friend class RenderViewImpl; |
152 RenderView() {} | 156 RenderView() {} |
153 }; | 157 }; |
154 | 158 |
155 } // namespace content | 159 } // namespace content |
156 | 160 |
157 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 161 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |