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

Side by Side Diff: ui/aura_shell/window_util.cc

Issue 9026017: Move some more files into ash... this time seed the window manager dir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/aura_shell/window_util.h" 5 #include "ui/aura_shell/window_util.h"
6 6
7 #include "ash/wm/activation_controller.h"
7 #include "ui/aura/client/activation_client.h" 8 #include "ui/aura/client/activation_client.h"
8 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
9 #include "ui/aura/root_window.h" 10 #include "ui/aura/root_window.h"
10 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
11 #include "ui/aura_shell/activation_controller.h"
12 #include "ui/aura_shell/property_util.h" 12 #include "ui/aura_shell/property_util.h"
13 #include "ui/base/ui_base_types.h" 13 #include "ui/base/ui_base_types.h"
14 #include "ui/gfx/screen.h" 14 #include "ui/gfx/screen.h"
15 15
16 namespace aura_shell { 16 namespace aura_shell {
17 17
18 bool IsWindowMaximized(aura::Window* window) { 18 bool IsWindowMaximized(aura::Window* window) {
19 return window->GetIntProperty(aura::client::kShowStateKey) == 19 return window->GetIntProperty(aura::client::kShowStateKey) ==
20 ui::SHOW_STATE_MAXIMIZED; 20 ui::SHOW_STATE_MAXIMIZED;
21 } 21 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 SetRestoreBoundsIfNotSet(window); 60 SetRestoreBoundsIfNotSet(window);
61 window->SetBounds(gfx::Screen::GetMonitorAreaNearestWindow(window)); 61 window->SetBounds(gfx::Screen::GetMonitorAreaNearestWindow(window));
62 break; 62 break;
63 63
64 default: 64 default:
65 break; 65 break;
66 } 66 }
67 } 67 }
68 68
69 } // namespace aura_shell 69 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ui/aura_shell/stacking_controller.cc ('k') | ui/aura_shell/workspace/workspace_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698