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 10 matching lines...) Expand all Loading... |
21 #include "ash/shell_delegate.h" | 21 #include "ash/shell_delegate.h" |
22 #include "ash/shell_factory.h" | 22 #include "ash/shell_factory.h" |
23 #include "ash/shell_window_ids.h" | 23 #include "ash/shell_window_ids.h" |
24 #include "ash/system/audio/tray_volume.h" | 24 #include "ash/system/audio/tray_volume.h" |
25 #include "ash/system/bluetooth/tray_bluetooth.h" | 25 #include "ash/system/bluetooth/tray_bluetooth.h" |
26 #include "ash/system/brightness/tray_brightness.h" | 26 #include "ash/system/brightness/tray_brightness.h" |
27 #include "ash/system/date/tray_date.h" | 27 #include "ash/system/date/tray_date.h" |
28 #include "ash/system/ime/tray_ime.h" | 28 #include "ash/system/ime/tray_ime.h" |
29 #include "ash/system/network/tray_network.h" | 29 #include "ash/system/network/tray_network.h" |
30 #include "ash/system/power/power_status_observer.h" | 30 #include "ash/system/power/power_status_observer.h" |
31 #include "ash/system/power/power_supply_status.h" | |
32 #include "ash/system/power/tray_power.h" | 31 #include "ash/system/power/tray_power.h" |
33 #include "ash/system/settings/tray_settings.h" | 32 #include "ash/system/settings/tray_settings.h" |
34 #include "ash/system/tray/system_tray_delegate.h" | 33 #include "ash/system/tray/system_tray_delegate.h" |
35 #include "ash/system/tray/system_tray.h" | 34 #include "ash/system/tray/system_tray.h" |
36 #include "ash/system/tray/tray_empty.h" | 35 #include "ash/system/tray/tray_empty.h" |
37 #include "ash/system/tray_accessibility.h" | 36 #include "ash/system/tray_accessibility.h" |
38 #include "ash/system/tray_caps_lock.h" | 37 #include "ash/system/tray_caps_lock.h" |
39 #include "ash/system/user/tray_user.h" | 38 #include "ash/system/user/tray_user.h" |
40 #include "ash/tooltips/tooltip_controller.h" | 39 #include "ash/tooltips/tooltip_controller.h" |
41 #include "ash/wm/activation_controller.h" | 40 #include "ash/wm/activation_controller.h" |
(...skipping 18 matching lines...) Expand all Loading... |
60 #include "ash/wm/visibility_controller.h" | 59 #include "ash/wm/visibility_controller.h" |
61 #include "ash/wm/window_cycle_controller.h" | 60 #include "ash/wm/window_cycle_controller.h" |
62 #include "ash/wm/window_modality_controller.h" | 61 #include "ash/wm/window_modality_controller.h" |
63 #include "ash/wm/window_util.h" | 62 #include "ash/wm/window_util.h" |
64 #include "ash/wm/workspace_controller.h" | 63 #include "ash/wm/workspace_controller.h" |
65 #include "ash/wm/workspace/workspace_event_filter.h" | 64 #include "ash/wm/workspace/workspace_event_filter.h" |
66 #include "ash/wm/workspace/workspace_layout_manager.h" | 65 #include "ash/wm/workspace/workspace_layout_manager.h" |
67 #include "ash/wm/workspace/workspace_manager.h" | 66 #include "ash/wm/workspace/workspace_manager.h" |
68 #include "base/bind.h" | 67 #include "base/bind.h" |
69 #include "base/command_line.h" | 68 #include "base/command_line.h" |
| 69 #include "chromeos/dbus/power_supply_status.h" |
70 #include "grit/ui_resources.h" | 70 #include "grit/ui_resources.h" |
71 #include "third_party/skia/include/core/SkBitmap.h" | 71 #include "third_party/skia/include/core/SkBitmap.h" |
72 #include "ui/aura/client/aura_constants.h" | 72 #include "ui/aura/client/aura_constants.h" |
73 #include "ui/aura/env.h" | 73 #include "ui/aura/env.h" |
74 #include "ui/aura/layout_manager.h" | 74 #include "ui/aura/layout_manager.h" |
75 #include "ui/aura/monitor.h" | 75 #include "ui/aura/monitor.h" |
76 #include "ui/aura/monitor_manager.h" | 76 #include "ui/aura/monitor_manager.h" |
77 #include "ui/aura/monitor_manager.h" | 77 #include "ui/aura/monitor_manager.h" |
78 #include "ui/aura/root_window.h" | 78 #include "ui/aura/root_window.h" |
79 #include "ui/aura/ui_controls_aura.h" | 79 #include "ui/aura/ui_controls_aura.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 } | 288 } |
289 | 289 |
290 virtual int GetSystemUpdateIconResource() const OVERRIDE { | 290 virtual int GetSystemUpdateIconResource() const OVERRIDE { |
291 return IDR_AURA_UBER_TRAY_UPDATE; | 291 return IDR_AURA_UBER_TRAY_UPDATE; |
292 } | 292 } |
293 | 293 |
294 virtual base::HourClockType GetHourClockType() const OVERRIDE { | 294 virtual base::HourClockType GetHourClockType() const OVERRIDE { |
295 return base::k24HourClock; | 295 return base::k24HourClock; |
296 } | 296 } |
297 | 297 |
298 virtual PowerSupplyStatus GetPowerSupplyStatus() const OVERRIDE { | 298 virtual chromeos::PowerSupplyStatus GetPowerSupplyStatus() const OVERRIDE { |
299 return PowerSupplyStatus(); | 299 return chromeos::PowerSupplyStatus(); |
300 } | 300 } |
301 | 301 |
302 virtual void ShowSettings() OVERRIDE { | 302 virtual void ShowSettings() OVERRIDE { |
303 } | 303 } |
304 | 304 |
305 virtual void ShowDateSettings() OVERRIDE { | 305 virtual void ShowDateSettings() OVERRIDE { |
306 } | 306 } |
307 | 307 |
308 virtual void ShowNetworkSettings() OVERRIDE { | 308 virtual void ShowNetworkSettings() OVERRIDE { |
309 } | 309 } |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 desktop_background_controller_->SetDesktopBackgroundImageMode( | 885 desktop_background_controller_->SetDesktopBackgroundImageMode( |
886 GetWallpaper(index), GetWallpaperInfo(index).layout); | 886 GetWallpaper(index), GetWallpaperInfo(index).layout); |
887 } | 887 } |
888 | 888 |
889 void Shell::DisableWorkspaceGridLayout() { | 889 void Shell::DisableWorkspaceGridLayout() { |
890 if (workspace_controller_.get()) | 890 if (workspace_controller_.get()) |
891 workspace_controller_->workspace_manager()->set_grid_size(0); | 891 workspace_controller_->workspace_manager()->set_grid_size(0); |
892 } | 892 } |
893 | 893 |
894 } // namespace ash | 894 } // namespace ash |
OLD | NEW |