| 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_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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |