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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc

Issue 139593002: Nukes MessageLoop::Dispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
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/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/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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 data->push_back(bitmap.getColor(x, y)); 1188 data->push_back(bitmap.getColor(x, y));
1189 } 1189 }
1190 1190
1191 std::list<XID>& DesktopWindowTreeHostX11::open_windows() { 1191 std::list<XID>& DesktopWindowTreeHostX11::open_windows() {
1192 if (!open_windows_) 1192 if (!open_windows_)
1193 open_windows_ = new std::list<XID>(); 1193 open_windows_ = new std::list<XID>();
1194 return *open_windows_; 1194 return *open_windows_;
1195 } 1195 }
1196 1196
1197 //////////////////////////////////////////////////////////////////////////////// 1197 ////////////////////////////////////////////////////////////////////////////////
1198 // DesktopWindowTreeHostX11, MessageLoop::Dispatcher implementation: 1198 // DesktopWindowTreeHostX11, MessagePumpDispatcher implementation:
1199 1199
1200 bool DesktopWindowTreeHostX11::Dispatch(const base::NativeEvent& event) { 1200 bool DesktopWindowTreeHostX11::Dispatch(const base::NativeEvent& event) {
1201 XEvent* xev = event; 1201 XEvent* xev = event;
1202 1202
1203 TRACE_EVENT1("views", "DesktopWindowTreeHostX11::Dispatch", 1203 TRACE_EVENT1("views", "DesktopWindowTreeHostX11::Dispatch",
1204 "event->type", event->type); 1204 "event->type", event->type);
1205 1205
1206 // May want to factor CheckXEventForConsistency(xev); into a common location 1206 // May want to factor CheckXEventForConsistency(xev); into a common location
1207 // since it is called here. 1207 // since it is called here.
1208 switch (xev->type) { 1208 switch (xev->type) {
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 if (linux_ui) { 1546 if (linux_ui) {
1547 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(); 1547 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme();
1548 if (native_theme) 1548 if (native_theme)
1549 return native_theme; 1549 return native_theme;
1550 } 1550 }
1551 1551
1552 return ui::NativeTheme::instance(); 1552 return ui::NativeTheme::instance();
1553 } 1553 }
1554 1554
1555 } // namespace views 1555 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_root_window_host_x11.h ('k') | ui/views/widget/desktop_aura/x11_desktop_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698