| OLD | NEW |
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 if (GetTrackedByWorkspace(child)) | 74 if (GetTrackedByWorkspace(child)) |
| 75 BaseLayoutManager::SetChildBounds(child, requested_bounds); | 75 BaseLayoutManager::SetChildBounds(child, requested_bounds); |
| 76 else | 76 else |
| 77 SetChildBoundsDirect(child, requested_bounds); | 77 SetChildBoundsDirect(child, requested_bounds); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void WorkspaceLayoutManager::OnRootWindowResized(const gfx::Size& new_size) { | 80 void WorkspaceLayoutManager::OnRootWindowResized(const gfx::Size& new_size) { |
| 81 workspace_manager_->SetWorkspaceSize(new_size); | 81 workspace_manager_->SetWorkspaceSize(new_size); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void WorkspaceLayoutManager::OnScreenWorkAreaInsetsChanged() { | 84 void WorkspaceLayoutManager::OnMonitorWorkAreaInsetsChanged() { |
| 85 workspace_manager_->OnScreenWorkAreaInsetsChanged(); | 85 workspace_manager_->OnMonitorWorkAreaInsetsChanged(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 void WorkspaceLayoutManager::OnWindowPropertyChanged(aura::Window* window, | 88 void WorkspaceLayoutManager::OnWindowPropertyChanged(aura::Window* window, |
| 89 const void* key, | 89 const void* key, |
| 90 intptr_t old) { | 90 intptr_t old) { |
| 91 BaseLayoutManager::OnWindowPropertyChanged(window, key, old); | 91 BaseLayoutManager::OnWindowPropertyChanged(window, key, old); |
| 92 if (key == aura::client::kShowStateKey) { | 92 if (key == aura::client::kShowStateKey) { |
| 93 workspace_manager_->ShowStateChanged(window); | 93 workspace_manager_->ShowStateChanged(window); |
| 94 } else if (key == ash::kWindowTrackedByWorkspaceSplitPropKey && | 94 } else if (key == ash::kWindowTrackedByWorkspaceSplitPropKey && |
| 95 ash::GetTrackedByWorkspace(window)) { | 95 ash::GetTrackedByWorkspace(window)) { |
| 96 // We currently don't need to support transitioning from true to false, so | 96 // We currently don't need to support transitioning from true to false, so |
| 97 // we ignore it. | 97 // we ignore it. |
| 98 workspace_manager_->AddWindow(window); | 98 workspace_manager_->AddWindow(window); |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace internal | 102 } // namespace internal |
| 103 } // namespace ash | 103 } // namespace ash |
| OLD | NEW |