Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Side by Side Diff: android_webview/browser/browser_view_renderer_client.h

Issue 2263043002: android_webview: Let AwContents manage TouchHandleDrawable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use SynchronousCompositorClient Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "ui/touch_selection/touch_handle.h"
boliu 2016/08/24 23:35:30 forward declare should be enough here
Jinsuk Kim 2016/08/25 07:32:21 Done.
12 13
13 namespace android_webview { 14 namespace android_webview {
14 struct ParentCompositorDrawConstraints; 15 struct ParentCompositorDrawConstraints;
15 16
16 class BrowserViewRendererClient { 17 class BrowserViewRendererClient {
17 public: 18 public:
18 19
19 // Called when a new Picture is available. Needs to be enabled 20 // Called when a new Picture is available. Needs to be enabled
20 // via the EnableOnNewPicture method. 21 // via the EnableOnNewPicture method.
21 virtual void OnNewPicture() = 0; 22 virtual void OnNewPicture() = 0;
(...skipping 17 matching lines...) Expand all
39 virtual void UpdateScrollState(const gfx::Vector2d& max_scroll_offset, 40 virtual void UpdateScrollState(const gfx::Vector2d& max_scroll_offset,
40 const gfx::SizeF& contents_size_dip, 41 const gfx::SizeF& contents_size_dip,
41 float page_scale_factor, 42 float page_scale_factor,
42 float min_page_scale_factor, 43 float min_page_scale_factor,
43 float max_page_scale_factor) = 0; 44 float max_page_scale_factor) = 0;
44 45
45 // Handle overscroll. 46 // Handle overscroll.
46 virtual void DidOverscroll(const gfx::Vector2d& overscroll_delta, 47 virtual void DidOverscroll(const gfx::Vector2d& overscroll_delta,
47 const gfx::Vector2dF& overscroll_velocity) = 0; 48 const gfx::Vector2dF& overscroll_velocity) = 0;
48 49
50 virtual ui::TouchHandleDrawable* CreateDrawable(float dip_scale) = 0;
51
49 protected: 52 protected:
50 virtual ~BrowserViewRendererClient() {} 53 virtual ~BrowserViewRendererClient() {}
51 }; 54 };
52 55
53 } // namespace android_webview 56 } // namespace android_webview
54 57
55 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ 58 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698