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

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

Issue 1038173002: Refactor delegated scrolling in LayerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years, 8 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 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/geometry/scroll_offset.h" 9 #include "ui/gfx/geometry/scroll_offset.h"
10 #include "ui/gfx/geometry/size_f.h" 10 #include "ui/gfx/geometry/size_f.h"
(...skipping 24 matching lines...) Expand all
35 // |min_page_scale_factor| page scale lower limit, 35 // |min_page_scale_factor| page scale lower limit,
36 // |max_page_scale_factor| page scale upper limit. 36 // |max_page_scale_factor| page scale upper limit.
37 virtual void UpdateRootLayerState( 37 virtual void UpdateRootLayerState(
38 const gfx::ScrollOffset& total_scroll_offset, 38 const gfx::ScrollOffset& total_scroll_offset,
39 const gfx::ScrollOffset& max_scroll_offset, 39 const gfx::ScrollOffset& max_scroll_offset,
40 const gfx::SizeF& scrollable_size, 40 const gfx::SizeF& scrollable_size,
41 float page_scale_factor, 41 float page_scale_factor,
42 float min_page_scale_factor, 42 float min_page_scale_factor,
43 float max_page_scale_factor) = 0; 43 float max_page_scale_factor) = 0;
44 44
45 virtual void SetBlockUpdates(bool block_updates) {}
45 // This is called by the compositor to check whether a delegate-managed fling 46 // This is called by the compositor to check whether a delegate-managed fling
46 // is active or not. 47 // is active or not.
47 virtual bool IsExternalFlingActive() const = 0; 48 virtual bool IsExternalFlingActive() const = 0;
48 49
49 protected: 50 protected:
50 LayerScrollOffsetDelegate() {} 51 LayerScrollOffsetDelegate() {}
51 virtual ~LayerScrollOffsetDelegate() {} 52 virtual ~LayerScrollOffsetDelegate() {}
52 53
53 private: 54 private:
54 DISALLOW_COPY_AND_ASSIGN(LayerScrollOffsetDelegate); 55 DISALLOW_COPY_AND_ASSIGN(LayerScrollOffsetDelegate);
55 }; 56 };
56 57
57 } // namespace cc 58 } // namespace cc
58 59
59 #endif // CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_ 60 #endif // CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | content/browser/android/in_process/synchronous_compositor_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698