| 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/desktop_aura/desktop_root_window_host_x11.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_x11.h" |
| 6 | 6 |
| 7 #include <X11/extensions/XInput2.h> | 7 #include <X11/extensions/XInput2.h> |
| 8 #include <X11/Xatom.h> | 8 #include <X11/Xatom.h> |
| 9 #include <X11/Xutil.h> | 9 #include <X11/Xutil.h> |
| 10 | 10 |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 | 635 |
| 636 void DesktopRootWindowHostX11::OnNativeWidgetFocus() { | 636 void DesktopRootWindowHostX11::OnNativeWidgetFocus() { |
| 637 native_widget_delegate_->AsWidget()->GetInputMethod()->OnFocus(); | 637 native_widget_delegate_->AsWidget()->GetInputMethod()->OnFocus(); |
| 638 } | 638 } |
| 639 | 639 |
| 640 void DesktopRootWindowHostX11::OnNativeWidgetBlur() { | 640 void DesktopRootWindowHostX11::OnNativeWidgetBlur() { |
| 641 if (xwindow_) | 641 if (xwindow_) |
| 642 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur(); | 642 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur(); |
| 643 } | 643 } |
| 644 | 644 |
| 645 void DesktopRootWindowHostX11::AlwaysPaintActivated(bool value) { |
| 646 } |
| 647 |
| 645 //////////////////////////////////////////////////////////////////////////////// | 648 //////////////////////////////////////////////////////////////////////////////// |
| 646 // DesktopRootWindowHostX11, aura::RootWindowHost implementation: | 649 // DesktopRootWindowHostX11, aura::RootWindowHost implementation: |
| 647 | 650 |
| 648 void DesktopRootWindowHostX11::SetDelegate( | 651 void DesktopRootWindowHostX11::SetDelegate( |
| 649 aura::RootWindowHostDelegate* delegate) { | 652 aura::RootWindowHostDelegate* delegate) { |
| 650 root_window_host_delegate_ = delegate; | 653 root_window_host_delegate_ = delegate; |
| 651 } | 654 } |
| 652 | 655 |
| 653 aura::RootWindow* DesktopRootWindowHostX11::GetRootWindow() { | 656 aura::RootWindow* DesktopRootWindowHostX11::GetRootWindow() { |
| 654 return root_window_; | 657 return root_window_; |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 1144 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
| 1142 internal::NativeWidgetDelegate* native_widget_delegate, | 1145 internal::NativeWidgetDelegate* native_widget_delegate, |
| 1143 DesktopNativeWidgetAura* desktop_native_widget_aura, | 1146 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 1144 const gfx::Rect& initial_bounds) { | 1147 const gfx::Rect& initial_bounds) { |
| 1145 return new DesktopRootWindowHostX11(native_widget_delegate, | 1148 return new DesktopRootWindowHostX11(native_widget_delegate, |
| 1146 desktop_native_widget_aura, | 1149 desktop_native_widget_aura, |
| 1147 initial_bounds); | 1150 initial_bounds); |
| 1148 } | 1151 } |
| 1149 | 1152 |
| 1150 } // namespace views | 1153 } // namespace views |
| OLD | NEW |