| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 float dip_scale() const { return dip_scale_; } | 92 float dip_scale() const { return dip_scale_; } |
| 93 float page_scale_factor() const { return page_scale_factor_; } | 93 float page_scale_factor() const { return page_scale_factor_; } |
| 94 | 94 |
| 95 // Set the root layer scroll offset to |new_value|. | 95 // Set the root layer scroll offset to |new_value|. |
| 96 void ScrollTo(const gfx::Vector2d& new_value); | 96 void ScrollTo(const gfx::Vector2d& new_value); |
| 97 | 97 |
| 98 // Android views hierarchy gluing. | 98 // Android views hierarchy gluing. |
| 99 bool IsVisible() const; | 99 bool IsVisible() const; |
| 100 gfx::Rect GetScreenRect() const; | 100 gfx::Rect GetScreenRect() const; |
| 101 bool attached_to_window() const { return attached_to_window_; } | 101 bool attached_to_window() const { return attached_to_window_; } |
| 102 bool hardware_enabled() const { return hardware_enabled_; } | |
| 103 gfx::Size size() const { return size_; } | 102 gfx::Size size() const { return size_; } |
| 104 | 103 |
| 105 bool IsClientVisible() const; | 104 bool IsClientVisible() const; |
| 106 void TrimMemory(); | 105 void TrimMemory(); |
| 107 | 106 |
| 108 // SynchronousCompositorClient overrides. | 107 // SynchronousCompositorClient overrides. |
| 109 void DidInitializeCompositor( | 108 void DidInitializeCompositor( |
| 110 content::SynchronousCompositor* compositor) override; | 109 content::SynchronousCompositor* compositor) override; |
| 111 void DidDestroyCompositor( | 110 void DidDestroyCompositor( |
| 112 content::SynchronousCompositor* compositor) override; | 111 content::SynchronousCompositor* compositor) override; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 uint32_t next_compositor_id_; | 198 uint32_t next_compositor_id_; |
| 200 | 199 |
| 201 ParentCompositorDrawConstraints external_draw_constraints_; | 200 ParentCompositorDrawConstraints external_draw_constraints_; |
| 202 | 201 |
| 203 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 202 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
| 204 }; | 203 }; |
| 205 | 204 |
| 206 } // namespace android_webview | 205 } // namespace android_webview |
| 207 | 206 |
| 208 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 207 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| OLD | NEW |