| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // Returns |renderer_preferences_.accept_languages| value. | 118 // Returns |renderer_preferences_.accept_languages| value. |
| 119 virtual const std::string& GetAcceptLanguages() const = 0; | 119 virtual const std::string& GetAcceptLanguages() const = 0; |
| 120 | 120 |
| 121 #if defined(OS_ANDROID) | 121 #if defined(OS_ANDROID) |
| 122 virtual void UpdateTopControlsState(TopControlsState constraints, | 122 virtual void UpdateTopControlsState(TopControlsState constraints, |
| 123 TopControlsState current, | 123 TopControlsState current, |
| 124 bool animate) = 0; | 124 bool animate) = 0; |
| 125 #endif | 125 #endif |
| 126 | 126 |
| 127 // Converts the |rect| from Blink's Viewport coordinates to the | 127 // Converts the |rect| from Blink's Viewport coordinates to Window |
| 128 // coordinates in the native window used to display the content, in | 128 // coordinates. See the comment on |
| 129 // DIP. They're identical in tradional world, but will differ when | 129 // WebWidgetClient::convertViewportToWindow() for more details. |
| 130 // use-zoom-for-dsf feature is eanbled, and Viewport coordinates | |
| 131 // becomes DSF times larger than window coordinates. | |
| 132 virtual void convertViewportToWindow(blink::WebRect* rect) = 0; | 130 virtual void convertViewportToWindow(blink::WebRect* rect) = 0; |
| 133 | 131 |
| 134 protected: | 132 protected: |
| 135 ~RenderView() override {} | 133 ~RenderView() override {} |
| 136 | 134 |
| 137 private: | 135 private: |
| 138 // This interface should only be implemented inside content. | 136 // This interface should only be implemented inside content. |
| 139 friend class RenderViewImpl; | 137 friend class RenderViewImpl; |
| 140 RenderView() {} | 138 RenderView() {} |
| 141 }; | 139 }; |
| 142 | 140 |
| 143 } // namespace content | 141 } // namespace content |
| 144 | 142 |
| 145 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 143 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |