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 "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
9 #include "ui/base/event.h" | 9 #include "ui/base/event.h" |
10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling( | 53 bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling( |
54 Window* child, | 54 Window* child, |
55 const gfx::Point& location) { | 55 const gfx::Point& location) { |
56 return true; | 56 return true; |
57 } | 57 } |
58 | 58 |
59 bool TestWindowDelegate::OnMouseEvent(ui::MouseEvent* event) { | 59 bool TestWindowDelegate::OnMouseEvent(ui::MouseEvent* event) { |
60 return false; | 60 return false; |
61 } | 61 } |
62 | 62 |
63 ui::TouchStatus TestWindowDelegate::OnTouchEvent(ui::TouchEventImpl* event) { | 63 ui::TouchStatus TestWindowDelegate::OnTouchEvent(ui::TouchEvent* event) { |
64 return ui::TOUCH_STATUS_UNKNOWN; | 64 return ui::TOUCH_STATUS_UNKNOWN; |
65 } | 65 } |
66 | 66 |
67 ui::GestureStatus TestWindowDelegate::OnGestureEvent( | 67 ui::GestureStatus TestWindowDelegate::OnGestureEvent( |
68 ui::GestureEventImpl* event) { | 68 ui::GestureEventImpl* event) { |
69 return ui::GESTURE_STATUS_UNKNOWN; | 69 return ui::GESTURE_STATUS_UNKNOWN; |
70 } | 70 } |
71 | 71 |
72 bool TestWindowDelegate::CanFocus() { | 72 bool TestWindowDelegate::CanFocus() { |
73 return true; | 73 return true; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 std::string result = StringPrintf("%d %d", | 209 std::string result = StringPrintf("%d %d", |
210 key_press_count_, | 210 key_press_count_, |
211 key_release_count_); | 211 key_release_count_); |
212 key_press_count_ = 0; | 212 key_press_count_ = 0; |
213 key_release_count_ = 0; | 213 key_release_count_ = 0; |
214 return result; | 214 return result; |
215 } | 215 } |
216 | 216 |
217 } // namespace test | 217 } // namespace test |
218 } // namespace aura | 218 } // namespace aura |
OLD | NEW |