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

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

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Re-add DWTHMus as a WidgetObserver. Created 3 years, 11 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
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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 aura::Window* window, 500 aura::Window* window,
501 const gfx::Insets& insets, 501 const gfx::Insets& insets,
502 const std::vector<gfx::Rect>& additional_client_areas) { 502 const std::vector<gfx::Rect>& additional_client_areas) {
503 NonClientFrameController* non_client_frame_controller = 503 NonClientFrameController* non_client_frame_controller =
504 NonClientFrameController::Get(window); 504 NonClientFrameController::Get(window);
505 if (!non_client_frame_controller) 505 if (!non_client_frame_controller)
506 return; 506 return;
507 non_client_frame_controller->SetClientArea(insets, additional_client_areas); 507 non_client_frame_controller->SetClientArea(insets, additional_client_areas);
508 } 508 }
509 509
510 bool WindowManager::IsWindowActive(aura::Window* window) {
511 return activation_client()->GetActiveWindow() == window;
512 }
513
514 void WindowManager::OnWmDeactivateWindow(aura::Window* window) {
515 activation_client()->DeactivateWindow(window);
516 }
517
510 } // namespace mus 518 } // namespace mus
511 } // namespace ash 519 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698