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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 14299009: In Windows desktop Chrome AURA the HandleVisibilityChanged function on the HWNDMessageHandlerDelega… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_root_window_host.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/widget/desktop_aura/desktop_native_widget_aura.h" 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/aura/client/activation_client.h" 8 #include "ui/aura/client/activation_client.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/stacking_client.h" 10 #include "ui/aura/client/stacking_client.h"
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 return desktop_root_window_host_->GetWorkAreaBoundsInScreen(); 552 return desktop_root_window_host_->GetWorkAreaBoundsInScreen();
553 } 553 }
554 554
555 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) { 555 void DesktopNativeWidgetAura::SetInactiveRenderingDisabled(bool value) {
556 if (!value) { 556 if (!value) {
557 active_window_observer_.reset(); 557 active_window_observer_.reset();
558 } else { 558 } else {
559 active_window_observer_.reset( 559 active_window_observer_.reset(
560 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_)); 560 new NativeWidgetAuraWindowObserver(window_, native_widget_delegate_));
561 } 561 }
562 desktop_root_window_host_->SetInactiveRenderingDisabled(value);
562 } 563 }
563 564
564 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop( 565 Widget::MoveLoopResult DesktopNativeWidgetAura::RunMoveLoop(
565 const gfx::Vector2d& drag_offset, 566 const gfx::Vector2d& drag_offset,
566 Widget::MoveLoopSource source) { 567 Widget::MoveLoopSource source) {
567 return desktop_root_window_host_->RunMoveLoop(drag_offset, source); 568 return desktop_root_window_host_->RunMoveLoop(drag_offset, source);
568 } 569 }
569 570
570 void DesktopNativeWidgetAura::EndMoveLoop() { 571 void DesktopNativeWidgetAura::EndMoveLoop() {
571 desktop_root_window_host_->EndMoveLoop(); 572 desktop_root_window_host_->EndMoveLoop();
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 drop_helper_->OnDragExit(); 834 drop_helper_->OnDragExit();
834 } 835 }
835 836
836 int DesktopNativeWidgetAura::OnPerformDrop(const ui::DropTargetEvent& event) { 837 int DesktopNativeWidgetAura::OnPerformDrop(const ui::DropTargetEvent& event) {
837 DCHECK(drop_helper_.get() != NULL); 838 DCHECK(drop_helper_.get() != NULL);
838 return drop_helper_->OnDrop(event.data(), event.location(), 839 return drop_helper_->OnDrop(event.data(), event.location(),
839 last_drop_operation_); 840 last_drop_operation_);
840 } 841 }
841 842
842 } // namespace views 843 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_root_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698