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

Side by Side Diff: ui/views/mus/desktop_window_tree_host_mus.cc

Issue 2507403002: Remove Widget::OnRootViewLayout(). (Closed)
Patch Set: Created 4 years, 1 month 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 | « ui/views/mus/desktop_window_tree_host_mus.h ('k') | ui/views/mus/native_widget_mus.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.h ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698