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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { | 45 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { |
46 return gfx::kNullCursor; | 46 return gfx::kNullCursor; |
47 } | 47 } |
48 | 48 |
49 int TestWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { | 49 int TestWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { |
50 return window_component_; | 50 return window_component_; |
51 } | 51 } |
52 | 52 |
53 bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling( | 53 bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling( |
54 Window* child, | 54 Window* child, |
55 const gfx::Point& location) { | 55 const gfx::Point& event_location, |
| 56 ui::EventType event_type) { |
56 return true; | 57 return true; |
57 } | 58 } |
58 | 59 |
59 bool TestWindowDelegate::OnMouseEvent(ui::MouseEvent* event) { | 60 bool TestWindowDelegate::OnMouseEvent(ui::MouseEvent* event) { |
60 return false; | 61 return false; |
61 } | 62 } |
62 | 63 |
63 ui::TouchStatus TestWindowDelegate::OnTouchEvent(ui::TouchEvent* event) { | 64 ui::TouchStatus TestWindowDelegate::OnTouchEvent(ui::TouchEvent* event) { |
64 return ui::TOUCH_STATUS_UNKNOWN; | 65 return ui::TOUCH_STATUS_UNKNOWN; |
65 } | 66 } |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 std::string result = StringPrintf("%d %d", | 210 std::string result = StringPrintf("%d %d", |
210 key_press_count_, | 211 key_press_count_, |
211 key_release_count_); | 212 key_release_count_); |
212 key_press_count_ = 0; | 213 key_press_count_ = 0; |
213 key_release_count_ = 0; | 214 key_release_count_ = 0; |
214 return result; | 215 return result; |
215 } | 216 } |
216 | 217 |
217 } // namespace test | 218 } // namespace test |
218 } // namespace aura | 219 } // namespace aura |
OLD | NEW |