| 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 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 gfx::Size TestWindowDelegate::GetMinimumSize() const { | 36 gfx::Size TestWindowDelegate::GetMinimumSize() const { |
| 37 return minimum_size_; | 37 return minimum_size_; |
| 38 } | 38 } |
| 39 | 39 |
| 40 gfx::Size TestWindowDelegate::GetMaximumSize() const { | 40 gfx::Size TestWindowDelegate::GetMaximumSize() const { |
| 41 return maximum_size_; | 41 return maximum_size_; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void TestWindowDelegate::SetHostTransitionBounds(const gfx::Rect& bounds) { |
| 45 } |
| 46 |
| 44 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, | 47 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 45 const gfx::Rect& new_bounds) { | 48 const gfx::Rect& new_bounds) { |
| 46 } | 49 } |
| 47 | 50 |
| 48 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { | 51 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { |
| 49 return gfx::kNullCursor; | 52 return gfx::kNullCursor; |
| 50 } | 53 } |
| 51 | 54 |
| 52 int TestWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { | 55 int TestWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { |
| 53 return window_component_; | 56 return window_component_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 66 void TestWindowDelegate::OnCaptureLost() { | 69 void TestWindowDelegate::OnCaptureLost() { |
| 67 } | 70 } |
| 68 | 71 |
| 69 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) { | 72 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) { |
| 70 } | 73 } |
| 71 | 74 |
| 72 void TestWindowDelegate::OnDeviceScaleFactorChanged( | 75 void TestWindowDelegate::OnDeviceScaleFactorChanged( |
| 73 float device_scale_factor) { | 76 float device_scale_factor) { |
| 74 } | 77 } |
| 75 | 78 |
| 79 void TestWindowDelegate::OnWindowHidingAnimationCompleted() { |
| 80 } |
| 81 |
| 76 void TestWindowDelegate::OnWindowDestroying() { | 82 void TestWindowDelegate::OnWindowDestroying() { |
| 77 } | 83 } |
| 78 | 84 |
| 79 void TestWindowDelegate::OnWindowDestroyed() { | 85 void TestWindowDelegate::OnWindowDestroyed() { |
| 80 if (delete_on_destroyed_) | 86 if (delete_on_destroyed_) |
| 81 delete this; | 87 delete this; |
| 82 } | 88 } |
| 83 | 89 |
| 84 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) { | 90 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) { |
| 85 } | 91 } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 std::string result = StringPrintf("%d %d", | 212 std::string result = StringPrintf("%d %d", |
| 207 key_press_count_, | 213 key_press_count_, |
| 208 key_release_count_); | 214 key_release_count_); |
| 209 key_press_count_ = 0; | 215 key_press_count_ = 0; |
| 210 key_release_count_ = 0; | 216 key_release_count_ = 0; |
| 211 return result; | 217 return result; |
| 212 } | 218 } |
| 213 | 219 |
| 214 } // namespace test | 220 } // namespace test |
| 215 } // namespace aura | 221 } // namespace aura |
| OLD | NEW |