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