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

Side by Side Diff: ash/shell/window_watcher.cc

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Fix WmShelf::ForWindow. Created 3 years, 7 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
« no previous file with comments | « ash/shell.cc ('k') | ash/shell_port.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/shell/window_watcher.h" 5 #include "ash/shell/window_watcher.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/public/cpp/shelf_item.h" 9 #include "ash/public/cpp/shelf_item.h"
10 #include "ash/public/cpp/shell_window_ids.h" 10 #include "ash/public/cpp/shell_window_ids.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 int index = model->ItemIndexByID(i->first); 128 int index = model->ItemIndexByID(i->first);
129 DCHECK_NE(-1, index); 129 DCHECK_NE(-1, index);
130 model->RemoveItemAt(index); 130 model->RemoveItemAt(index);
131 id_to_window_.erase(i); 131 id_to_window_.erase(i);
132 break; 132 break;
133 } 133 }
134 } 134 }
135 } 135 }
136 136
137 void WindowWatcher::OnDisplayAdded(const display::Display& new_display) { 137 void WindowWatcher::OnDisplayAdded(const display::Display& new_display) {
138 WmWindow* root = 138 aura::Window* root =
139 ShellPort::Get()->GetRootWindowForDisplayId(new_display.id()); 139 ShellPort::Get()->GetRootWindowForDisplayId(new_display.id());
140 workspace_window_watcher_->RootWindowAdded(root->aura_window()); 140 workspace_window_watcher_->RootWindowAdded(root);
141 } 141 }
142 142
143 void WindowWatcher::OnDisplayRemoved(const display::Display& old_display) { 143 void WindowWatcher::OnDisplayRemoved(const display::Display& old_display) {
144 // All windows in the display has already been removed, so no need to 144 // All windows in the display has already been removed, so no need to
145 // remove observers. 145 // remove observers.
146 } 146 }
147 147
148 void WindowWatcher::OnDisplayMetricsChanged(const display::Display&, uint32_t) { 148 void WindowWatcher::OnDisplayMetricsChanged(const display::Display&, uint32_t) {
149 } 149 }
150 150
151 } // namespace shell 151 } // namespace shell
152 } // namespace ash 152 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/shell_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698