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 19 matching lines...) Expand all Loading... |
30 TestWindowDelegate* TestWindowDelegate::CreateSelfDestroyingDelegate() { | 30 TestWindowDelegate* TestWindowDelegate::CreateSelfDestroyingDelegate() { |
31 TestWindowDelegate* delegate = new TestWindowDelegate; | 31 TestWindowDelegate* delegate = new TestWindowDelegate; |
32 delegate->delete_on_destroyed_ = true; | 32 delegate->delete_on_destroyed_ = true; |
33 return delegate; | 33 return delegate; |
34 } | 34 } |
35 | 35 |
36 gfx::Size TestWindowDelegate::GetMinimumSize() const { | 36 gfx::Size TestWindowDelegate::GetMinimumSize() const { |
37 return gfx::Size(); | 37 return gfx::Size(); |
38 } | 38 } |
39 | 39 |
| 40 gfx::Size TestWindowDelegate::GetMaximumSize() const { |
| 41 return gfx::Size(); |
| 42 } |
| 43 |
40 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, | 44 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, |
41 const gfx::Rect& new_bounds) { | 45 const gfx::Rect& new_bounds) { |
42 } | 46 } |
43 | 47 |
44 void TestWindowDelegate::OnFocus(Window* old_focused_window) { | 48 void TestWindowDelegate::OnFocus(Window* old_focused_window) { |
45 } | 49 } |
46 | 50 |
47 void TestWindowDelegate::OnBlur() { | 51 void TestWindowDelegate::OnBlur() { |
48 } | 52 } |
49 | 53 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 std::string result = StringPrintf("%d %d", | 228 std::string result = StringPrintf("%d %d", |
225 key_press_count_, | 229 key_press_count_, |
226 key_release_count_); | 230 key_release_count_); |
227 key_press_count_ = 0; | 231 key_press_count_ = 0; |
228 key_release_count_ = 0; | 232 key_release_count_ = 0; |
229 return result; | 233 return result; |
230 } | 234 } |
231 | 235 |
232 } // namespace test | 236 } // namespace test |
233 } // namespace aura | 237 } // namespace aura |
OLD | NEW |