Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ash / first_run / first_run_helper_impl.h
blob5e091f99debbd94aafd090d19a3d65ef07393f57
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_IMPL_H_
6 #define ASH_FIRST_RUN_FIRST_RUN_HELPER_IMPL_H_
8 #include "ash/first_run/first_run_helper.h"
9 #include "ash/first_run/desktop_cleaner.h"
10 #include "ash/wm/overlay_event_filter.h"
11 #include "base/compiler_specific.h"
13 namespace ash {
15 class Shell;
17 class FirstRunHelperImpl : public FirstRunHelper,
18 public OverlayEventFilter::Delegate {
19 public:
20 FirstRunHelperImpl();
21 ~FirstRunHelperImpl() override;
23 // Overriden from FirstRunHelper.
24 views::Widget* GetOverlayWidget() override;
25 void OpenAppList() override;
26 void CloseAppList() override;
27 gfx::Rect GetLauncherBounds() override;
28 gfx::Rect GetAppListButtonBounds() override;
29 gfx::Rect GetAppListBounds() override;
30 void OpenTrayBubble() override;
31 void CloseTrayBubble() override;
32 bool IsTrayBubbleOpened() override;
33 gfx::Rect GetTrayBubbleBounds() override;
34 gfx::Rect GetHelpButtonBounds() override;
36 // Overriden from OverlayEventFilter::Delegate.
37 void Cancel() override;
38 bool IsCancelingKeyEvent(ui::KeyEvent* event) override;
39 aura::Window* GetWindow() override;
41 private:
42 views::Widget* widget_;
43 DesktopCleaner cleaner_;
45 DISALLOW_COPY_AND_ASSIGN(FirstRunHelperImpl);
48 } // namespace ash
50 #endif // ASH_FIRST_RUN_FIRST_RUN_HELPER_IMPL_H_