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

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

Issue 139563004: Notification on finish handling of top control gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_INPUT_HANDLER_H_ 5 #ifndef CC_INPUT_INPUT_HANDLER_H_
6 #define CC_INPUT_INPUT_HANDLER_H_ 6 #define CC_INPUT_INPUT_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 25 matching lines...) Expand all
36 36
37 virtual void WillShutdown() = 0; 37 virtual void WillShutdown() = 0;
38 virtual void Animate(base::TimeTicks time) = 0; 38 virtual void Animate(base::TimeTicks time) = 0;
39 virtual void MainThreadHasStoppedFlinging() = 0; 39 virtual void MainThreadHasStoppedFlinging() = 0;
40 40
41 // Called when scroll deltas reaching the root scrolling layer go unused. 41 // Called when scroll deltas reaching the root scrolling layer go unused.
42 // The accumulated overscroll is scoped by the most recent call to 42 // The accumulated overscroll is scoped by the most recent call to
43 // InputHandler::ScrollBegin. 43 // InputHandler::ScrollBegin.
44 virtual void DidOverscroll(const DidOverscrollParams& params) = 0; 44 virtual void DidOverscroll(const DidOverscrollParams& params) = 0;
45 45
46 // Called when the TopControlsManager has finished handling the top control
47 // auto-hide/auto-show gesture.
48 virtual void DidFinishTopControlsGesture() = 0;
49
46 protected: 50 protected:
47 InputHandlerClient() {} 51 InputHandlerClient() {}
48 52
49 private: 53 private:
50 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); 54 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient);
51 }; 55 };
52 56
53 // The InputHandler is a way for the embedders to interact with the impl thread 57 // The InputHandler is a way for the embedders to interact with the impl thread
54 // side of the compositor implementation. There is one InputHandler per 58 // side of the compositor implementation. There is one InputHandler per
55 // LayerTreeHost. To use the input handler, implement the InputHanderClient 59 // LayerTreeHost. To use the input handler, implement the InputHanderClient
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 InputHandler() {} 143 InputHandler() {}
140 virtual ~InputHandler() {} 144 virtual ~InputHandler() {}
141 145
142 private: 146 private:
143 DISALLOW_COPY_AND_ASSIGN(InputHandler); 147 DISALLOW_COPY_AND_ASSIGN(InputHandler);
144 }; 148 };
145 149
146 } // namespace cc 150 } // namespace cc
147 151
148 #endif // CC_INPUT_INPUT_HANDLER_H_ 152 #endif // CC_INPUT_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/input/top_controls_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698