Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: ui/aura/root_window_host_linux.cc

Issue 10143001: Work in progress: Adds MessagePumpDispatcher::ShouldExit(). This is used to handle the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/root_window_host_linux.h ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/aura/root_window_host_linux.h ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698