OLD | NEW |
1 // Copyright (c) 2011 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 "third_party/skia/include/core/SkCanvas.h" | 7 #include "third_party/skia/include/core/SkCanvas.h" |
8 #include "ui/aura/event.h" | 8 #include "ui/aura/event.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
11 #include "ui/gfx/canvas.h" | 11 #include "ui/gfx/canvas.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 49 } |
50 | 50 |
51 bool TestWindowDelegate::OnMouseEvent(MouseEvent* event) { | 51 bool TestWindowDelegate::OnMouseEvent(MouseEvent* event) { |
52 return false; | 52 return false; |
53 } | 53 } |
54 | 54 |
55 ui::TouchStatus TestWindowDelegate::OnTouchEvent(TouchEvent* event) { | 55 ui::TouchStatus TestWindowDelegate::OnTouchEvent(TouchEvent* event) { |
56 return ui::TOUCH_STATUS_UNKNOWN; | 56 return ui::TOUCH_STATUS_UNKNOWN; |
57 } | 57 } |
58 | 58 |
| 59 ui::GestureStatus TestWindowDelegate::OnGestureEvent(GestureEvent* event) { |
| 60 return ui::GESTURE_STATUS_UNKNOWN; |
| 61 } |
| 62 |
59 bool TestWindowDelegate::CanFocus() { | 63 bool TestWindowDelegate::CanFocus() { |
60 return true; | 64 return true; |
61 } | 65 } |
62 | 66 |
63 void TestWindowDelegate::OnCaptureLost() { | 67 void TestWindowDelegate::OnCaptureLost() { |
64 } | 68 } |
65 | 69 |
66 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) { | 70 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) { |
67 } | 71 } |
68 | 72 |
(...skipping 23 matching lines...) Expand all Loading... |
92 } | 96 } |
93 void ColorTestWindowDelegate::OnWindowDestroyed() { | 97 void ColorTestWindowDelegate::OnWindowDestroyed() { |
94 delete this; | 98 delete this; |
95 } | 99 } |
96 void ColorTestWindowDelegate::OnPaint(gfx::Canvas* canvas) { | 100 void ColorTestWindowDelegate::OnPaint(gfx::Canvas* canvas) { |
97 canvas->GetSkCanvas()->drawColor(color_, SkXfermode::kSrc_Mode); | 101 canvas->GetSkCanvas()->drawColor(color_, SkXfermode::kSrc_Mode); |
98 } | 102 } |
99 | 103 |
100 } // namespace test | 104 } // namespace test |
101 } // namespace aura | 105 } // namespace aura |
OLD | NEW |