OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 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_FIRST_RUN_FIRST_RUN_HELPER_H_ |
| 6 #define ASH_FIRST_RUN_FIRST_RUN_HELPER_H_ |
| 7 |
| 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" |
| 10 |
| 11 namespace gfx { |
| 12 class Rect; |
| 13 } |
| 14 |
| 15 namespace ash { |
| 16 |
| 17 // Interface used by first-run tutorial to manipulate and retreive information |
| 18 // about shell elements. |
| 19 // All returned coordinates are in screen coordinate system. |
| 20 class ASH_EXPORT FirstRunHelper { |
| 21 public: |
| 22 FirstRunHelper(); |
| 23 virtual ~FirstRunHelper(); |
| 24 |
| 25 // Opens and closes app list. |
| 26 virtual void OpenAppList() = 0; |
| 27 virtual void CloseAppList() = 0; |
| 28 |
| 29 // Returns bounding rectangle of launcher elements. |
| 30 virtual gfx::Rect GetLauncherBounds() = 0; |
| 31 |
| 32 // Returns bounds of application list button. |
| 33 virtual gfx::Rect GetAppListButtonBounds() = 0; |
| 34 |
| 35 // Returns bounds of application list. You must open application list before |
| 36 // calling this method. |
| 37 virtual gfx::Rect GetAppListBounds() = 0; |
| 38 |
| 39 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(FirstRunHelper); |
| 41 }; |
| 42 |
| 43 } // namespace ash |
| 44 |
| 45 #endif // ASH_FIRST_RUN_FIRST_RUN_HELPER_H_ |
| 46 |
OLD | NEW |