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

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

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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
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 <strings.h> 7 #include <strings.h>
8 #include <X11/cursorfont.h> 8 #include <X11/cursorfont.h>
9 #include <X11/extensions/Xfixes.h> 9 #include <X11/extensions/Xfixes.h>
10 #include <X11/extensions/XInput2.h> 10 #include <X11/extensions/XInput2.h>
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 // 1. delegate_ pointing to RootWindow - available after SetDelegate. 858 // 1. delegate_ pointing to RootWindow - available after SetDelegate.
859 // 2. RootWindow's kDisplayIdKey property set - available by the time 859 // 2. RootWindow's kDisplayIdKey property set - available by the time
860 // RootWindow::Init is called. 860 // RootWindow::Init is called.
861 // (set in DisplayManager::CreateRootWindowForDisplay) 861 // (set in DisplayManager::CreateRootWindowForDisplay)
862 // Ready when NotifyRootWindowInitialized is called from RootWindow::Init. 862 // Ready when NotifyRootWindowInitialized is called from RootWindow::Init.
863 if (!delegate_ || root_window != GetRootWindow()) 863 if (!delegate_ || root_window != GetRootWindow())
864 return; 864 return;
865 UpdateIsInternalDisplay(); 865 UpdateIsInternalDisplay();
866 } 866 }
867 867
868 void RootWindowHostLinux::SetHostWindowExpansion(const gfx::Rect& extra) {
869 }
sky 2013/03/14 20:06:37 NOTIMPLEMENTED?
scottmg 2013/03/14 22:51:53 Done.
870
868 bool RootWindowHostLinux::DispatchEventForRootWindow( 871 bool RootWindowHostLinux::DispatchEventForRootWindow(
869 const base::NativeEvent& event) { 872 const base::NativeEvent& event) {
870 switch (event->type) { 873 switch (event->type) {
871 case ConfigureNotify: 874 case ConfigureNotify:
872 DCHECK_EQ(x_root_window_, event->xconfigure.event); 875 DCHECK_EQ(x_root_window_, event->xconfigure.event);
873 x_root_bounds_.SetRect(event->xconfigure.x, event->xconfigure.y, 876 x_root_bounds_.SetRect(event->xconfigure.x, event->xconfigure.y,
874 event->xconfigure.width, event->xconfigure.height); 877 event->xconfigure.width, event->xconfigure.height);
875 break; 878 break;
876 879
877 case GenericEvent: 880 case GenericEvent:
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 return new RootWindowHostLinux(bounds); 1048 return new RootWindowHostLinux(bounds);
1046 } 1049 }
1047 1050
1048 // static 1051 // static
1049 gfx::Size RootWindowHost::GetNativeScreenSize() { 1052 gfx::Size RootWindowHost::GetNativeScreenSize() {
1050 ::Display* xdisplay = base::MessagePumpAuraX11::GetDefaultXDisplay(); 1053 ::Display* xdisplay = base::MessagePumpAuraX11::GetDefaultXDisplay();
1051 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0)); 1054 return gfx::Size(DisplayWidth(xdisplay, 0), DisplayHeight(xdisplay, 0));
1052 } 1055 }
1053 1056
1054 } // namespace aura 1057 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698