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

Unified Diff: ash/first_run/first_run_helper.h

Issue 26277006: Created ash::FirstRunHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 2 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/first_run/first_run_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/first_run/first_run_helper.h
diff --git a/ash/first_run/first_run_helper.h b/ash/first_run/first_run_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..b1bacb67386a606725730e23bdec1b03b796c1c4
--- /dev/null
+++ b/ash/first_run/first_run_helper.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_HELPER_H_
+#define ASH_FIRST_RUN_FIRST_RUN_HELPER_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 FirstRunHelper {
+ public:
+ FirstRunHelper();
+ virtual ~FirstRunHelper();
+
+ // 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;
+
+ // Returns bounds of application list. You must open application list before
+ // calling this method.
+ virtual gfx::Rect GetAppListBounds() = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FirstRunHelper);
+};
+
+} // namespace ash
+
+#endif // ASH_FIRST_RUN_FIRST_RUN_HELPER_H_
+
« no previous file with comments | « ash/ash.gyp ('k') | ash/first_run/first_run_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698