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

Side by Side Diff: ash/wm/property_util.cc

Issue 10546024: Add RootWindowController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/wm/property_util.h ('k') | ash/wm/screen_dimmer.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/wm/property_util.h" 5 #include "ash/wm/property_util.h"
6 6
7 #include "ash/ash_export.h" 7 #include "ash/ash_export.h"
8 #include "ash/wm/window_properties.h" 8 #include "ash/wm/window_properties.h"
9 #include "ash/wm/window_util.h" 9 #include "ash/wm/window_util.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
11 #include "ui/aura/root_window.h"
11 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
12 #include "ui/base/ui_base_types.h" 13 #include "ui/base/ui_base_types.h"
13 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
14 15
15 namespace ash { 16 namespace ash {
16 namespace { 17 namespace {
17 bool g_default_windows_persist_across_all_workspaces = false; 18 bool g_default_windows_persist_across_all_workspaces = false;
18 } // namespace 19 } // namespace
19 20
20 void SetRestoreBounds(aura::Window* window, const gfx::Rect& bounds) { 21 void SetRestoreBounds(aura::Window* window, const gfx::Rect& bounds) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 case WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_DEFAULT: 66 case WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_DEFAULT:
66 return g_default_windows_persist_across_all_workspaces; 67 return g_default_windows_persist_across_all_workspaces;
67 } 68 }
68 return false; 69 return false;
69 } 70 }
70 71
71 void SetDefaultPersistsAcrossAllWorkspaces(bool value) { 72 void SetDefaultPersistsAcrossAllWorkspaces(bool value) {
72 g_default_windows_persist_across_all_workspaces = value; 73 g_default_windows_persist_across_all_workspaces = value;
73 } 74 }
74 75
76 internal::RootWindowController* GetRootWindowController(
77 aura::RootWindow* root_window) {
78 return root_window->GetProperty(internal::kRootWindowControllerKey);
75 } 79 }
80
81 void SetRootWindowController(aura::RootWindow* root_window,
82 internal::RootWindowController* controller) {
83 root_window->SetProperty(internal::kRootWindowControllerKey, controller);
84 }
85
86 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/property_util.h ('k') | ash/wm/screen_dimmer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698