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

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: fix build 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 12
13 namespace ui {
14 class TouchHandleDrawable;
15 }
16
13 namespace android_webview { 17 namespace android_webview {
14 struct ParentCompositorDrawConstraints; 18 struct ParentCompositorDrawConstraints;
15 19
16 class BrowserViewRendererClient { 20 class BrowserViewRendererClient {
17 public: 21 public:
18 22
19 // Called when a new Picture is available. Needs to be enabled 23 // Called when a new Picture is available. Needs to be enabled
20 // via the EnableOnNewPicture method. 24 // via the EnableOnNewPicture method.
21 virtual void OnNewPicture() = 0; 25 virtual void OnNewPicture() = 0;
22 26
(...skipping 16 matching lines...) Expand all
39 virtual void UpdateScrollState(const gfx::Vector2d& max_scroll_offset, 43 virtual void UpdateScrollState(const gfx::Vector2d& max_scroll_offset,
40 const gfx::SizeF& contents_size_dip, 44 const gfx::SizeF& contents_size_dip,
41 float page_scale_factor, 45 float page_scale_factor,
42 float min_page_scale_factor, 46 float min_page_scale_factor,
43 float max_page_scale_factor) = 0; 47 float max_page_scale_factor) = 0;
44 48
45 // Handle overscroll. 49 // Handle overscroll.
46 virtual void DidOverscroll(const gfx::Vector2d& overscroll_delta, 50 virtual void DidOverscroll(const gfx::Vector2d& overscroll_delta,
47 const gfx::Vector2dF& overscroll_velocity) = 0; 51 const gfx::Vector2dF& overscroll_velocity) = 0;
48 52
53 // Create a text selection handle on demand.
54 virtual ui::TouchHandleDrawable* CreateDrawable() = 0;
55
49 protected: 56 protected:
50 virtual ~BrowserViewRendererClient() {} 57 virtual ~BrowserViewRendererClient() {}
51 }; 58 };
52 59
53 } // namespace android_webview 60 } // namespace android_webview
54 61
55 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ 62 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « android_webview/browser/browser_view_renderer.cc ('k') | android_webview/browser/test/rendering_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698