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

Side by Side Diff: mash/simple_wm/simple_wm.cc

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Prune comments and other debugging gunk. 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "mash/simple_wm/simple_wm.h" 5 #include "mash/simple_wm/simple_wm.h"
6 6
7 #include "base/observer_list.h" 7 #include "base/observer_list.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "mash/simple_wm/move_event_handler.h" 9 #include "mash/simple_wm/move_event_handler.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 // Don't care. 550 // Don't care.
551 } 551 }
552 552
553 void SimpleWM::OnWmCancelMoveLoop(aura::Window* window) {} 553 void SimpleWM::OnWmCancelMoveLoop(aura::Window* window) {}
554 554
555 void SimpleWM::OnWmSetClientArea( 555 void SimpleWM::OnWmSetClientArea(
556 aura::Window* window, 556 aura::Window* window,
557 const gfx::Insets& insets, 557 const gfx::Insets& insets,
558 const std::vector<gfx::Rect>& additional_client_areas) {} 558 const std::vector<gfx::Rect>& additional_client_areas) {}
559 559
560 void SimpleWM::OnWmDeactivateWindow(aura::Window* window) {}
561
560 //////////////////////////////////////////////////////////////////////////////// 562 ////////////////////////////////////////////////////////////////////////////////
561 // SimpleWM, wm::BaseFocusRules implementation: 563 // SimpleWM, wm::BaseFocusRules implementation:
562 564
563 bool SimpleWM::SupportsChildActivation(aura::Window* window) const { 565 bool SimpleWM::SupportsChildActivation(aura::Window* window) const {
564 return window == window_root_; 566 return window == window_root_;
565 } 567 }
566 568
567 bool SimpleWM::IsWindowConsideredVisibleForActivation( 569 bool SimpleWM::IsWindowConsideredVisibleForActivation(
568 aura::Window* window) const { 570 aura::Window* window) const {
569 if (window->IsVisible()) 571 if (window->IsVisible())
(...skipping 17 matching lines...) Expand all
587 } 589 }
588 590
589 void SimpleWM::OnWindowListViewItemActivated(aura::Window* window) { 591 void SimpleWM::OnWindowListViewItemActivated(aura::Window* window) {
590 window->Show(); 592 window->Show();
591 aura::client::ActivationClient* activation_client = 593 aura::client::ActivationClient* activation_client =
592 aura::client::GetActivationClient(window->GetRootWindow()); 594 aura::client::GetActivationClient(window->GetRootWindow());
593 activation_client->ActivateWindow(window); 595 activation_client->ActivateWindow(window);
594 } 596 }
595 597
596 } // namespace simple_wm 598 } // namespace simple_wm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698