| 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "ui/aura/aura_export.h" |
| 8 #include "ui/aura/root_window.h" | 9 #include "ui/aura/root_window.h" |
| 9 #include "ui/aura/ui_controls_aura.h" | 10 #include "ui/ui_controls/ui_controls.h" |
| 10 #include "ui/ui_controls/ui_controls_aura.h" | |
| 11 #include "ui/ui_controls/ui_controls_internal_win.h" | 11 #include "ui/ui_controls/ui_controls_internal_win.h" |
| 12 | 12 |
| 13 namespace aura { | 13 namespace aura { |
| 14 namespace { | 14 namespace { |
| 15 class UIControlsWin : public ui_controls::UIControlsAura { | 15 class UIControlsWin : public ui_controls::UIControls { |
| 16 public: | 16 public: |
| 17 UIControlsWin(RootWindow* root_window) : root_window_(root_window) { | 17 UIControlsWin(RootWindow* root_window) : root_window_(root_window) { |
| 18 } | 18 } |
| 19 | 19 |
| 20 // UIControlsAura overrides: | 20 // UIControlsAura overrides: |
| 21 virtual bool SendKeyPress(gfx::NativeWindow native_window, | 21 virtual bool SendKeyPress(gfx::NativeWindow native_window, |
| 22 ui::KeyboardCode key, | 22 ui::KeyboardCode key, |
| 23 bool control, | 23 bool control, |
| 24 bool shift, | 24 bool shift, |
| 25 bool alt, | 25 bool alt, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 MessageLoopForUI::current()->PostTask(FROM_HERE, closure); | 71 MessageLoopForUI::current()->PostTask(FROM_HERE, closure); |
| 72 } | 72 } |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 RootWindow* root_window_; | 75 RootWindow* root_window_; |
| 76 DISALLOW_COPY_AND_ASSIGN(UIControlsWin); | 76 DISALLOW_COPY_AND_ASSIGN(UIControlsWin); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace | 79 } // namespace |
| 80 | 80 |
| 81 ui_controls::UIControlsAura* CreateUIControlsAura(RootWindow* root_window) { | 81 AURA_EXPORT ui_controls::UIControls* CreateDesktopUIControls( |
| 82 RootWindow* root_window) { |
| 82 return new UIControlsWin(root_window); | 83 return new UIControlsWin(root_window); |
| 83 } | 84 } |
| 84 | 85 |
| 85 } // namespace aura | 86 } // namespace aura |
| OLD | NEW |