| 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/aura/root_window_host_linux.h" | 5 #include "ui/aura/root_window_host_linux.h" |
| 6 | 6 |
| 7 #include <X11/Xatom.h> | 7 #include <X11/Xatom.h> |
| 8 #include <X11/cursorfont.h> | 8 #include <X11/cursorfont.h> |
| 9 #include <X11/extensions/XInput2.h> | 9 #include <X11/extensions/XInput2.h> |
| 10 #include <X11/extensions/Xfixes.h> | 10 #include <X11/extensions/Xfixes.h> |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 } | 586 } |
| 587 | 587 |
| 588 MouseEvent mouseev(xev); | 588 MouseEvent mouseev(xev); |
| 589 root_window_->DispatchMouseEvent(&mouseev); | 589 root_window_->DispatchMouseEvent(&mouseev); |
| 590 break; | 590 break; |
| 591 } | 591 } |
| 592 } | 592 } |
| 593 return true; | 593 return true; |
| 594 } | 594 } |
| 595 | 595 |
| 596 bool RootWindowHostLinux::ShouldExit() { |
| 597 return false; |
| 598 } |
| 599 |
| 596 void RootWindowHostLinux::SetRootWindow(RootWindow* root_window) { | 600 void RootWindowHostLinux::SetRootWindow(RootWindow* root_window) { |
| 597 root_window_ = root_window; | 601 root_window_ = root_window; |
| 598 } | 602 } |
| 599 | 603 |
| 600 gfx::AcceleratedWidget RootWindowHostLinux::GetAcceleratedWidget() { | 604 gfx::AcceleratedWidget RootWindowHostLinux::GetAcceleratedWidget() { |
| 601 return xwindow_; | 605 return xwindow_; |
| 602 } | 606 } |
| 603 | 607 |
| 604 void RootWindowHostLinux::Show() { | 608 void RootWindowHostLinux::Show() { |
| 605 XMapWindow(xdisplay_, xwindow_); | 609 XMapWindow(xdisplay_, xwindow_); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 return new RootWindowHostLinux(bounds); | 818 return new RootWindowHostLinux(bounds); |
| 815 } | 819 } |
| 816 | 820 |
| 817 // static | 821 // static |
| 818 gfx::Size RootWindowHost::GetNativeScreenSize() { | 822 gfx::Size RootWindowHost::GetNativeScreenSize() { |
| 819 ::Display* xdisplay = base::MessagePumpX::GetDefaultXDisplay(); | 823 ::Display* xdisplay = base::MessagePumpX::GetDefaultXDisplay(); |
| 820 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0)); | 824 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0)); |
| 821 } | 825 } |
| 822 | 826 |
| 823 } // namespace aura | 827 } // namespace aura |
| OLD | NEW |