| 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 "ui/aura/event.h" | 7 #include "ui/aura/event.h" |
| 8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
| 9 #include "ui/base/hit_test.h" | 9 #include "ui/base/hit_test.h" |
| 10 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 gfx::Size TestWindowDelegate::GetMinimumSize() const { | 26 gfx::Size TestWindowDelegate::GetMinimumSize() const { |
| 27 return gfx::Size(); | 27 return gfx::Size(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, | 30 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 31 const gfx::Rect& new_bounds) { | 31 const gfx::Rect& new_bounds) { |
| 32 } | 32 } |
| 33 | 33 |
| 34 void TestWindowDelegate::OnFocus() { | 34 void TestWindowDelegate::OnFocus(Window* old_focused_window) { |
| 35 } | 35 } |
| 36 | 36 |
| 37 void TestWindowDelegate::OnBlur() { | 37 void TestWindowDelegate::OnBlur() { |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool TestWindowDelegate::OnKeyEvent(KeyEvent* event) { | 40 bool TestWindowDelegate::OnKeyEvent(KeyEvent* event) { |
| 41 return false; | 41 return false; |
| 42 } | 42 } |
| 43 | 43 |
| 44 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { | 44 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool MaskedWindowDelegate::HasHitTestMask() const { | 128 bool MaskedWindowDelegate::HasHitTestMask() const { |
| 129 return true; | 129 return true; |
| 130 } | 130 } |
| 131 | 131 |
| 132 void MaskedWindowDelegate::GetHitTestMask(gfx::Path* mask) const { | 132 void MaskedWindowDelegate::GetHitTestMask(gfx::Path* mask) const { |
| 133 mask->addRect(RectToSkRect(mask_rect_)); | 133 mask->addRect(RectToSkRect(mask_rect_)); |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace test | 136 } // namespace test |
| 137 } // namespace aura | 137 } // namespace aura |
| OLD | NEW |