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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 const gfx::Point& point) const = 0; | 86 const gfx::Point& point) const = 0; |
87 | 87 |
88 // Returns true if we should display scrollbars for the given view size and | 88 // Returns true if we should display scrollbars for the given view size and |
89 // false if the scrollbars should be hidden. | 89 // false if the scrollbars should be hidden. |
90 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; | 90 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; |
91 | 91 |
92 // Bitwise-ORed set of extra bindings that have been enabled. See | 92 // Bitwise-ORed set of extra bindings that have been enabled. See |
93 // BindingsPolicy for details. | 93 // BindingsPolicy for details. |
94 virtual int GetEnabledBindings() const = 0; | 94 virtual int GetEnabledBindings() const = 0; |
95 | 95 |
96 // Whether content state (such as form state, scroll position and page | 96 // Whether the page state (such as form state, scroll position and page |
97 // contents) should be sent to the browser immediately. This is normally | 97 // contents) should be sent to the browser immediately. This is normally |
98 // false, but set to true by some tests. | 98 // false, but set to true by some tests. |
99 virtual bool GetContentStateImmediately() const = 0; | 99 virtual bool GetPageStateSentImmediately() const = 0; |
Charlie Reis
2014/10/31 21:38:49
nit: IsPageStateSentImmediately()
Avi (use Gerrit)
2014/10/31 22:11:12
Done.
| |
100 | 100 |
101 // Returns the current visibility of the WebView. | 101 // Returns the current visibility of the WebView. |
102 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; | 102 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; |
103 | 103 |
104 // Used by plugins that load data in this RenderView to update the loading | 104 // Used by plugins that load data in this RenderView to update the loading |
105 // notifications. | 105 // notifications. |
106 virtual void DidStartLoading() = 0; | 106 virtual void DidStartLoading() = 0; |
107 virtual void DidStopLoading() = 0; | 107 virtual void DidStopLoading() = 0; |
108 | 108 |
109 // Notifies the renderer that a paint is to be generated for the size | 109 // Notifies the renderer that a paint is to be generated for the size |
(...skipping 22 matching lines...) Expand all Loading... | |
132 | 132 |
133 private: | 133 private: |
134 // This interface should only be implemented inside content. | 134 // This interface should only be implemented inside content. |
135 friend class RenderViewImpl; | 135 friend class RenderViewImpl; |
136 RenderView() {} | 136 RenderView() {} |
137 }; | 137 }; |
138 | 138 |
139 } // namespace content | 139 } // namespace content |
140 | 140 |
141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |