OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_MUS_SHELL_DELEGATE_MUS_H_ | 5 #ifndef ASH_MUS_SHELL_DELEGATE_MUS_H_ |
6 #define ASH_MUS_SHELL_DELEGATE_MUS_H_ | 6 #define ASH_MUS_SHELL_DELEGATE_MUS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/common/shell_delegate.h" | 10 #include "ash/common/shell_delegate.h" |
11 #include "ash/mus/app_list_presenter_mus.h" | 11 #include "ash/mus/app_list_presenter_mus.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 | 13 |
14 namespace shell { | 14 namespace shell { |
15 class Connector; | 15 class Connector; |
16 } | 16 } |
17 | 17 |
18 namespace ash { | 18 namespace ash { |
19 | 19 |
20 class ShellDelegateMus : public ShellDelegate { | 20 class ShellDelegateMus : public ShellDelegate { |
21 public: | 21 public: |
22 explicit ShellDelegateMus(shell::Connector* connector); | 22 explicit ShellDelegateMus(shell::Connector* connector); |
23 ~ShellDelegateMus() override; | 23 ~ShellDelegateMus() override; |
24 | 24 |
| 25 // ShellDelegate: |
| 26 ::shell::Connector* GetShellConnector() const override; |
25 bool IsFirstRunAfterBoot() const override; | 27 bool IsFirstRunAfterBoot() const override; |
26 bool IsIncognitoAllowed() const override; | 28 bool IsIncognitoAllowed() const override; |
27 bool IsMultiProfilesEnabled() const override; | 29 bool IsMultiProfilesEnabled() const override; |
28 bool IsRunningInForcedAppMode() const override; | 30 bool IsRunningInForcedAppMode() const override; |
29 bool CanShowWindowForUser(WmWindow* window) const override; | 31 bool CanShowWindowForUser(WmWindow* window) const override; |
30 bool IsForceMaximizeOnFirstRun() const override; | 32 bool IsForceMaximizeOnFirstRun() const override; |
31 void PreInit() override; | 33 void PreInit() override; |
32 void PreShutdown() override; | 34 void PreShutdown() override; |
33 void Exit() override; | 35 void Exit() override; |
34 keyboard::KeyboardUI* CreateKeyboardUI() override; | 36 keyboard::KeyboardUI* CreateKeyboardUI() override; |
(...skipping 16 matching lines...) Expand all Loading... |
51 private: | 53 private: |
52 shell::Connector* connector_; | 54 shell::Connector* connector_; |
53 AppListPresenterMus app_list_presenter_; | 55 AppListPresenterMus app_list_presenter_; |
54 | 56 |
55 DISALLOW_COPY_AND_ASSIGN(ShellDelegateMus); | 57 DISALLOW_COPY_AND_ASSIGN(ShellDelegateMus); |
56 }; | 58 }; |
57 | 59 |
58 } // namespace ash | 60 } // namespace ash |
59 | 61 |
60 #endif // ASH_MUS_SHELL_DELEGATE_MUS_H_ | 62 #endif // ASH_MUS_SHELL_DELEGATE_MUS_H_ |
OLD | NEW |