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

Side by Side Diff: content/public/browser/android/synchronous_compositor_client.h

Issue 2124063002: Remove forward declarations of non-existent class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « cc/trees/layer_tree_impl.h ('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"
(...skipping 14 matching lines...) Expand all
25 int routing_id) = 0; 25 int routing_id) = 0;
26 26
27 // Indication to the client that |compositor| is going out of scope, and 27 // Indication to the client that |compositor| is going out of scope, and
28 // must not be accessed within or after this call. 28 // must not be accessed within or after this call.
29 // NOTE if the client goes away before the compositor it must call 29 // NOTE if the client goes away before the compositor it must call
30 // SynchronousCompositor::SetClient(nullptr) to release the back pointer. 30 // SynchronousCompositor::SetClient(nullptr) to release the back pointer.
31 virtual void DidDestroyCompositor(SynchronousCompositor* compositor, 31 virtual void DidDestroyCompositor(SynchronousCompositor* compositor,
32 int process_id, 32 int process_id,
33 int routing_id) = 0; 33 int routing_id) = 0;
34 34
35 // See LayerScrollOffsetDelegate for details.
36 virtual void UpdateRootLayerState(SynchronousCompositor* compositor, 35 virtual void UpdateRootLayerState(SynchronousCompositor* compositor,
37 const gfx::Vector2dF& total_scroll_offset, 36 const gfx::Vector2dF& total_scroll_offset,
38 const gfx::Vector2dF& max_scroll_offset, 37 const gfx::Vector2dF& max_scroll_offset,
39 const gfx::SizeF& scrollable_size, 38 const gfx::SizeF& scrollable_size,
40 float page_scale_factor, 39 float page_scale_factor,
41 float min_page_scale_factor, 40 float min_page_scale_factor,
42 float max_page_scale_factor) = 0; 41 float max_page_scale_factor) = 0;
43 42
44 virtual void DidOverscroll(SynchronousCompositor* compositor, 43 virtual void DidOverscroll(SynchronousCompositor* compositor,
45 const gfx::Vector2dF& accumulated_overscroll, 44 const gfx::Vector2dF& accumulated_overscroll,
46 const gfx::Vector2dF& latest_overscroll_delta, 45 const gfx::Vector2dF& latest_overscroll_delta,
47 const gfx::Vector2dF& current_fling_velocity) = 0; 46 const gfx::Vector2dF& current_fling_velocity) = 0;
48 47
49 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0; 48 virtual void PostInvalidate(SynchronousCompositor* compositor) = 0;
50 49
51 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0; 50 virtual void DidUpdateContent(SynchronousCompositor* compositor) = 0;
52 51
53 protected: 52 protected:
54 SynchronousCompositorClient() {} 53 SynchronousCompositorClient() {}
55 virtual ~SynchronousCompositorClient() {} 54 virtual ~SynchronousCompositorClient() {}
56 55
57 private: 56 private:
58 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); 57 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient);
59 }; 58 };
60 59
61 } // namespace content 60 } // namespace content
62 61
63 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 62 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698