| 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 "ui/views/mus/desktop_window_tree_host_mus.h" | 5 #include "ui/views/mus/desktop_window_tree_host_mus.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "ui/aura/client/aura_constants.h" | 8 #include "ui/aura/client/aura_constants.h" |
| 9 #include "ui/aura/client/drag_drop_client.h" | 9 #include "ui/aura/client/drag_drop_client.h" |
| 10 #include "ui/aura/client/focus_client.h" | 10 #include "ui/aura/client/focus_client.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 } | 389 } |
| 390 | 390 |
| 391 void DesktopWindowTreeHostMus::InitModalType(ui::ModalType modal_type) { | 391 void DesktopWindowTreeHostMus::InitModalType(ui::ModalType modal_type) { |
| 392 window()->SetProperty(aura::client::kModalKey, modal_type); | 392 window()->SetProperty(aura::client::kModalKey, modal_type); |
| 393 } | 393 } |
| 394 | 394 |
| 395 void DesktopWindowTreeHostMus::FlashFrame(bool flash_frame) { | 395 void DesktopWindowTreeHostMus::FlashFrame(bool flash_frame) { |
| 396 window()->SetProperty(aura::client::kDrawAttentionKey, flash_frame); | 396 window()->SetProperty(aura::client::kDrawAttentionKey, flash_frame); |
| 397 } | 397 } |
| 398 | 398 |
| 399 void DesktopWindowTreeHostMus::OnRootViewLayout() {} | |
| 400 | |
| 401 bool DesktopWindowTreeHostMus::IsAnimatingClosed() const { | 399 bool DesktopWindowTreeHostMus::IsAnimatingClosed() const { |
| 402 return false; | 400 return false; |
| 403 } | 401 } |
| 404 | 402 |
| 405 bool DesktopWindowTreeHostMus::IsTranslucentWindowOpacitySupported() const { | 403 bool DesktopWindowTreeHostMus::IsTranslucentWindowOpacitySupported() const { |
| 406 return true; | 404 return true; |
| 407 } | 405 } |
| 408 | 406 |
| 409 void DesktopWindowTreeHostMus::SizeConstraintsChanged() { | 407 void DesktopWindowTreeHostMus::SizeConstraintsChanged() { |
| 410 Widget* widget = native_widget_delegate_->AsWidget(); | 408 Widget* widget = native_widget_delegate_->AsWidget(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 if (window == this->window()) { | 450 if (window == this->window()) { |
| 453 is_active_ = true; | 451 is_active_ = true; |
| 454 desktop_native_widget_aura_->HandleActivationChanged(true); | 452 desktop_native_widget_aura_->HandleActivationChanged(true); |
| 455 } else if (is_active_) { | 453 } else if (is_active_) { |
| 456 is_active_ = false; | 454 is_active_ = false; |
| 457 desktop_native_widget_aura_->HandleActivationChanged(false); | 455 desktop_native_widget_aura_->HandleActivationChanged(false); |
| 458 } | 456 } |
| 459 } | 457 } |
| 460 | 458 |
| 461 } // namespace views | 459 } // namespace views |
| OLD | NEW |