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/events/event.h" | 9 #include "ui/base/events/event.h" |
10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) { | 86 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) { |
87 } | 87 } |
88 | 88 |
89 bool TestWindowDelegate::HasHitTestMask() const { | 89 bool TestWindowDelegate::HasHitTestMask() const { |
90 return false; | 90 return false; |
91 } | 91 } |
92 | 92 |
93 void TestWindowDelegate::GetHitTestMask(gfx::Path* mask) const { | 93 void TestWindowDelegate::GetHitTestMask(gfx::Path* mask) const { |
94 } | 94 } |
95 | 95 |
| 96 scoped_refptr<ui::Texture> TestWindowDelegate::CopyTexture() { |
| 97 return scoped_refptr<ui::Texture>(); |
| 98 } |
| 99 |
96 ui::EventResult TestWindowDelegate::OnKeyEvent(ui::KeyEvent* event) { | 100 ui::EventResult TestWindowDelegate::OnKeyEvent(ui::KeyEvent* event) { |
97 return ui::ER_UNHANDLED; | 101 return ui::ER_UNHANDLED; |
98 } | 102 } |
99 | 103 |
100 ui::EventResult TestWindowDelegate::OnMouseEvent(ui::MouseEvent* event) { | 104 ui::EventResult TestWindowDelegate::OnMouseEvent(ui::MouseEvent* event) { |
101 return ui::ER_UNHANDLED; | 105 return ui::ER_UNHANDLED; |
102 } | 106 } |
103 | 107 |
104 ui::TouchStatus TestWindowDelegate::OnTouchEvent(ui::TouchEvent* event) { | 108 ui::TouchStatus TestWindowDelegate::OnTouchEvent(ui::TouchEvent* event) { |
105 return ui::TOUCH_STATUS_UNKNOWN; | 109 return ui::TOUCH_STATUS_UNKNOWN; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 std::string result = StringPrintf("%d %d", | 224 std::string result = StringPrintf("%d %d", |
221 key_press_count_, | 225 key_press_count_, |
222 key_release_count_); | 226 key_release_count_); |
223 key_press_count_ = 0; | 227 key_press_count_ = 0; |
224 key_release_count_ = 0; | 228 key_release_count_ = 0; |
225 return result; | 229 return result; |
226 } | 230 } |
227 | 231 |
228 } // namespace test | 232 } // namespace test |
229 } // namespace aura | 233 } // namespace aura |
OLD | NEW |