| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 154 |
| 159 private: | 155 private: |
| 160 // This interface should only be implemented inside content. | 156 // This interface should only be implemented inside content. |
| 161 friend class RenderViewImpl; | 157 friend class RenderViewImpl; |
| 162 RenderView() {} | 158 RenderView() {} |
| 163 }; | 159 }; |
| 164 | 160 |
| 165 } // namespace content | 161 } // namespace content |
| 166 | 162 |
| 167 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 163 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |