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

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

Issue 15002007: Delegate root layer scroll offset to android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest compile Created 7 years, 6 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 | Annotate | Revision Log
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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/gfx/vector2d_f.h"
9 10
10 namespace content { 11 namespace content {
11 12
12 class SynchronousCompositor; 13 class SynchronousCompositor;
13 14
14 class SynchronousCompositorClient { 15 class SynchronousCompositorClient {
15 public: 16 public:
16 // Indication to the client that |compositor| is now initialized on the 17 // Indication to the client that |compositor| is now initialized on the
17 // compositor thread, and open for business. 18 // compositor thread, and open for business.
18 virtual void DidInitializeCompositor(SynchronousCompositor* compositor) = 0; 19 virtual void DidInitializeCompositor(SynchronousCompositor* compositor) = 0;
19 20
20 // Indication to the client that |compositor| is going out of scope, and 21 // Indication to the client that |compositor| is going out of scope, and
21 // must not be accessed within or after this call. 22 // must not be accessed within or after this call.
22 // NOTE if the client goes away before the compositor it must call 23 // NOTE if the client goes away before the compositor it must call
23 // SynchronousCompositor::SetClient(NULL) to release the back pointer. 24 // SynchronousCompositor::SetClient(NULL) to release the back pointer.
24 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0; 25 virtual void DidDestroyCompositor(SynchronousCompositor* compositor) = 0;
25 26
26 // TODO(joth): Add scroll getters and setters. 27 // See LayerScrollOffsetDelegate for details.
28 virtual void SetTotalRootLayerScrollOffset(gfx::Vector2dF new_value) = 0;
29 virtual gfx::Vector2dF GetTotalRootLayerScrollOffset() = 0;
27 30
28 // When true, should periodically call 31 // When true, should periodically call
29 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value 32 // SynchronousCompositorOutputSurface::DemandDrawHw. Note that this value
30 // can change inside DemandDrawHw call. 33 // can change inside DemandDrawHw call.
31 virtual void SetContinuousInvalidate(bool invalidate) = 0; 34 virtual void SetContinuousInvalidate(bool invalidate) = 0;
32 35
33 protected: 36 protected:
34 SynchronousCompositorClient() {} 37 SynchronousCompositorClient() {}
35 virtual ~SynchronousCompositorClient() {} 38 virtual ~SynchronousCompositorClient() {}
36 39
37 private: 40 private:
38 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient); 41 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorClient);
39 }; 42 };
40 43
41 } // namespace content 44 } // namespace content
42 45
43 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ 46 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | content/renderer/gpu/input_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698