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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_impl.h

Issue 274323004: NOT FOR LANDING - [WebView] Allow fling animation via the LayerScrollOffsetDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 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_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void SetMaxScrollOffset( 76 virtual void SetMaxScrollOffset(
77 const gfx::Vector2dF& max_scroll_offset) OVERRIDE; 77 const gfx::Vector2dF& max_scroll_offset) OVERRIDE;
78 virtual void SetTotalScrollOffset(const gfx::Vector2dF& new_value) OVERRIDE; 78 virtual void SetTotalScrollOffset(const gfx::Vector2dF& new_value) OVERRIDE;
79 virtual gfx::Vector2dF GetTotalScrollOffset() OVERRIDE; 79 virtual gfx::Vector2dF GetTotalScrollOffset() OVERRIDE;
80 virtual bool IsExternalFlingActive() const OVERRIDE; 80 virtual bool IsExternalFlingActive() const OVERRIDE;
81 virtual void SetTotalPageScaleFactorAndLimits( 81 virtual void SetTotalPageScaleFactorAndLimits(
82 float page_scale_factor, 82 float page_scale_factor,
83 float min_page_scale_factor, 83 float min_page_scale_factor,
84 float max_page_scale_factor) OVERRIDE; 84 float max_page_scale_factor) OVERRIDE;
85 virtual void SetScrollableSize(const gfx::SizeF& scrollable_size) OVERRIDE; 85 virtual void SetScrollableSize(const gfx::SizeF& scrollable_size) OVERRIDE;
86 virtual void SetNeedsAnimate(const AnimationCallback& animation) OVERRIDE;
86 87
87 void SetInputHandler(cc::InputHandler* input_handler); 88 void SetInputHandler(cc::InputHandler* input_handler);
88 void DidOverscroll(const DidOverscrollParams& params); 89 void DidOverscroll(const DidOverscrollParams& params);
89 void DidStopFlinging(); 90 void DidStopFlinging();
90 91
91 private: 92 private:
92 explicit SynchronousCompositorImpl(WebContents* contents); 93 explicit SynchronousCompositorImpl(WebContents* contents);
93 virtual ~SynchronousCompositorImpl(); 94 virtual ~SynchronousCompositorImpl();
94 friend class WebContentsUserData<SynchronousCompositorImpl>; 95 friend class WebContentsUserData<SynchronousCompositorImpl>;
95 96
96 void DidCreateSynchronousOutputSurface( 97 void DidCreateSynchronousOutputSurface(
97 SynchronousCompositorOutputSurface* output_surface); 98 SynchronousCompositorOutputSurface* output_surface);
98 bool CalledOnValidThread() const; 99 bool CalledOnValidThread() const;
99 100
100 SynchronousCompositorClient* compositor_client_; 101 SynchronousCompositorClient* compositor_client_;
101 SynchronousCompositorOutputSurface* output_surface_; 102 SynchronousCompositorOutputSurface* output_surface_;
102 WebContents* contents_; 103 WebContents* contents_;
103 cc::InputHandler* input_handler_; 104 cc::InputHandler* input_handler_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); 106 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl);
106 }; 107 };
107 108
108 } // namespace content 109 } // namespace content
109 110
110 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ 111 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698