| 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 | 659 |
| 660 void DesktopRootWindowHostX11::OnNativeWidgetFocus() { | 660 void DesktopRootWindowHostX11::OnNativeWidgetFocus() { |
| 661 native_widget_delegate_->AsWidget()->GetInputMethod()->OnFocus(); | 661 native_widget_delegate_->AsWidget()->GetInputMethod()->OnFocus(); |
| 662 } | 662 } |
| 663 | 663 |
| 664 void DesktopRootWindowHostX11::OnNativeWidgetBlur() { | 664 void DesktopRootWindowHostX11::OnNativeWidgetBlur() { |
| 665 if (xwindow_) | 665 if (xwindow_) |
| 666 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur(); | 666 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur(); |
| 667 } | 667 } |
| 668 | 668 |
| 669 void DesktopRootWindowHostX11::SetInactiveRenderingDisabled( |
| 670 bool disable_inactive) { |
| 671 } |
| 672 |
| 669 //////////////////////////////////////////////////////////////////////////////// | 673 //////////////////////////////////////////////////////////////////////////////// |
| 670 // DesktopRootWindowHostX11, aura::RootWindowHost implementation: | 674 // DesktopRootWindowHostX11, aura::RootWindowHost implementation: |
| 671 | 675 |
| 672 void DesktopRootWindowHostX11::SetDelegate( | 676 void DesktopRootWindowHostX11::SetDelegate( |
| 673 aura::RootWindowHostDelegate* delegate) { | 677 aura::RootWindowHostDelegate* delegate) { |
| 674 root_window_host_delegate_ = delegate; | 678 root_window_host_delegate_ = delegate; |
| 675 } | 679 } |
| 676 | 680 |
| 677 aura::RootWindow* DesktopRootWindowHostX11::GetRootWindow() { | 681 aura::RootWindow* DesktopRootWindowHostX11::GetRootWindow() { |
| 678 return root_window_; | 682 return root_window_; |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 1206 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
| 1203 internal::NativeWidgetDelegate* native_widget_delegate, | 1207 internal::NativeWidgetDelegate* native_widget_delegate, |
| 1204 DesktopNativeWidgetAura* desktop_native_widget_aura, | 1208 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 1205 const gfx::Rect& initial_bounds) { | 1209 const gfx::Rect& initial_bounds) { |
| 1206 return new DesktopRootWindowHostX11(native_widget_delegate, | 1210 return new DesktopRootWindowHostX11(native_widget_delegate, |
| 1207 desktop_native_widget_aura, | 1211 desktop_native_widget_aura, |
| 1208 initial_bounds); | 1212 initial_bounds); |
| 1209 } | 1213 } |
| 1210 | 1214 |
| 1211 } // namespace views | 1215 } // namespace views |
| OLD | NEW |