| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
| 9 #include "ui/gfx/geometry/point.h" | 9 #include "ui/gfx/geometry/point.h" |
| 10 #include "ui/gfx/geometry/size_f.h" | 10 #include "ui/gfx/geometry/size_f.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Called when a new Picture is available. Needs to be enabled | 24 // Called when a new Picture is available. Needs to be enabled |
| 25 // via the EnableOnNewPicture method. | 25 // via the EnableOnNewPicture method. |
| 26 virtual void OnNewPicture() = 0; | 26 virtual void OnNewPicture() = 0; |
| 27 | 27 |
| 28 // Called to trigger view invalidations. | 28 // Called to trigger view invalidations. |
| 29 virtual void PostInvalidate() = 0; | 29 virtual void PostInvalidate() = 0; |
| 30 | 30 |
| 31 // Called to update the parent draw constraints in browser view renderer. | 31 // Called to update the parent draw constraints in browser view renderer. |
| 32 virtual void UpdateParentDrawConstraints() = 0; | 32 virtual void UpdateParentDrawConstraints() = 0; |
| 33 | 33 |
| 34 // Called if commit is skipped due to pipeline stall. |
| 35 virtual void DidSkipCommitFrame() = 0; |
| 36 |
| 34 // Called to get view's absolute location on the screen. | 37 // Called to get view's absolute location on the screen. |
| 35 virtual gfx::Point GetLocationOnScreen() = 0; | 38 virtual gfx::Point GetLocationOnScreen() = 0; |
| 36 | 39 |
| 37 // Try to set the view's scroll offset to |new_value|. | 40 // Try to set the view's scroll offset to |new_value|. |
| 38 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) = 0; | 41 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) = 0; |
| 39 | 42 |
| 40 // Is a Android view system managed fling in progress? | 43 // Is a Android view system managed fling in progress? |
| 41 virtual bool IsFlingActive() const = 0; | 44 virtual bool IsFlingActive() const = 0; |
| 42 | 45 |
| 43 // Sets the following: | 46 // Sets the following: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 54 // Handle overscroll. | 57 // Handle overscroll. |
| 55 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) = 0; | 58 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) = 0; |
| 56 | 59 |
| 57 protected: | 60 protected: |
| 58 virtual ~BrowserViewRendererClient() {} | 61 virtual ~BrowserViewRendererClient() {} |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 } // namespace android_webview | 64 } // namespace android_webview |
| 62 | 65 |
| 63 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ | 66 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ |
| OLD | NEW |