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

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

Issue 2633293005: Converts mash to use Shell (Closed)
Patch Set: cleanup 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
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 #include "ash/mus/shell_delegate_mus.h" 5 #include "ash/mus/shell_delegate_mus.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/common/gpu_support_stub.h" 9 #include "ash/common/gpu_support_stub.h"
10 #include "ash/common/palette_delegate.h" 10 #include "ash/common/palette_delegate.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 bool screen_locked_; 77 bool screen_locked_;
78 78
79 // A pseudo user info. 79 // A pseudo user info.
80 std::unique_ptr<user_manager::UserInfo> user_info_; 80 std::unique_ptr<user_manager::UserInfo> user_info_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateStub); 82 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateStub);
83 }; 83 };
84 84
85 } // namespace 85 } // namespace
86 86
87 ShellDelegateMus::ShellDelegateMus(service_manager::Connector* connector) 87 ShellDelegateMus::ShellDelegateMus(
88 : connector_(connector) { 88 service_manager::Connector* connector,
89 // |connector_| may be null in tests. 89 std::unique_ptr<SystemTrayDelegate> system_tray_delegate)
90 } 90 : connector_(connector),
91 system_tray_delegate_(std::move(system_tray_delegate)) {}
91 92
92 ShellDelegateMus::~ShellDelegateMus() {} 93 ShellDelegateMus::~ShellDelegateMus() {}
93 94
94 service_manager::Connector* ShellDelegateMus::GetShellConnector() const { 95 service_manager::Connector* ShellDelegateMus::GetShellConnector() const {
95 return connector_; 96 return connector_;
96 } 97 }
97 98
98 bool ShellDelegateMus::IsIncognitoAllowed() const { 99 bool ShellDelegateMus::IsIncognitoAllowed() const {
99 NOTIMPLEMENTED(); 100 NOTIMPLEMENTED();
100 return false; 101 return false;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 void ShellDelegateMus::OpenUrlFromArc(const GURL& url) { 141 void ShellDelegateMus::OpenUrlFromArc(const GURL& url) {
141 NOTIMPLEMENTED(); 142 NOTIMPLEMENTED();
142 } 143 }
143 144
144 ShelfDelegate* ShellDelegateMus::CreateShelfDelegate(ShelfModel* model) { 145 ShelfDelegate* ShellDelegateMus::CreateShelfDelegate(ShelfModel* model) {
145 return new ShelfDelegateMus(); 146 return new ShelfDelegateMus();
146 } 147 }
147 148
148 SystemTrayDelegate* ShellDelegateMus::CreateSystemTrayDelegate() { 149 SystemTrayDelegate* ShellDelegateMus::CreateSystemTrayDelegate() {
150 if (system_tray_delegate_)
151 return system_tray_delegate_.release();
149 return new SystemTrayDelegateMus(); 152 return new SystemTrayDelegateMus();
150 } 153 }
151 154
152 std::unique_ptr<WallpaperDelegate> ShellDelegateMus::CreateWallpaperDelegate() { 155 std::unique_ptr<WallpaperDelegate> ShellDelegateMus::CreateWallpaperDelegate() {
153 return base::MakeUnique<WallpaperDelegateMus>(); 156 return base::MakeUnique<WallpaperDelegateMus>();
154 } 157 }
155 158
156 SessionStateDelegate* ShellDelegateMus::CreateSessionStateDelegate() { 159 SessionStateDelegate* ShellDelegateMus::CreateSessionStateDelegate() {
157 // TODO: http://crbug.com/647416. 160 // TODO: http://crbug.com/647416.
158 NOTIMPLEMENTED() << " Using a stub SessionStateDeleagte implementation"; 161 NOTIMPLEMENTED() << " Using a stub SessionStateDeleagte implementation";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 void ShellDelegateMus::SetTouchscreenEnabledInPrefs(bool enabled, 201 void ShellDelegateMus::SetTouchscreenEnabledInPrefs(bool enabled,
199 bool use_local_state) { 202 bool use_local_state) {
200 NOTIMPLEMENTED(); 203 NOTIMPLEMENTED();
201 } 204 }
202 205
203 void ShellDelegateMus::UpdateTouchscreenStatusFromPrefs() { 206 void ShellDelegateMus::UpdateTouchscreenStatusFromPrefs() {
204 NOTIMPLEMENTED(); 207 NOTIMPLEMENTED();
205 } 208 }
206 209
207 } // namespace ash 210 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698