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

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

Issue 8968022: Shell related switches -> aura shell switches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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/workspace_controller.h" 5 #include "ui/aura_shell/workspace_controller.h"
6 6
7 #include "ui/aura/client/activation_client.h"
7 #include "ui/aura/client/aura_constants.h" 8 #include "ui/aura/client/aura_constants.h"
8 #include "ui/aura/root_window.h" 9 #include "ui/aura/root_window.h"
9 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
10 #include "ui/aura_shell/default_container_layout_manager.h" 11 #include "ui/aura_shell/default_container_layout_manager.h"
11 #include "ui/aura_shell/launcher/launcher.h" 12 #include "ui/aura_shell/launcher/launcher.h"
12 #include "ui/aura_shell/launcher/launcher_model.h" 13 #include "ui/aura_shell/launcher/launcher_model.h"
13 #include "ui/aura_shell/shell.h" 14 #include "ui/aura_shell/shell.h"
14 #include "ui/aura_shell/window_util.h" 15 #include "ui/aura_shell/window_util.h"
15 #include "ui/aura_shell/workspace/workspace.h" 16 #include "ui/aura_shell/workspace/workspace.h"
16 #include "ui/aura_shell/workspace/workspace_manager.h" 17 #include "ui/aura_shell/workspace/workspace_manager.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void WorkspaceController::OnRootWindowResized(const gfx::Size& new_size) { 52 void WorkspaceController::OnRootWindowResized(const gfx::Size& new_size) {
52 workspace_manager_->SetWorkspaceSize(new_size); 53 workspace_manager_->SetWorkspaceSize(new_size);
53 } 54 }
54 55
55 //////////////////////////////////////////////////////////////////////////////// 56 ////////////////////////////////////////////////////////////////////////////////
56 // WorkspaceController, aura::WindowObserver overrides: 57 // WorkspaceController, aura::WindowObserver overrides:
57 58
58 void WorkspaceController::OnWindowPropertyChanged(aura::Window* window, 59 void WorkspaceController::OnWindowPropertyChanged(aura::Window* window,
59 const char* key, 60 const char* key,
60 void* old) { 61 void* old) {
61 if (key == aura::kRootWindowActiveWindow) { 62 if (key == aura::client::kRootWindowActiveWindow) {
62 // FindBy handles NULL. 63 // FindBy handles NULL.
63 Workspace* workspace = workspace_manager_->FindBy(GetActiveWindow()); 64 Workspace* workspace = workspace_manager_->FindBy(GetActiveWindow());
64 if (workspace) 65 if (workspace)
65 workspace->Activate(); 66 workspace->Activate();
66 } 67 }
67 } 68 }
68 69
69 //////////////////////////////////////////////////////////////////////////////// 70 ////////////////////////////////////////////////////////////////////////////////
70 // WorkspaceController, aura_shell::internal::WorkspaceObserver overrides: 71 // WorkspaceController, aura_shell::internal::WorkspaceObserver overrides:
71 72
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 ignore_move_event_ = true; 118 ignore_move_event_ = true;
118 workspace_manager_->RotateWindows(start, target); 119 workspace_manager_->RotateWindows(start, target);
119 ignore_move_event_ = false; 120 ignore_move_event_ = false;
120 } 121 }
121 122
122 void WorkspaceController::LauncherItemImagesChanged(int index) { 123 void WorkspaceController::LauncherItemImagesChanged(int index) {
123 } 124 }
124 125
125 } // namespace internal 126 } // namespace internal
126 } // namespace aura_shell 127 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ui/aura_shell/workspace/workspace_manager_unittest.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698