OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/test/widget_test.h" | 5 #include "ui/views/test/widget_test.h" |
6 | 6 |
7 #include "ui/aura/client/focus_client.h" | 7 #include "ui/aura/client/focus_client.h" |
8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
9 #include "ui/aura/window_tree_host.h" | 9 #include "ui/aura/window_tree_host.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 NOTREACHED(); | 97 NOTREACHED(); |
98 return gfx::Size(); | 98 return gfx::Size(); |
99 #endif | 99 #endif |
100 } | 100 } |
101 | 101 |
102 // static | 102 // static |
103 ui::EventProcessor* WidgetTest::GetEventProcessor(Widget* widget) { | 103 ui::EventProcessor* WidgetTest::GetEventProcessor(Widget* widget) { |
104 return widget->GetNativeWindow()->GetHost()->event_processor(); | 104 return widget->GetNativeWindow()->GetHost()->event_processor(); |
105 } | 105 } |
106 | 106 |
| 107 // static |
| 108 ui::internal::InputMethodDelegate* WidgetTest::GetInputMethodDelegateForWidget( |
| 109 Widget* widget) { |
| 110 return widget->GetNativeWindow()->GetRootWindow()->GetHost(); |
| 111 } |
| 112 |
107 } // namespace test | 113 } // namespace test |
108 } // namespace views | 114 } // namespace views |
OLD | NEW |