| 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/hit_test.h" | 9 #include "ui/base/hit_test.h" |
| 10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 } | 43 } |
| 44 | 44 |
| 45 gfx::Size TestWindowDelegate::GetMaximumSize() const { | 45 gfx::Size TestWindowDelegate::GetMaximumSize() const { |
| 46 return maximum_size_; | 46 return maximum_size_; |
| 47 } | 47 } |
| 48 | 48 |
| 49 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, | 49 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 50 const gfx::Rect& new_bounds) { | 50 const gfx::Rect& new_bounds) { |
| 51 } | 51 } |
| 52 | 52 |
| 53 ui::TextInputClient* TestWindowDelegate::GetFocusedTextInputClient() { |
| 54 return &text_input_client_; |
| 55 } |
| 56 |
| 53 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { | 57 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { |
| 54 return gfx::kNullCursor; | 58 return gfx::kNullCursor; |
| 55 } | 59 } |
| 56 | 60 |
| 57 int TestWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { | 61 int TestWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { |
| 58 return window_component_; | 62 return window_component_; |
| 59 } | 63 } |
| 60 | 64 |
| 61 bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling( | 65 bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling( |
| 62 Window* child, | 66 Window* child, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 222 } |
| 219 | 223 |
| 220 int EventCountDelegate::GetGestureCountAndReset() { | 224 int EventCountDelegate::GetGestureCountAndReset() { |
| 221 int gesture_count = gesture_count_; | 225 int gesture_count = gesture_count_; |
| 222 gesture_count_ = 0; | 226 gesture_count_ = 0; |
| 223 return gesture_count; | 227 return gesture_count; |
| 224 } | 228 } |
| 225 | 229 |
| 226 } // namespace test | 230 } // namespace test |
| 227 } // namespace aura | 231 } // namespace aura |
| OLD | NEW |