OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "third_party/skia/include/core/SkCanvas.h" | 7 #include "third_party/skia/include/core/SkCanvas.h" |
8 #include "ui/aura/event.h" | 8 #include "ui/aura/event.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.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 | 12 |
13 namespace aura { | 13 namespace aura { |
14 namespace test { | 14 namespace test { |
15 | 15 |
16 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
17 // TestWindowDelegate | 17 // TestWindowDelegate |
18 | 18 |
19 TestWindowDelegate::TestWindowDelegate() { | 19 TestWindowDelegate::TestWindowDelegate() { |
20 } | 20 } |
21 | 21 |
22 TestWindowDelegate::~TestWindowDelegate() { | 22 TestWindowDelegate::~TestWindowDelegate() { |
23 } | 23 } |
24 | 24 |
25 void TestWindowDelegate::OnBoundsChanging(gfx::Rect* new_bounds) { | 25 gfx::Size TestWindowDelegate::GetMinimumSize() const { |
| 26 return gfx::Size(); |
26 } | 27 } |
27 | 28 |
28 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, | 29 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, |
29 const gfx::Rect& new_bounds) { | 30 const gfx::Rect& new_bounds) { |
30 } | 31 } |
31 | 32 |
32 void TestWindowDelegate::OnFocus() { | 33 void TestWindowDelegate::OnFocus() { |
33 } | 34 } |
34 | 35 |
35 void TestWindowDelegate::OnBlur() { | 36 void TestWindowDelegate::OnBlur() { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 } | 126 } |
126 void ActivateWindowDelegate::OnActivated() { | 127 void ActivateWindowDelegate::OnActivated() { |
127 activated_count_++; | 128 activated_count_++; |
128 } | 129 } |
129 void ActivateWindowDelegate::OnLostActive() { | 130 void ActivateWindowDelegate::OnLostActive() { |
130 lost_active_count_++; | 131 lost_active_count_++; |
131 } | 132 } |
132 | 133 |
133 } // namespace test | 134 } // namespace test |
134 } // namespace aura | 135 } // namespace aura |
OLD | NEW |