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

Unified Diff: ash/autoclick/autoclickgesture_delegate.h

Issue 2016073004: Show a visual indicator for the progress of auto-click. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Moved ring rendering code to chrome/browser/chromeos/ui Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ash/autoclick/autoclickgesture_delegate.h
diff --git a/ash/autoclick/autoclickgesture_delegate.h b/ash/autoclick/autoclickgesture_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..ebd4765d6cbfea9d55ced33f8f0fcfecba9b9e49
--- /dev/null
+++ b/ash/autoclick/autoclickgesture_delegate.h
@@ -0,0 +1,27 @@
+// 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.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_AUTOCLICKGESTURE_DELEGATE_H_
+#define ASH_AUTOCLICKGESTURE_DELEGATE_H_
+
+#include "ui/gfx/geometry/point.h"
+
+namespace ash {
+
+// Delegate for taking screenshots.
+class AutoclickgestureDelegate {
jdufault 2016/06/03 22:02:44 gesture should be capitalized to Gesture, so Autoc
+ public:
+ virtual ~AutoclickgestureDelegate() {}
+
+ // 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.
+ virtual void StartGesture(int delay_ms, gfx::Point center) = 0;
+
+ // The actual task of stopping a gesture from being displayed.
+ virtual void StopGesture() = 0;
+
+ 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.
+};
+} // namespace ash
+
+#endif // ASH_AUTOCLICKGESTURE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698