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..4cdb832c4c265bcb3f7a7aa0c8a2515f633a80b0 |
--- /dev/null |
+++ b/ash/first_run/first_run_delegate.h |
@@ -0,0 +1,46 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// 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" |
+ |
+namespace gfx { |
+class Rect; |
+} |
+ |
+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 { |
oshima
2013/10/11 20:58:44
XxxDelegate is for interface to delegate the part
dzhioev (left Google)
2013/10/12 00:02:50
It's not only for information retrieval, but also
oshima
2013/10/16 16:32:05
It's still not delegate. Controller/Manager would
|
+ 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; |
oshima
2013/10/11 20:58:44
what if the launcher is hidden?
dzhioev (left Google)
2013/10/12 00:02:50
It's not decided yet how to handle this case. Mayb
oshima
2013/10/16 16:32:05
This issue sounds same as app_list. Shouldn't this
|
+ |
+ // 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_ |
+ |