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

Side by Side Diff: ash/root_window_controller.cc

Issue 23496024: Introduce RootWindowProperty for RootWindow's properties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ash/root_window_settings.h » ('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 (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/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_constants.h" 10 #include "ash/ash_constants.h"
11 #include "ash/ash_switches.h" 11 #include "ash/ash_switches.h"
12 #include "ash/desktop_background/desktop_background_widget_controller.h" 12 #include "ash/desktop_background/desktop_background_widget_controller.h"
13 #include "ash/desktop_background/user_wallpaper_delegate.h" 13 #include "ash/desktop_background/user_wallpaper_delegate.h"
14 #include "ash/display/display_manager.h" 14 #include "ash/display/display_manager.h"
15 #include "ash/focus_cycler.h" 15 #include "ash/focus_cycler.h"
16 #include "ash/root_window_settings.h"
16 #include "ash/session_state_delegate.h" 17 #include "ash/session_state_delegate.h"
17 #include "ash/shelf/shelf_layout_manager.h" 18 #include "ash/shelf/shelf_layout_manager.h"
18 #include "ash/shelf/shelf_types.h" 19 #include "ash/shelf/shelf_types.h"
19 #include "ash/shelf/shelf_widget.h" 20 #include "ash/shelf/shelf_widget.h"
20 #include "ash/shell.h" 21 #include "ash/shell.h"
21 #include "ash/shell_delegate.h" 22 #include "ash/shell_delegate.h"
22 #include "ash/shell_factory.h" 23 #include "ash/shell_factory.h"
23 #include "ash/shell_window_ids.h" 24 #include "ash/shell_window_ids.h"
24 #include "ash/system/status_area_widget.h" 25 #include "ash/system/status_area_widget.h"
25 #include "ash/system/tray/system_tray_delegate.h" 26 #include "ash/system/tray/system_tray_delegate.h"
(...skipping 21 matching lines...) Expand all
47 #include "ui/aura/client/aura_constants.h" 48 #include "ui/aura/client/aura_constants.h"
48 #include "ui/aura/client/drag_drop_client.h" 49 #include "ui/aura/client/drag_drop_client.h"
49 #include "ui/aura/client/tooltip_client.h" 50 #include "ui/aura/client/tooltip_client.h"
50 #include "ui/aura/root_window.h" 51 #include "ui/aura/root_window.h"
51 #include "ui/aura/window.h" 52 #include "ui/aura/window.h"
52 #include "ui/aura/window_delegate.h" 53 #include "ui/aura/window_delegate.h"
53 #include "ui/aura/window_observer.h" 54 #include "ui/aura/window_observer.h"
54 #include "ui/aura/window_tracker.h" 55 #include "ui/aura/window_tracker.h"
55 #include "ui/base/hit_test.h" 56 #include "ui/base/hit_test.h"
56 #include "ui/base/models/menu_model.h" 57 #include "ui/base/models/menu_model.h"
58 #include "ui/gfx/display.h"
57 #include "ui/gfx/screen.h" 59 #include "ui/gfx/screen.h"
58 #include "ui/keyboard/keyboard_controller.h" 60 #include "ui/keyboard/keyboard_controller.h"
59 #include "ui/keyboard/keyboard_util.h" 61 #include "ui/keyboard/keyboard_util.h"
60 #include "ui/views/controls/menu/menu_runner.h" 62 #include "ui/views/controls/menu/menu_runner.h"
61 #include "ui/views/corewm/capture_controller.h" 63 #include "ui/views/corewm/capture_controller.h"
62 #include "ui/views/corewm/visibility_controller.h" 64 #include "ui/views/corewm/visibility_controller.h"
63 #include "ui/views/view_model.h" 65 #include "ui/views/view_model.h"
64 #include "ui/views/view_model_utils.h" 66 #include "ui/views/view_model_utils.h"
65 67
66 #if defined(OS_CHROMEOS) 68 #if defined(OS_CHROMEOS)
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 if (Shell::GetActiveRootWindow() == root_window_) { 275 if (Shell::GetActiveRootWindow() == root_window_) {
274 Shell::GetInstance()->set_active_root_window( 276 Shell::GetInstance()->set_active_root_window(
275 Shell::GetPrimaryRootWindow() == root_window_.get() ? 277 Shell::GetPrimaryRootWindow() == root_window_.get() ?
276 NULL : Shell::GetPrimaryRootWindow()); 278 NULL : Shell::GetPrimaryRootWindow());
277 } 279 }
278 SetRootWindowController(root_window_.get(), NULL); 280 SetRootWindowController(root_window_.get(), NULL);
279 screen_dimmer_.reset(); 281 screen_dimmer_.reset();
280 workspace_controller_.reset(); 282 workspace_controller_.reset();
281 // Forget with the display ID so that display lookup 283 // Forget with the display ID so that display lookup
282 // ends up with invalid display. 284 // ends up with invalid display.
283 root_window_->ClearProperty(kDisplayIdKey); 285 internal::GetRootWindowSettings(root_window_.get())->display_id =
286 gfx::Display::kInvalidDisplayID;
284 // And this root window should no longer process events. 287 // And this root window should no longer process events.
285 root_window_->PrepareForShutdown(); 288 root_window_->PrepareForShutdown();
286 289
287 system_background_.reset(); 290 system_background_.reset();
288 } 291 }
289 292
290 SystemModalContainerLayoutManager* 293 SystemModalContainerLayoutManager*
291 RootWindowController::GetSystemModalLayoutManager(aura::Window* window) { 294 RootWindowController::GetSystemModalLayoutManager(aura::Window* window) {
292 aura::Window* container = NULL; 295 aura::Window* container = NULL;
293 if (window) { 296 if (window) {
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 808
806 void RootWindowController::OnTouchHudProjectionToggled(bool enabled) { 809 void RootWindowController::OnTouchHudProjectionToggled(bool enabled) {
807 if (enabled) 810 if (enabled)
808 EnableTouchHudProjection(); 811 EnableTouchHudProjection();
809 else 812 else
810 DisableTouchHudProjection(); 813 DisableTouchHudProjection();
811 } 814 }
812 815
813 } // namespace internal 816 } // namespace internal
814 } // namespace ash 817 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ash/root_window_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698