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

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

Issue 10391165: Notification for device scale factor change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: demo_main fix Created 8 years, 7 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 | « ui/views/widget/native_widget_aura.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) 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
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 // Repainting with new scale factor will paint the content at the right scale.
789 }
790
787 void NativeWidgetAura::OnWindowDestroying() { 791 void NativeWidgetAura::OnWindowDestroying() {
788 delegate_->OnNativeWidgetDestroying(); 792 delegate_->OnNativeWidgetDestroying();
789 793
790 // If the aura::Window is destroyed, we can no longer show tooltips. 794 // If the aura::Window is destroyed, we can no longer show tooltips.
791 tooltip_manager_.reset(); 795 tooltip_manager_.reset();
792 } 796 }
793 797
794 void NativeWidgetAura::OnWindowDestroyed() { 798 void NativeWidgetAura::OnWindowDestroyed() {
795 window_ = NULL; 799 window_ = NULL;
796 tooltip_manager_.reset(); 800 tooltip_manager_.reset();
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 } 971 }
968 } 972 }
969 973
970 // static 974 // static
971 bool NativeWidgetPrivate::IsMouseButtonDown() { 975 bool NativeWidgetPrivate::IsMouseButtonDown() {
972 return aura::Env::GetInstance()->is_mouse_button_down(); 976 return aura::Env::GetInstance()->is_mouse_button_down();
973 } 977 }
974 978
975 } // namespace internal 979 } // namespace internal
976 } // namespace views 980 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698