| 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> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // Returns the associated WebView. May return NULL when the view is closing. | 80 // Returns the associated WebView. May return NULL when the view is closing. |
| 81 virtual blink::WebView* GetWebView() = 0; | 81 virtual blink::WebView* GetWebView() = 0; |
| 82 | 82 |
| 83 // Returns the associated WebFrameWidget. | 83 // Returns the associated WebFrameWidget. |
| 84 virtual blink::WebFrameWidget* GetWebFrameWidget() = 0; | 84 virtual blink::WebFrameWidget* GetWebFrameWidget() = 0; |
| 85 | 85 |
| 86 // Returns true if we should display scrollbars for the given view size and | 86 // Returns true if we should display scrollbars for the given view size and |
| 87 // false if the scrollbars should be hidden. | 87 // false if the scrollbars should be hidden. |
| 88 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; | 88 virtual bool ShouldDisplayScrollbars(int width, int height) const = 0; |
| 89 | 89 |
| 90 // Bitwise-ORed set of extra bindings that have been enabled. See | |
| 91 // BindingsPolicy for details. | |
| 92 virtual int GetEnabledBindings() const = 0; | |
| 93 | |
| 94 // Whether content state (such as form state, scroll position and page | 90 // Whether content state (such as form state, scroll position and page |
| 95 // contents) should be sent to the browser immediately. This is normally | 91 // contents) should be sent to the browser immediately. This is normally |
| 96 // false, but set to true by some tests. | 92 // false, but set to true by some tests. |
| 97 virtual bool GetContentStateImmediately() const = 0; | 93 virtual bool GetContentStateImmediately() const = 0; |
| 98 | 94 |
| 99 // Notifies the renderer that a paint is to be generated for the size | 95 // Notifies the renderer that a paint is to be generated for the size |
| 100 // passed in. | 96 // passed in. |
| 101 virtual void Repaint(const gfx::Size& size) = 0; | 97 virtual void Repaint(const gfx::Size& size) = 0; |
| 102 | 98 |
| 103 // Inject edit commands to be used for the next keyboard event. | 99 // Inject edit commands to be used for the next keyboard event. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 134 | 130 |
| 135 private: | 131 private: |
| 136 // This interface should only be implemented inside content. | 132 // This interface should only be implemented inside content. |
| 137 friend class RenderViewImpl; | 133 friend class RenderViewImpl; |
| 138 RenderView() {} | 134 RenderView() {} |
| 139 }; | 135 }; |
| 140 | 136 |
| 141 } // namespace content | 137 } // namespace content |
| 142 | 138 |
| 143 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 139 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |