| 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 "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
| 9 #include "skia/ext/refptr.h" | 9 #include "skia/ext/refptr.h" |
| 10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/point.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 virtual void SetDipScale(float dip_scale) = 0; | 133 virtual void SetDipScale(float dip_scale) = 0; |
| 134 | 134 |
| 135 // Set the root layer scroll offset to |new_value|. | 135 // Set the root layer scroll offset to |new_value|. |
| 136 virtual void ScrollTo(gfx::Vector2d new_value) = 0; | 136 virtual void ScrollTo(gfx::Vector2d new_value) = 0; |
| 137 | 137 |
| 138 // Android views hierarchy gluing. | 138 // Android views hierarchy gluing. |
| 139 virtual bool IsAttachedToWindow() = 0; | 139 virtual bool IsAttachedToWindow() = 0; |
| 140 virtual bool IsVisible() = 0; | 140 virtual bool IsVisible() = 0; |
| 141 virtual gfx::Rect GetScreenRect() = 0; | 141 virtual gfx::Rect GetScreenRect() = 0; |
| 142 | 142 |
| 143 // ComponentCallbacks2.onTrimMemory callback. |
| 144 virtual void TrimMemory(int level) = 0; |
| 145 |
| 143 virtual ~BrowserViewRenderer() {} | 146 virtual ~BrowserViewRenderer() {} |
| 144 }; | 147 }; |
| 145 | 148 |
| 146 } // namespace android_webview | 149 } // namespace android_webview |
| 147 | 150 |
| 148 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 151 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| OLD | NEW |