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

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

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/shell_delegate_mus.h ('k') | ash/mus/test/wm_test_helper.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 #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_for_test)
90 : connector_(connector),
91 system_tray_delegate_for_test_(std::move(system_tray_delegate_for_test)) {
90 } 92 }
91 93
92 ShellDelegateMus::~ShellDelegateMus() {} 94 ShellDelegateMus::~ShellDelegateMus() {}
93 95
94 service_manager::Connector* ShellDelegateMus::GetShellConnector() const { 96 service_manager::Connector* ShellDelegateMus::GetShellConnector() const {
95 return connector_; 97 return connector_;
96 } 98 }
97 99
98 bool ShellDelegateMus::IsIncognitoAllowed() const { 100 bool ShellDelegateMus::IsIncognitoAllowed() const {
99 NOTIMPLEMENTED(); 101 NOTIMPLEMENTED();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 141
140 void ShellDelegateMus::OpenUrlFromArc(const GURL& url) { 142 void ShellDelegateMus::OpenUrlFromArc(const GURL& url) {
141 NOTIMPLEMENTED(); 143 NOTIMPLEMENTED();
142 } 144 }
143 145
144 ShelfDelegate* ShellDelegateMus::CreateShelfDelegate(ShelfModel* model) { 146 ShelfDelegate* ShellDelegateMus::CreateShelfDelegate(ShelfModel* model) {
145 return new ShelfDelegateMus(); 147 return new ShelfDelegateMus();
146 } 148 }
147 149
148 SystemTrayDelegate* ShellDelegateMus::CreateSystemTrayDelegate() { 150 SystemTrayDelegate* ShellDelegateMus::CreateSystemTrayDelegate() {
151 if (system_tray_delegate_for_test_)
152 return system_tray_delegate_for_test_.release();
149 return new SystemTrayDelegateMus(); 153 return new SystemTrayDelegateMus();
150 } 154 }
151 155
152 std::unique_ptr<WallpaperDelegate> ShellDelegateMus::CreateWallpaperDelegate() { 156 std::unique_ptr<WallpaperDelegate> ShellDelegateMus::CreateWallpaperDelegate() {
153 return base::MakeUnique<WallpaperDelegateMus>(); 157 return base::MakeUnique<WallpaperDelegateMus>();
154 } 158 }
155 159
156 SessionStateDelegate* ShellDelegateMus::CreateSessionStateDelegate() { 160 SessionStateDelegate* ShellDelegateMus::CreateSessionStateDelegate() {
157 // TODO: http://crbug.com/647416. 161 // TODO: http://crbug.com/647416.
158 NOTIMPLEMENTED() << " Using a stub SessionStateDeleagte implementation"; 162 NOTIMPLEMENTED() << " Using a stub SessionStateDeleagte implementation";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 void ShellDelegateMus::SetTouchscreenEnabledInPrefs(bool enabled, 202 void ShellDelegateMus::SetTouchscreenEnabledInPrefs(bool enabled,
199 bool use_local_state) { 203 bool use_local_state) {
200 NOTIMPLEMENTED(); 204 NOTIMPLEMENTED();
201 } 205 }
202 206
203 void ShellDelegateMus::UpdateTouchscreenStatusFromPrefs() { 207 void ShellDelegateMus::UpdateTouchscreenStatusFromPrefs() {
204 NOTIMPLEMENTED(); 208 NOTIMPLEMENTED();
205 } 209 }
206 210
207 } // namespace ash 211 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/shell_delegate_mus.h ('k') | ash/mus/test/wm_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698