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

Side by Side Diff: cc/input/layer_scroll_offset_delegate.h

Issue 52663003: Remove all fling related stuff from the renderer assuming that browser side Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/layers/layer_impl.h » ('j') | 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 CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ 5 #ifndef CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_
6 #define CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ 6 #define CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/gfx/size_f.h" 9 #include "ui/gfx/size_f.h"
10 #include "ui/gfx/vector2d_f.h" 10 #include "ui/gfx/vector2d_f.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // This is called by the compositor to query the current scroll offset of the 28 // This is called by the compositor to query the current scroll offset of the
29 // layer. 29 // layer.
30 // There is no requirement that the return values of this method are 30 // There is no requirement that the return values of this method are
31 // stable in time (two subsequent calls may yield different results). 31 // stable in time (two subsequent calls may yield different results).
32 // The return value is not required to be related to the values passed in to 32 // The return value is not required to be related to the values passed in to
33 // the SetTotalScrollOffset method in any way however it is required to be no 33 // the SetTotalScrollOffset method in any way however it is required to be no
34 // more than the value passed to the most recent SetMaxScrollOffset call. 34 // more than the value passed to the most recent SetMaxScrollOffset call.
35 virtual gfx::Vector2dF GetTotalScrollOffset() = 0; 35 virtual gfx::Vector2dF GetTotalScrollOffset() = 0;
36 36
37 // This is called by the compositor to check whether a delegate-managed fling
38 // is active or not.
39 virtual bool IsExternalFlingActive() const = 0;
40
41 // This is called by the compositor to notify the delegate what is the current 37 // This is called by the compositor to notify the delegate what is the current
42 // page scale factor is. 38 // page scale factor is.
43 virtual void SetTotalPageScaleFactor(float page_scale_factor) = 0; 39 virtual void SetTotalPageScaleFactor(float page_scale_factor) = 0;
44 40
45 // This is called by the compositor to notify the delegate what is the layer's 41 // This is called by the compositor to notify the delegate what is the layer's
46 // scrollable size is. 42 // scrollable size is.
47 virtual void SetScrollableSize(gfx::SizeF scrollable_size) = 0; 43 virtual void SetScrollableSize(gfx::SizeF scrollable_size) = 0;
48 44
49 protected: 45 protected:
50 LayerScrollOffsetDelegate() {} 46 LayerScrollOffsetDelegate() {}
51 virtual ~LayerScrollOffsetDelegate() {} 47 virtual ~LayerScrollOffsetDelegate() {}
52 48
53 private: 49 private:
54 DISALLOW_COPY_AND_ASSIGN(LayerScrollOffsetDelegate); 50 DISALLOW_COPY_AND_ASSIGN(LayerScrollOffsetDelegate);
55 }; 51 };
56 52
57 } // namespace cc 53 } // namespace cc
58 54
59 #endif // CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ 55 #endif // CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_
OLDNEW
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698