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

Side by Side Diff: ash/mus/window_manager.cc

Issue 2110643002: ash: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/mus/user_window_controller_impl.cc ('k') | ash/shelf/shelf_layout_manager_unittest.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/mus/window_manager.h" 5 #include "ash/mus/window_manager.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 213 }
214 214
215 ::mus::Window* WindowManager::OnWmCreateTopLevelWindow( 215 ::mus::Window* WindowManager::OnWmCreateTopLevelWindow(
216 std::map<std::string, std::vector<uint8_t>>* properties) { 216 std::map<std::string, std::vector<uint8_t>>* properties) {
217 return NewTopLevelWindow(properties); 217 return NewTopLevelWindow(properties);
218 } 218 }
219 219
220 void WindowManager::OnWmClientJankinessChanged( 220 void WindowManager::OnWmClientJankinessChanged(
221 const std::set<::mus::Window*>& client_windows, 221 const std::set<::mus::Window*>& client_windows,
222 bool janky) { 222 bool janky) {
223 for (auto window : client_windows) 223 for (auto* window : client_windows)
224 SetWindowIsJanky(window, janky); 224 SetWindowIsJanky(window, janky);
225 } 225 }
226 226
227 void WindowManager::OnWmNewDisplay(::mus::Window* window, 227 void WindowManager::OnWmNewDisplay(::mus::Window* window,
228 const display::Display& display) { 228 const display::Display& display) {
229 CreateRootWindowController(window, display); 229 CreateRootWindowController(window, display);
230 } 230 }
231 231
232 void WindowManager::OnAccelerator(uint32_t id, const ui::Event& event) { 232 void WindowManager::OnAccelerator(uint32_t id, const ui::Event& event) {
233 switch (id) { 233 switch (id) {
234 case kWindowSwitchAccelerator: 234 case kWindowSwitchAccelerator:
235 window_manager_client()->ActivateNextWindow(); 235 window_manager_client()->ActivateNextWindow();
236 break; 236 break;
237 default: 237 default:
238 window_manager_app_->OnAccelerator(id, event); 238 window_manager_app_->OnAccelerator(id, event);
239 break; 239 break;
240 } 240 }
241 } 241 }
242 242
243 } // namespace mus 243 } // namespace mus
244 } // namespace ash 244 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/user_window_controller_impl.cc ('k') | ash/shelf/shelf_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698