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

Side by Side Diff: ash/wm/property_util.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/wm/frame_painter_unittest.cc ('k') | ash/wm/window_properties.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/root_window_settings.h"
8 #include "ash/screen_ash.h" 9 #include "ash/screen_ash.h"
9 #include "ash/wm/window_properties.h" 10 #include "ash/wm/window_properties.h"
10 #include "ash/wm/window_util.h" 11 #include "ash/wm/window_util.h"
11 #include "ui/aura/client/aura_constants.h" 12 #include "ui/aura/client/aura_constants.h"
12 #include "ui/aura/root_window.h" 13 #include "ui/aura/root_window.h"
13 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
14 #include "ui/base/ui_base_types.h" 15 #include "ui/base/ui_base_types.h"
15 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
16 17
17 namespace ash { 18 namespace ash {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 window->SetProperty(internal::kWindowRestoresToRestoreBounds, value); 61 window->SetProperty(internal::kWindowRestoresToRestoreBounds, value);
61 } 62 }
62 63
63 bool GetWindowAlwaysRestoresToRestoreBounds(const aura::Window* window) { 64 bool GetWindowAlwaysRestoresToRestoreBounds(const aura::Window* window) {
64 return window->GetProperty(internal::kWindowRestoresToRestoreBounds); 65 return window->GetProperty(internal::kWindowRestoresToRestoreBounds);
65 } 66 }
66 67
67 internal::RootWindowController* GetRootWindowController( 68 internal::RootWindowController* GetRootWindowController(
68 const aura::RootWindow* root_window) { 69 const aura::RootWindow* root_window) {
69 return root_window ? 70 return root_window ?
70 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL; 71 internal::GetRootWindowSettings(root_window)->controller : NULL;
71 } 72 }
72 73
73 void SetRootWindowController(aura::RootWindow* root_window, 74 void SetRootWindowController(aura::RootWindow* root_window,
74 internal::RootWindowController* controller) { 75 internal::RootWindowController* controller) {
75 root_window->SetProperty(internal::kRootWindowControllerKey, controller); 76 internal::GetRootWindowSettings(root_window)->controller = controller;
76 } 77 }
77 78
78 } // namespace ash 79 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/frame_painter_unittest.cc ('k') | ash/wm/window_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698