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

Side by Side Diff: ui/aura/test/test_window_delegate.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/aura/test/test_window_delegate.h ('k') | ui/aura/window.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/aura/test/test_window_delegate.h" 5 #include "ui/aura/test/test_window_delegate.h"
6 6
7 #include "ui/aura/event.h" 7 #include "ui/aura/event.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/base/hit_test.h" 9 #include "ui/base/hit_test.h"
10 #include "ui/gfx/canvas.h" 10 #include "ui/gfx/canvas.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 bool TestWindowDelegate::CanFocus() { 62 bool TestWindowDelegate::CanFocus() {
63 return true; 63 return true;
64 } 64 }
65 65
66 void TestWindowDelegate::OnCaptureLost() { 66 void TestWindowDelegate::OnCaptureLost() {
67 } 67 }
68 68
69 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) { 69 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) {
70 } 70 }
71 71
72 void TestWindowDelegate::OnDeviceScaleFactorChanged(
73 float device_scale_factor) {
74 }
75
72 void TestWindowDelegate::OnWindowDestroying() { 76 void TestWindowDelegate::OnWindowDestroying() {
73 } 77 }
74 78
75 void TestWindowDelegate::OnWindowDestroyed() { 79 void TestWindowDelegate::OnWindowDestroyed() {
76 } 80 }
77 81
78 void TestWindowDelegate::OnWindowVisibilityChanged(bool visible) { 82 void TestWindowDelegate::OnWindowVisibilityChanged(bool visible) {
79 } 83 }
80 84
81 85
(...skipping 13 matching lines...) Expand all
95 } 99 }
96 void ColorTestWindowDelegate::OnWindowDestroyed() { 100 void ColorTestWindowDelegate::OnWindowDestroyed() {
97 delete this; 101 delete this;
98 } 102 }
99 void ColorTestWindowDelegate::OnPaint(gfx::Canvas* canvas) { 103 void ColorTestWindowDelegate::OnPaint(gfx::Canvas* canvas) {
100 canvas->DrawColor(color_, SkXfermode::kSrc_Mode); 104 canvas->DrawColor(color_, SkXfermode::kSrc_Mode);
101 } 105 }
102 106
103 } // namespace test 107 } // namespace test
104 } // namespace aura 108 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/test_window_delegate.h ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698