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

Side by Side Diff: content/public/browser/android/synchronous_compositor_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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "ui/gfx/geometry/size_f.h" 11 #include "ui/gfx/geometry/size_f.h"
12 #include "ui/gfx/geometry/vector2d_f.h" 12 #include "ui/gfx/geometry/vector2d_f.h"
13 13
14 namespace ui {
15 class TouchHandleDrawable;
16 }
17
14 namespace content { 18 namespace content {
15 19
16 class SynchronousCompositor; 20 class SynchronousCompositor;
17 21
18 class SynchronousCompositorClient { 22 class SynchronousCompositorClient {
19 public: 23 public:
20 // Indication to the client that |compositor| is now initialized on the 24 // Indication to the client that |compositor| is now initialized on the
21 // compositor thread, and open for business. |process_id| and |routing_id| 25 // compositor thread, and open for business. |process_id| and |routing_id|
22 // belong to the RVH that owns the compositor. 26 // belong to the RVH that owns the compositor.
23 virtual void DidInitializeCompositor(SynchronousCompositor* compositor, 27 virtual void DidInitializeCompositor(SynchronousCompositor* compositor,
(...skipping 18 matching lines...) Expand all
42 46
43 virtual void DidOverscroll(SynchronousCompositor* compositor, 47 virtual void DidOverscroll(SynchronousCompositor* compositor,
44 const gfx::Vector2dF& accumulated_overscroll, 48 const gfx::Vector2dF& accumulated_overscroll,
45 const gfx::Vector2dF& latest_overscroll_delta, 49 const gfx::Vector2dF& latest_overscroll_delta,
46 const gfx::Vector2dF& current_fling_velocity) = 0; 50 const gfx::Vector2dF& current_fling_velocity) = 0;
47 51
48 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0; 52 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0;
49 53
50 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0; 54 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0;
51 55
56 virtual ui::TouchHandleDrawable* CreateDrawable() = 0;
57
52 protected: 58 protected:
53 SynchronousCompositorClient() {} 59 SynchronousCompositorClient() {}
54 virtual ~SynchronousCompositorClient() {} 60 virtual ~SynchronousCompositorClient() {}
55 61
56 private: 62 private:
57 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); 63 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient);
58 }; 64 };
59 65
60 } // namespace content 66 } // namespace content
61 67
62 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 68 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/input/PopupTouchHandleDrawable.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698