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

Side by Side Diff: views/widget/native_widget_aura.cc

Issue 8430024: Add WorkspaceObserver to observe changes in workspace state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comments Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura_shell/workspace/workspace_observer.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/widget/native_widget_aura.h" 5 #include "views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/aura/aura_constants.h" 8 #include "ui/aura/aura_constants.h"
9 #include "ui/aura/desktop.h" 9 #include "ui/aura/desktop.h"
10 #include "ui/aura/desktop_observer.h" 10 #include "ui/aura/desktop_observer.h"
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 609
610 void NativeWidgetAura::OnWindowDestroying() { 610 void NativeWidgetAura::OnWindowDestroying() {
611 delegate_->OnNativeWidgetDestroying(); 611 delegate_->OnNativeWidgetDestroying();
612 612
613 // If the aura::Window is destroyed, we can no longer show tooltips. 613 // If the aura::Window is destroyed, we can no longer show tooltips.
614 tooltip_manager_.reset(); 614 tooltip_manager_.reset();
615 } 615 }
616 616
617 void NativeWidgetAura::OnWindowDestroyed() { 617 void NativeWidgetAura::OnWindowDestroyed() {
618 window_ = NULL; 618 window_ = NULL;
619 tooltip_manager_.reset();
619 delegate_->OnNativeWidgetDestroyed(); 620 delegate_->OnNativeWidgetDestroyed();
620 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) 621 if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET)
621 delete this; 622 delete this;
622 } 623 }
623 624
624 void NativeWidgetAura::OnWindowVisibilityChanged(bool visible) { 625 void NativeWidgetAura::OnWindowVisibilityChanged(bool visible) {
625 delegate_->OnNativeWidgetVisibilityChanged(visible); 626 delegate_->OnNativeWidgetVisibilityChanged(visible);
626 } 627 }
627 628
628 //////////////////////////////////////////////////////////////////////////////// 629 ////////////////////////////////////////////////////////////////////////////////
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 } 712 }
712 713
713 // static 714 // static
714 bool NativeWidgetPrivate::IsMouseButtonDown() { 715 bool NativeWidgetPrivate::IsMouseButtonDown() {
715 NOTIMPLEMENTED(); 716 NOTIMPLEMENTED();
716 return false; 717 return false;
717 } 718 }
718 719
719 } // namespace internal 720 } // namespace internal
720 } // namespace views 721 } // namespace views
OLDNEW
« no previous file with comments | « ui/aura_shell/workspace/workspace_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698