| 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/strings/stringprintf.h" | 7 #include "base/strings/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" |
| 11 #include "ui/gfx/canvas.h" | 11 #include "ui/gfx/canvas.h" |
| 12 #include "ui/gfx/path.h" | 12 #include "ui/gfx/path.h" |
| 13 #include "ui/gfx/skia_util.h" | 13 #include "ui/gfx/skia_util.h" |
| 14 | 14 |
| 15 #if defined(USE_AURA) |
| 16 #include "ui/base/cursor/cursor.h" |
| 17 #endif |
| 18 |
| 15 namespace aura { | 19 namespace aura { |
| 16 namespace test { | 20 namespace test { |
| 17 | 21 |
| 18 //////////////////////////////////////////////////////////////////////////////// | 22 //////////////////////////////////////////////////////////////////////////////// |
| 19 // TestWindowDelegate | 23 // TestWindowDelegate |
| 20 | 24 |
| 21 TestWindowDelegate::TestWindowDelegate() | 25 TestWindowDelegate::TestWindowDelegate() |
| 22 : window_component_(HTCLIENT), | 26 : window_component_(HTCLIENT), |
| 23 delete_on_destroyed_(false), | 27 delete_on_destroyed_(false), |
| 24 can_focus_(true) { | 28 can_focus_(true) { |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 std::string result = base::StringPrintf("%d %d", | 211 std::string result = base::StringPrintf("%d %d", |
| 208 key_press_count_, | 212 key_press_count_, |
| 209 key_release_count_); | 213 key_release_count_); |
| 210 key_press_count_ = 0; | 214 key_press_count_ = 0; |
| 211 key_release_count_ = 0; | 215 key_release_count_ = 0; |
| 212 return result; | 216 return result; |
| 213 } | 217 } |
| 214 | 218 |
| 215 } // namespace test | 219 } // namespace test |
| 216 } // namespace aura | 220 } // namespace aura |
| OLD | NEW |