| 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_window_tree_host_x11.h" | 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" |
| 6 | 6 |
| 7 #include <X11/extensions/shape.h> | 7 #include <X11/extensions/shape.h> |
| 8 #include <X11/extensions/XInput2.h> | 8 #include <X11/extensions/XInput2.h> |
| 9 #include <X11/Xatom.h> | 9 #include <X11/Xatom.h> |
| 10 #include <X11/Xregion.h> | 10 #include <X11/Xregion.h> |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 x11_window_move_client_.reset(new X11DesktopWindowMoveClient); | 475 x11_window_move_client_.reset(new X11DesktopWindowMoveClient); |
| 476 aura::client::SetWindowMoveClient(window(), x11_window_move_client_.get()); | 476 aura::client::SetWindowMoveClient(window(), x11_window_move_client_.get()); |
| 477 | 477 |
| 478 SetWindowTransparency(); | 478 SetWindowTransparency(); |
| 479 | 479 |
| 480 native_widget_delegate_->OnNativeWidgetCreated(true); | 480 native_widget_delegate_->OnNativeWidgetCreated(true); |
| 481 } | 481 } |
| 482 | 482 |
| 483 void DesktopWindowTreeHostX11::OnWidgetInitDone() {} | 483 void DesktopWindowTreeHostX11::OnWidgetInitDone() {} |
| 484 | 484 |
| 485 void DesktopWindowTreeHostX11::OnNativeWidgetActivationChanged(bool active) {} |
| 486 |
| 485 std::unique_ptr<corewm::Tooltip> DesktopWindowTreeHostX11::CreateTooltip() { | 487 std::unique_ptr<corewm::Tooltip> DesktopWindowTreeHostX11::CreateTooltip() { |
| 486 return base::WrapUnique(new corewm::TooltipAura); | 488 return base::WrapUnique(new corewm::TooltipAura); |
| 487 } | 489 } |
| 488 | 490 |
| 489 std::unique_ptr<aura::client::DragDropClient> | 491 std::unique_ptr<aura::client::DragDropClient> |
| 490 DesktopWindowTreeHostX11::CreateDragDropClient( | 492 DesktopWindowTreeHostX11::CreateDragDropClient( |
| 491 DesktopNativeCursorManager* cursor_manager) { | 493 DesktopNativeCursorManager* cursor_manager) { |
| 492 drag_drop_client_ = new DesktopDragDropClientAuraX11( | 494 drag_drop_client_ = new DesktopDragDropClientAuraX11( |
| 493 window(), cursor_manager, xdisplay_, xwindow_); | 495 window(), cursor_manager, xdisplay_, xwindow_); |
| 494 drag_drop_client_->Init(); | 496 drag_drop_client_->Init(); |
| (...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2355 | 2357 |
| 2356 // static | 2358 // static |
| 2357 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 2359 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 2358 internal::NativeWidgetDelegate* native_widget_delegate, | 2360 internal::NativeWidgetDelegate* native_widget_delegate, |
| 2359 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 2361 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 2360 return new DesktopWindowTreeHostX11(native_widget_delegate, | 2362 return new DesktopWindowTreeHostX11(native_widget_delegate, |
| 2361 desktop_native_widget_aura); | 2363 desktop_native_widget_aura); |
| 2362 } | 2364 } |
| 2363 | 2365 |
| 2364 } // namespace views | 2366 } // namespace views |
| OLD | NEW |