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" | |
18 #include "ui/gfx/geometry/rect_f.h" | 17 #include "ui/gfx/geometry/rect_f.h" |
19 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
20 | 19 |
21 namespace blink { | 20 namespace blink { |
22 class WebElement; | 21 class WebElement; |
23 class WebFrame; | 22 class WebFrame; |
24 class WebFrameWidget; | 23 class WebFrameWidget; |
25 class WebLocalFrame; | 24 class WebLocalFrame; |
26 class WebNode; | 25 class WebNode; |
27 class WebString; | 26 class WebString; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 101 |
103 // Bitwise-ORed set of extra bindings that have been enabled. See | 102 // Bitwise-ORed set of extra bindings that have been enabled. See |
104 // BindingsPolicy for details. | 103 // BindingsPolicy for details. |
105 virtual int GetEnabledBindings() const = 0; | 104 virtual int GetEnabledBindings() const = 0; |
106 | 105 |
107 // Whether content state (such as form state, scroll position and page | 106 // Whether content state (such as form state, scroll position and page |
108 // contents) should be sent to the browser immediately. This is normally | 107 // contents) should be sent to the browser immediately. This is normally |
109 // false, but set to true by some tests. | 108 // false, but set to true by some tests. |
110 virtual bool GetContentStateImmediately() const = 0; | 109 virtual bool GetContentStateImmediately() const = 0; |
111 | 110 |
112 // Returns the current visibility of the WebView. | |
113 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; | |
114 | |
115 // Used by plugins that load data in this RenderView to update the loading | 111 // Used by plugins that load data in this RenderView to update the loading |
116 // notifications. | 112 // notifications. |
117 virtual void DidStartLoading() = 0; | 113 virtual void DidStartLoading() = 0; |
118 virtual void DidStopLoading() = 0; | 114 virtual void DidStopLoading() = 0; |
119 | 115 |
120 // Notifies the renderer that a paint is to be generated for the size | 116 // Notifies the renderer that a paint is to be generated for the size |
121 // passed in. | 117 // passed in. |
122 virtual void Repaint(const gfx::Size& size) = 0; | 118 virtual void Repaint(const gfx::Size& size) = 0; |
123 | 119 |
124 // Inject edit commands to be used for the next keyboard event. | 120 // Inject edit commands to be used for the next keyboard event. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 152 |
157 private: | 153 private: |
158 // This interface should only be implemented inside content. | 154 // This interface should only be implemented inside content. |
159 friend class RenderViewImpl; | 155 friend class RenderViewImpl; |
160 RenderView() {} | 156 RenderView() {} |
161 }; | 157 }; |
162 | 158 |
163 } // namespace content | 159 } // namespace content |
164 | 160 |
165 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 161 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |