| 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/views/widget/x11_desktop_handler.h" | 5 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "ui/aura/env.h" | 8 #include "ui/aura/env.h" |
| 9 #include "ui/aura/focus_manager.h" | 9 #include "ui/aura/focus_manager.h" |
| 10 #include "ui/aura/root_window.h" | 10 #include "ui/aura/root_window.h" |
| 11 #include "ui/base/x/x11_util.h" | 11 #include "ui/base/x/x11_util.h" |
| 12 #include "ui/views/widget/desktop_aura/desktop_activation_client.h" | 12 #include "ui/views/widget/desktop_aura/desktop_activation_client.h" |
| 13 | 13 |
| 14 #if !defined(OS_CHROMEOS) | 14 #if !defined(OS_CHROMEOS) |
| 15 #include "ui/views/ime/input_method.h" | 15 #include "ui/views/ime/input_method.h" |
| 16 #include "ui/views/widget/desktop_root_window_host_linux.h" | 16 #include "ui/views/widget/desktop_aura/desktop_root_window_host_linux.h" |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const char* kAtomsToCache[] = { | 21 const char* kAtomsToCache[] = { |
| 22 "_NET_ACTIVE_WINDOW", | 22 "_NET_ACTIVE_WINDOW", |
| 23 NULL | 23 NULL |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 // Our global instance. Deleted when our Env() is deleted. | 26 // Our global instance. Deleted when our Env() is deleted. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 DesktopRootWindowHostLinux* new_host = | 118 DesktopRootWindowHostLinux* new_host = |
| 119 views::DesktopRootWindowHostLinux::GetHostForXID(xid); | 119 views::DesktopRootWindowHostLinux::GetHostForXID(xid); |
| 120 if (new_host) | 120 if (new_host) |
| 121 new_host->HandleNativeWidgetActivationChanged(true); | 121 new_host->HandleNativeWidgetActivationChanged(true); |
| 122 | 122 |
| 123 current_window_ = xid; | 123 current_window_ = xid; |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace views | 126 } // namespace views |
| OLD | NEW |