| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |