OLD | NEW |
---|---|
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/native_widget_aura.h" | 5 #include "ui/views/widget/native_widget_aura.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
10 #include "ui/aura/client/activation_client.h" | 10 #include "ui/aura/client/activation_client.h" |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
777 } | 777 } |
778 | 778 |
779 void NativeWidgetAura::OnCaptureLost() { | 779 void NativeWidgetAura::OnCaptureLost() { |
780 delegate_->OnMouseCaptureLost(); | 780 delegate_->OnMouseCaptureLost(); |
781 } | 781 } |
782 | 782 |
783 void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) { | 783 void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) { |
784 delegate_->OnNativeWidgetPaint(canvas); | 784 delegate_->OnNativeWidgetPaint(canvas); |
785 } | 785 } |
786 | 786 |
787 void NativeWidgetAura::OnDeviceScaleFactorChanged(float device_scale_factor) { | |
788 } | |
sky
2012/05/16 21:16:01
Don't you need to forward to the the rootview?
oshima
2012/05/16 21:50:29
same here.
| |
789 | |
787 void NativeWidgetAura::OnWindowDestroying() { | 790 void NativeWidgetAura::OnWindowDestroying() { |
788 delegate_->OnNativeWidgetDestroying(); | 791 delegate_->OnNativeWidgetDestroying(); |
789 | 792 |
790 // If the aura::Window is destroyed, we can no longer show tooltips. | 793 // If the aura::Window is destroyed, we can no longer show tooltips. |
791 tooltip_manager_.reset(); | 794 tooltip_manager_.reset(); |
792 } | 795 } |
793 | 796 |
794 void NativeWidgetAura::OnWindowDestroyed() { | 797 void NativeWidgetAura::OnWindowDestroyed() { |
795 window_ = NULL; | 798 window_ = NULL; |
796 tooltip_manager_.reset(); | 799 tooltip_manager_.reset(); |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
967 } | 970 } |
968 } | 971 } |
969 | 972 |
970 // static | 973 // static |
971 bool NativeWidgetPrivate::IsMouseButtonDown() { | 974 bool NativeWidgetPrivate::IsMouseButtonDown() { |
972 return aura::Env::GetInstance()->is_mouse_button_down(); | 975 return aura::Env::GetInstance()->is_mouse_button_down(); |
973 } | 976 } |
974 | 977 |
975 } // namespace internal | 978 } // namespace internal |
976 } // namespace views | 979 } // namespace views |
OLD | NEW |