Index: ash/first_run/first_run_delegate.h |
diff --git a/ash/first_run/first_run_delegate.h b/ash/first_run/first_run_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1391d3186dfe58934c315e5829ff2a4c01c9c72c |
--- /dev/null |
+++ b/ash/first_run/first_run_delegate.h |
@@ -0,0 +1,43 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
oshima
2013/10/10 22:47:18
no (c)
dzhioev (left Google)
2013/10/11 18:03:52
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ASH_FIRST_RUN_FIRST_RUN_DELEGATE_H_ |
+#define ASH_FIRST_RUN_FIRST_RUN_DELEGATE_H_ |
+ |
+#include "ash/ash_export.h" |
+#include "base/basictypes.h" |
+#include "ui/gfx/rect.h" |
oshima
2013/10/10 22:47:18
this can be forward decl.
dzhioev (left Google)
2013/10/11 18:03:52
Done.
|
+ |
+namespace ash { |
+ |
+// Interface used by first-run tutorial to manipulate and retreive information |
+// about shell elements. |
+// All returned coordinates are in screen coordinate system. |
+class ASH_EXPORT FirstRunDelegate { |
+ public: |
+ FirstRunDelegate(); |
+ virtual ~FirstRunDelegate(); |
+ |
+ // Opens and closes app list. |
+ virtual void OpenAppList() = 0; |
+ virtual void CloseAppList() = 0; |
+ |
+ // Returns bounding rectangle of launcher elements. |
+ virtual gfx::Rect GetLauncherBounds() = 0; |
+ |
+ // Returns bounds of application list button. |
+ virtual gfx::Rect GetAppListButtonBounds() = 0; |
+ |
+ // If application list is opened saves its bounds to |result| and returns |
+ // |true|. Returns |false| otherwise. |
+ virtual bool GetAppListBounds(gfx::Rect* result) = 0; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(FirstRunDelegate); |
+}; |
+ |
+} // namespace ash |
+ |
+#endif // ASH_FIRST_RUN_FIRST_RUN_DELEGATE_H_ |
+ |