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" |
11 #include "ui/gfx/geometry/vector2d_f.h" | 11 #include "ui/gfx/geometry/vector2d_f.h" |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 class TouchHandleDrawable; | 14 class TouchHandleDrawable; |
15 } | 15 } |
16 | 16 |
17 namespace android_webview { | 17 namespace android_webview { |
18 struct ParentCompositorDrawConstraints; | |
19 | 18 |
20 class BrowserViewRendererClient { | 19 class BrowserViewRendererClient { |
21 public: | 20 public: |
22 | 21 |
23 // Called when a new Picture is available. Needs to be enabled | 22 // Called when a new Picture is available. Needs to be enabled |
24 // via the EnableOnNewPicture method. | 23 // via the EnableOnNewPicture method. |
25 virtual void OnNewPicture() = 0; | 24 virtual void OnNewPicture() = 0; |
26 | 25 |
27 // Called to trigger view invalidations. | 26 // Called to trigger view invalidations. |
28 // This calls postInvalidateOnAnimation if outside of a vsync, otherwise it | 27 // This calls postInvalidateOnAnimation if outside of a vsync, otherwise it |
(...skipping 24 matching lines...) Expand all Loading... |
53 // Create a text selection handle on demand. | 52 // Create a text selection handle on demand. |
54 virtual ui::TouchHandleDrawable* CreateDrawable() = 0; | 53 virtual ui::TouchHandleDrawable* CreateDrawable() = 0; |
55 | 54 |
56 protected: | 55 protected: |
57 virtual ~BrowserViewRendererClient() {} | 56 virtual ~BrowserViewRendererClient() {} |
58 }; | 57 }; |
59 | 58 |
60 } // namespace android_webview | 59 } // namespace android_webview |
61 | 60 |
62 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ | 61 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ |
OLD | NEW |