| OLD | NEW |
| 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 Loading... |
| 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 bool SimpleWM::IsWindowActive(aura::Window* window) { return false; } |
| 561 |
| 562 void SimpleWM::OnWmDeactivateWindow(aura::Window* window) {} |
| 563 |
| 560 //////////////////////////////////////////////////////////////////////////////// | 564 //////////////////////////////////////////////////////////////////////////////// |
| 561 // SimpleWM, wm::BaseFocusRules implementation: | 565 // SimpleWM, wm::BaseFocusRules implementation: |
| 562 | 566 |
| 563 bool SimpleWM::SupportsChildActivation(aura::Window* window) const { | 567 bool SimpleWM::SupportsChildActivation(aura::Window* window) const { |
| 564 return window == window_root_; | 568 return window == window_root_; |
| 565 } | 569 } |
| 566 | 570 |
| 567 bool SimpleWM::IsWindowConsideredVisibleForActivation( | 571 bool SimpleWM::IsWindowConsideredVisibleForActivation( |
| 568 aura::Window* window) const { | 572 aura::Window* window) const { |
| 569 if (window->IsVisible()) | 573 if (window->IsVisible()) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 587 } | 591 } |
| 588 | 592 |
| 589 void SimpleWM::OnWindowListViewItemActivated(aura::Window* window) { | 593 void SimpleWM::OnWindowListViewItemActivated(aura::Window* window) { |
| 590 window->Show(); | 594 window->Show(); |
| 591 aura::client::ActivationClient* activation_client = | 595 aura::client::ActivationClient* activation_client = |
| 592 aura::client::GetActivationClient(window->GetRootWindow()); | 596 aura::client::GetActivationClient(window->GetRootWindow()); |
| 593 activation_client->ActivateWindow(window); | 597 activation_client->ActivateWindow(window); |
| 594 } | 598 } |
| 595 | 599 |
| 596 } // namespace simple_wm | 600 } // namespace simple_wm |
| OLD | NEW |