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

Side by Side Diff: ash/wm/workspace/workspace_layout_manager.cc

Issue 9699013: MonitorManager to manage multiple monitors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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) 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/workspace/workspace_layout_manager.h" 5 #include "ash/wm/workspace/workspace_layout_manager.h"
6 6
7 #include "ash/screen_ash.h" 7 #include "ash/screen_ash.h"
8 #include "ash/wm/property_util.h" 8 #include "ash/wm/property_util.h"
9 #include "ash/wm/window_util.h" 9 #include "ash/wm/window_util.h"
10 #include "ash/wm/workspace/workspace.h" 10 #include "ash/wm/workspace/workspace.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (GetTrackedByWorkspace(child)) 76 if (GetTrackedByWorkspace(child))
77 BaseLayoutManager::SetChildBounds(child, requested_bounds); 77 BaseLayoutManager::SetChildBounds(child, requested_bounds);
78 else 78 else
79 SetChildBoundsDirect(child, requested_bounds); 79 SetChildBoundsDirect(child, requested_bounds);
80 } 80 }
81 81
82 void WorkspaceLayoutManager::OnRootWindowResized(const gfx::Size& new_size) { 82 void WorkspaceLayoutManager::OnRootWindowResized(const gfx::Size& new_size) {
83 workspace_manager_->SetWorkspaceSize(new_size); 83 workspace_manager_->SetWorkspaceSize(new_size);
84 } 84 }
85 85
86 void WorkspaceLayoutManager::OnScreenWorkAreaInsetsChanged() { 86 void WorkspaceLayoutManager::OnMonitorWorkAreaInsetsChanged() {
87 workspace_manager_->OnScreenWorkAreaInsetsChanged(); 87 workspace_manager_->OnMonitorWorkAreaInsetsChanged();
88 } 88 }
89 89
90 void WorkspaceLayoutManager::OnWindowPropertyChanged(aura::Window* window, 90 void WorkspaceLayoutManager::OnWindowPropertyChanged(aura::Window* window,
91 const void* key, 91 const void* key,
92 intptr_t old) { 92 intptr_t old) {
93 BaseLayoutManager::OnWindowPropertyChanged(window, key, old); 93 BaseLayoutManager::OnWindowPropertyChanged(window, key, old);
94 if (key == aura::client::kShowStateKey) { 94 if (key == aura::client::kShowStateKey) {
95 workspace_manager_->ShowStateChanged(window); 95 workspace_manager_->ShowStateChanged(window);
96 } else if (key == ash::kWindowTrackedByWorkspaceSplitPropKey && 96 } else if (key == ash::kWindowTrackedByWorkspaceSplitPropKey &&
97 ash::GetTrackedByWorkspace(window)) { 97 ash::GetTrackedByWorkspace(window)) {
98 // We currently don't need to support transitioning from true to false, so 98 // We currently don't need to support transitioning from true to false, so
99 // we ignore it. 99 // we ignore it.
100 workspace_manager_->AddWindow(window); 100 workspace_manager_->AddWindow(window);
101 } 101 }
102 } 102 }
103 103
104 } // namespace internal 104 } // namespace internal
105 } // namespace ash 105 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698