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 "build/build_config.h" |
7 #include "ui/aura/client/focus_client.h" | 8 #include "ui/aura/client/focus_client.h" |
8 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
9 #include "ui/aura/window_tree_host.h" | 10 #include "ui/aura/window_tree_host.h" |
10 #include "ui/views/widget/widget.h" | 11 #include "ui/views/widget/widget.h" |
11 | 12 |
12 #if defined(USE_X11) | 13 #if defined(USE_X11) |
13 #include <X11/Xutil.h> | 14 #include <X11/Xutil.h> |
14 #include "ui/gfx/x/x11_types.h" | 15 #include "ui/gfx/x/x11_types.h" |
15 #endif | 16 #endif |
16 | 17 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 106 } |
106 | 107 |
107 // static | 108 // static |
108 ui::internal::InputMethodDelegate* WidgetTest::GetInputMethodDelegateForWidget( | 109 ui::internal::InputMethodDelegate* WidgetTest::GetInputMethodDelegateForWidget( |
109 Widget* widget) { | 110 Widget* widget) { |
110 return widget->GetNativeWindow()->GetRootWindow()->GetHost(); | 111 return widget->GetNativeWindow()->GetRootWindow()->GetHost(); |
111 } | 112 } |
112 | 113 |
113 } // namespace test | 114 } // namespace test |
114 } // namespace views | 115 } // namespace views |
OLD | NEW |