| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell.h" | 5 #include "ash/shell.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ash/app_list/app_list.h" | 9 #include "ash/app_list/app_list.h" |
| 10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 245 |
| 246 virtual ~DummyUserWallpaperDelegate() {} | 246 virtual ~DummyUserWallpaperDelegate() {} |
| 247 | 247 |
| 248 virtual const int GetUserWallpaperIndex() OVERRIDE { | 248 virtual const int GetUserWallpaperIndex() OVERRIDE { |
| 249 return 0; | 249 return 0; |
| 250 } | 250 } |
| 251 | 251 |
| 252 virtual void OpenSetWallpaperPage() OVERRIDE { | 252 virtual void OpenSetWallpaperPage() OVERRIDE { |
| 253 } | 253 } |
| 254 | 254 |
| 255 virtual bool IsLoggedInAsGuest() OVERRIDE { |
| 256 return false; |
| 257 } |
| 258 |
| 255 private: | 259 private: |
| 256 DISALLOW_COPY_AND_ASSIGN(DummyUserWallpaperDelegate); | 260 DISALLOW_COPY_AND_ASSIGN(DummyUserWallpaperDelegate); |
| 257 }; | 261 }; |
| 258 | 262 |
| 259 class DummySystemTrayDelegate : public SystemTrayDelegate { | 263 class DummySystemTrayDelegate : public SystemTrayDelegate { |
| 260 public: | 264 public: |
| 261 DummySystemTrayDelegate() | 265 DummySystemTrayDelegate() |
| 262 : muted_(false), | 266 : muted_(false), |
| 263 wifi_enabled_(true), | 267 wifi_enabled_(true), |
| 264 cellular_enabled_(true), | 268 cellular_enabled_(true), |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 desktop_background_controller_->SetDesktopBackgroundImageMode( | 928 desktop_background_controller_->SetDesktopBackgroundImageMode( |
| 925 GetWallpaper(index), GetWallpaperInfo(index).layout); | 929 GetWallpaper(index), GetWallpaperInfo(index).layout); |
| 926 } | 930 } |
| 927 | 931 |
| 928 void Shell::DisableWorkspaceGridLayout() { | 932 void Shell::DisableWorkspaceGridLayout() { |
| 929 if (workspace_controller_.get()) | 933 if (workspace_controller_.get()) |
| 930 workspace_controller_->workspace_manager()->set_grid_size(0); | 934 workspace_controller_->workspace_manager()->set_grid_size(0); |
| 931 } | 935 } |
| 932 | 936 |
| 933 } // namespace ash | 937 } // namespace ash |
| OLD | NEW |