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

Side by Side Diff: ash/mus/shell_delegate_mus.h

Issue 2633293005: Converts mash to use Shell (Closed)
Patch Set: feedback Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « ash/mus/root_window_controller.cc ('k') | ash/mus/shell_delegate_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/macros.h" 11 #include "base/macros.h"
12 12
13 namespace service_manager { 13 namespace service_manager {
14 class Connector; 14 class Connector;
15 } 15 }
16 16
17 namespace ash { 17 namespace ash {
18 18
19 class ShellDelegateMus : public ShellDelegate { 19 class ShellDelegateMus : public ShellDelegate {
20 public: 20 public:
21 explicit ShellDelegateMus(service_manager::Connector* connector); 21 ShellDelegateMus(
22 service_manager::Connector* connector,
23 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_for_test);
22 ~ShellDelegateMus() override; 24 ~ShellDelegateMus() override;
23 25
24 // ShellDelegate: 26 // ShellDelegate:
25 service_manager::Connector* GetShellConnector() const override; 27 service_manager::Connector* GetShellConnector() 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;
(...skipping 11 matching lines...) Expand all
43 const ShelfItem* item) override; 45 const ShelfItem* item) override;
44 GPUSupport* CreateGPUSupport() override; 46 GPUSupport* CreateGPUSupport() override;
45 base::string16 GetProductName() const override; 47 base::string16 GetProductName() const override;
46 gfx::Image GetDeprecatedAcceleratorImage() const override; 48 gfx::Image GetDeprecatedAcceleratorImage() const override;
47 bool IsTouchscreenEnabledInPrefs(bool use_local_state) const override; 49 bool IsTouchscreenEnabledInPrefs(bool use_local_state) const override;
48 void SetTouchscreenEnabledInPrefs(bool enabled, 50 void SetTouchscreenEnabledInPrefs(bool enabled,
49 bool use_local_state) override; 51 bool use_local_state) override;
50 void UpdateTouchscreenStatusFromPrefs() override; 52 void UpdateTouchscreenStatusFromPrefs() override;
51 53
52 private: 54 private:
55 // |connector_| may be null in tests.
53 service_manager::Connector* connector_; 56 service_manager::Connector* connector_;
57 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_for_test_;
54 58
55 DISALLOW_COPY_AND_ASSIGN(ShellDelegateMus); 59 DISALLOW_COPY_AND_ASSIGN(ShellDelegateMus);
56 }; 60 };
57 61
58 } // namespace ash 62 } // namespace ash
59 63
60 #endif // ASH_MUS_SHELL_DELEGATE_MUS_H_ 64 #endif // ASH_MUS_SHELL_DELEGATE_MUS_H_
OLDNEW
« no previous file with comments | « ash/mus/root_window_controller.cc ('k') | ash/mus/shell_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698