| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "ui/aura/test/ui_controls_factory_aura.h" | 8 #include "ui/aura/test/ui_controls_factory_aura.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/aura/window_event_dispatcher.h" | 10 #include "ui/aura/window_tree_host.h" |
| 11 #include "ui/base/test/ui_controls_aura.h" | 11 #include "ui/base/test/ui_controls_aura.h" |
| 12 #include "ui/base/test/ui_controls_internal_win.h" | 12 #include "ui/base/test/ui_controls_internal_win.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 namespace test { | 15 namespace test { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 using ui_controls::DOWN; | 19 using ui_controls::DOWN; |
| 20 using ui_controls::LEFT; | 20 using ui_controls::LEFT; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // On windows, posting UI events is synchronous so just post the closure. | 77 // On windows, posting UI events is synchronous so just post the closure. |
| 78 base::MessageLoopForUI::current()->PostTask(FROM_HERE, closure); | 78 base::MessageLoopForUI::current()->PostTask(FROM_HERE, closure); |
| 79 } | 79 } |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 DISALLOW_COPY_AND_ASSIGN(UIControlsWin); | 82 DISALLOW_COPY_AND_ASSIGN(UIControlsWin); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace | 85 } // namespace |
| 86 | 86 |
| 87 UIControlsAura* CreateUIControlsAura(WindowEventDispatcher* dispatcher) { | 87 UIControlsAura* CreateUIControlsAura(WindowTreeHost* host) { |
| 88 return new UIControlsWin(); | 88 return new UIControlsWin(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace test | 91 } // namespace test |
| 92 } // namespace aura | 92 } // namespace aura |
| OLD | NEW |