Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
|
jdufault
2016/06/03 22:02:44
What about defining this class inside of Autoclick
sammiequon
2016/06/07 18:06:16
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_AUTOCLICKGESTURE_DELEGATE_H_ | |
| 6 #define ASH_AUTOCLICKGESTURE_DELEGATE_H_ | |
| 7 | |
| 8 #include "ui/gfx/geometry/point.h" | |
| 9 | |
| 10 namespace ash { | |
| 11 | |
| 12 // Delegate for taking screenshots. | |
| 13 class AutoclickgestureDelegate { | |
|
jdufault
2016/06/03 22:02:44
gesture should be capitalized to Gesture, so Autoc
| |
| 14 public: | |
| 15 virtual ~AutoclickgestureDelegate() {} | |
| 16 | |
| 17 // The actual task of starting the display of a gesture. | |
|
jdufault
2016/06/03 22:02:44
How about comments like:
Called when an autocli
sammiequon
2016/06/07 18:06:16
Done.
sammiequon
2016/06/07 18:06:16
Done.
| |
| 18 virtual void StartGesture(int delay_ms, gfx::Point center) = 0; | |
| 19 | |
| 20 // The actual task of stopping a gesture from being displayed. | |
| 21 virtual void StopGesture() = 0; | |
| 22 | |
| 23 virtual void SetGestureCenter(gfx::Point center) = 0; | |
|
jdufault
2016/06/03 22:02:44
Add DISALLOW_COPY_AND_ASSIGN(AutoclickgestureDeleg
jdufault
2016/06/03 22:02:44
Please add a comment to SetGestureCenter.
sammiequon
2016/06/07 18:06:16
Done.
| |
| 24 }; | |
| 25 } // namespace ash | |
| 26 | |
| 27 #endif // ASH_AUTOCLICKGESTURE_DELEGATE_H_ | |
| OLD | NEW |