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

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

Issue 130443005: [#5] Pass gfx structs by const ref (gfx::Vector2dF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated the review comments Created 6 years, 11 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/input/page_scale_animation.cc ('k') | cc/input/top_controls_manager.cc » ('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_TOP_CONTROLS_MANAGER_H_ 5 #ifndef CC_INPUT_TOP_CONTROLS_MANAGER_H_
6 #define CC_INPUT_TOP_CONTROLS_MANAGER_H_ 6 #define CC_INPUT_TOP_CONTROLS_MANAGER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "cc/input/top_controls_state.h" 10 #include "cc/input/top_controls_state.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 KeyframedFloatAnimationCurve* animation() { 46 KeyframedFloatAnimationCurve* animation() {
47 return top_controls_animation_.get(); 47 return top_controls_animation_.get();
48 } 48 }
49 AnimationDirection animation_direction() { return animation_direction_; } 49 AnimationDirection animation_direction() { return animation_direction_; }
50 50
51 void UpdateTopControlsState(TopControlsState constraints, 51 void UpdateTopControlsState(TopControlsState constraints,
52 TopControlsState current, 52 TopControlsState current,
53 bool animate); 53 bool animate);
54 54
55 void ScrollBegin(); 55 void ScrollBegin();
56 gfx::Vector2dF ScrollBy(const gfx::Vector2dF pending_delta); 56 gfx::Vector2dF ScrollBy(const gfx::Vector2dF& pending_delta);
57 void ScrollEnd(); 57 void ScrollEnd();
58 58
59 // The caller should ensure that |Pinch{Begin,End}| are called within 59 // The caller should ensure that |Pinch{Begin,End}| are called within
60 // the scope of |Scroll{Begin,End}|. 60 // the scope of |Scroll{Begin,End}|.
61 void PinchBegin(); 61 void PinchBegin();
62 void PinchEnd(); 62 void PinchEnd();
63 63
64 gfx::Vector2dF Animate(base::TimeTicks monotonic_time); 64 gfx::Vector2dF Animate(base::TimeTicks monotonic_time);
65 65
66 protected: 66 protected:
(...skipping 30 matching lines...) Expand all
97 float top_controls_hide_height_; 97 float top_controls_hide_height_;
98 98
99 bool pinch_gesture_active_; 99 bool pinch_gesture_active_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(TopControlsManager); 101 DISALLOW_COPY_AND_ASSIGN(TopControlsManager);
102 }; 102 };
103 103
104 } // namespace cc 104 } // namespace cc
105 105
106 #endif // CC_INPUT_TOP_CONTROLS_MANAGER_H_ 106 #endif // CC_INPUT_TOP_CONTROLS_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/input/page_scale_animation.cc ('k') | cc/input/top_controls_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698