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

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

Issue 2669203002: Revert: Remove WindowTreeClientDelegate::GetCaptureClient() and WindowTreeClient::GetCaptureClient() (Closed)
Patch Set: Created 3 years, 10 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/window_manager.h ('k') | ash/mus/window_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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 Shutdown(); 286 Shutdown();
287 // TODO(sky): this case should trigger shutting down WindowManagerApplication 287 // TODO(sky): this case should trigger shutting down WindowManagerApplication
288 // too. 288 // too.
289 } 289 }
290 290
291 void WindowManager::OnPointerEventObserved(const ui::PointerEvent& event, 291 void WindowManager::OnPointerEventObserved(const ui::PointerEvent& event,
292 aura::Window* target) { 292 aura::Window* target) {
293 pointer_watcher_event_router_->OnPointerEventObserved(event, target); 293 pointer_watcher_event_router_->OnPointerEventObserved(event, target);
294 } 294 }
295 295
296 aura::client::CaptureClient* WindowManager::GetCaptureClient() {
297 return wm_state_->capture_controller();
298 }
299
296 aura::PropertyConverter* WindowManager::GetPropertyConverter() { 300 aura::PropertyConverter* WindowManager::GetPropertyConverter() {
297 return property_converter_.get(); 301 return property_converter_.get();
298 } 302 }
299 303
300 void WindowManager::SetWindowManagerClient(aura::WindowManagerClient* client) { 304 void WindowManager::SetWindowManagerClient(aura::WindowManagerClient* client) {
301 window_manager_client_ = client; 305 window_manager_client_ = client;
302 ash::Shell::set_window_manager_client(client); 306 ash::Shell::set_window_manager_client(client);
303 } 307 }
304 308
305 bool WindowManager::OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) { 309 bool WindowManager::OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 bool WindowManager::IsWindowActive(aura::Window* window) { 468 bool WindowManager::IsWindowActive(aura::Window* window) {
465 return Shell::GetInstance()->activation_client()->GetActiveWindow() == window; 469 return Shell::GetInstance()->activation_client()->GetActiveWindow() == window;
466 } 470 }
467 471
468 void WindowManager::OnWmDeactivateWindow(aura::Window* window) { 472 void WindowManager::OnWmDeactivateWindow(aura::Window* window) {
469 Shell::GetInstance()->activation_client()->DeactivateWindow(window); 473 Shell::GetInstance()->activation_client()->DeactivateWindow(window);
470 } 474 }
471 475
472 } // namespace mus 476 } // namespace mus
473 } // namespace ash 477 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/window_manager.h ('k') | ash/mus/window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698