Disable flaky tests
[chromium-blink-merge.git] / ash / first_run / first_run_helper.h
blobb10721ce7204f1f2f079ad5535ea220269e49fca
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.
5 #ifndef ASH_FIRST_RUN_FIRST_RUN_HELPER_H_
6 #define ASH_FIRST_RUN_FIRST_RUN_HELPER_H_
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
11 namespace gfx {
12 class Rect;
15 namespace views {
16 class Widget;
19 namespace ash {
21 // Interface used by first-run tutorial to manipulate and retreive information
22 // about shell elements.
23 // All returned coordinates are in screen coordinate system.
24 class ASH_EXPORT FirstRunHelper {
25 public:
26 FirstRunHelper();
27 virtual ~FirstRunHelper();
29 // Returns widget to place tutorial UI into it.
30 virtual views::Widget* GetOverlayWidget() = 0;
32 // Opens and closes app list.
33 virtual void OpenAppList() = 0;
34 virtual void CloseAppList() = 0;
36 // Returns bounding rectangle of launcher elements.
37 virtual gfx::Rect GetLauncherBounds() = 0;
39 // Returns bounds of application list button.
40 virtual gfx::Rect GetAppListButtonBounds() = 0;
42 // Returns bounds of application list. You must open application list before
43 // calling this method.
44 virtual gfx::Rect GetAppListBounds() = 0;
46 // Opens and closes system tray bubble.
47 virtual void OpenTrayBubble() = 0;
48 virtual void CloseTrayBubble() = 0;
50 // Returns |true| iff system tray bubble is opened now.
51 virtual bool IsTrayBubbleOpened() = 0;
53 // Returns bounds of system tray bubble. You must open bubble before calling
54 // this method.
55 virtual gfx::Rect GetTrayBubbleBounds() = 0;
57 // Returns bounds of help app button from system tray buble. You must open
58 // bubble before calling this method.
59 virtual gfx::Rect GetHelpButtonBounds() = 0;
61 private:
62 DISALLOW_COPY_AND_ASSIGN(FirstRunHelper);
65 } // namespace ash
67 #endif // ASH_FIRST_RUN_FIRST_RUN_HELPER_H_