summaryrefslogtreecommitdiffstats
path: root/ui/views/widget/native_widget_aura.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-17 00:09:04 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-17 00:09:04 +0000
commitd3f5bbc1736289a4f2d44a971acdb2dd0ffa1504 (patch)
tree9b76581261e298180ea3fa2e94c06e0198cd3a82 /ui/views/widget/native_widget_aura.cc
parent3bd858679bb3fdeb04224179099b5bc059433bec (diff)
downloadchromium_src-d3f5bbc1736289a4f2d44a971acdb2dd0ffa1504.zip
chromium_src-d3f5bbc1736289a4f2d44a971acdb2dd0ffa1504.tar.gz
chromium_src-d3f5bbc1736289a4f2d44a971acdb2dd0ffa1504.tar.bz2
Notification for device scale factor change
BUG=105165 TEST=updated compositor test to cover OnDeviceScaleFactorChagned. Review URL: https://chromiumcodereview.appspot.com/10391165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget/native_widget_aura.cc')
-rw-r--r--ui/views/widget/native_widget_aura.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index b63e8fd..a71b3d7 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -784,6 +784,10 @@ void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) {
delegate_->OnNativeWidgetPaint(canvas);
}
+void NativeWidgetAura::OnDeviceScaleFactorChanged(float device_scale_factor) {
+ // Repainting with new scale factor will paint the content at the right scale.
+}
+
void NativeWidgetAura::OnWindowDestroying() {
delegate_->OnNativeWidgetDestroying();