OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/display/chromeos/x11/native_display_delegate_x11.h" | 5 #include "ui/display/chromeos/x11/native_display_delegate_x11.h" |
6 | 6 |
7 #include <X11/Xatom.h> | 7 #include <X11/Xatom.h> |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 #include <X11/extensions/dpms.h> | 9 #include <X11/extensions/dpms.h> |
10 #include <X11/extensions/Xrandr.h> | 10 #include <X11/extensions/Xrandr.h> |
11 #include <X11/extensions/XInput2.h> | 11 #include <X11/extensions/XInput2.h> |
12 | 12 |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "ui/display/chromeos/x11/display_mode_x11.h" | 17 #include "ui/display/chromeos/x11/display_mode_x11.h" |
18 #include "ui/display/chromeos/x11/display_snapshot_x11.h" | 18 #include "ui/display/chromeos/x11/display_snapshot_x11.h" |
19 #include "ui/display/chromeos/x11/display_util_x11.h" | 19 #include "ui/display/chromeos/x11/display_util_x11.h" |
20 #include "ui/display/chromeos/x11/native_display_event_dispatcher_x11.h" | 20 #include "ui/display/chromeos/x11/native_display_event_dispatcher_x11.h" |
21 #include "ui/display/types/chromeos/native_display_observer.h" | 21 #include "ui/display/types/native_display_observer.h" |
22 #include "ui/display/util/x11/edid_parser_x11.h" | 22 #include "ui/display/util/x11/edid_parser_x11.h" |
23 #include "ui/events/platform/platform_event_source.h" | 23 #include "ui/events/platform/platform_event_source.h" |
24 #include "ui/gfx/geometry/rect.h" | 24 #include "ui/gfx/geometry/rect.h" |
25 #include "ui/gfx/x/x11_error_tracker.h" | 25 #include "ui/gfx/x/x11_error_tracker.h" |
26 #include "ui/gfx/x/x11_types.h" | 26 #include "ui/gfx/x/x11_types.h" |
27 | 27 |
28 namespace ui { | 28 namespace ui { |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 XSetForeground(display_, gc, color.pixel); | 642 XSetForeground(display_, gc, color.pixel); |
643 XSetFillStyle(display_, gc, FillSolid); | 643 XSetFillStyle(display_, gc, FillSolid); |
644 int width = DisplayWidth(display_, DefaultScreen(display_)); | 644 int width = DisplayWidth(display_, DefaultScreen(display_)); |
645 int height = DisplayHeight(display_, DefaultScreen(display_)); | 645 int height = DisplayHeight(display_, DefaultScreen(display_)); |
646 XFillRectangle(display_, window_, gc, 0, 0, width, height); | 646 XFillRectangle(display_, window_, gc, 0, 0, width, height); |
647 XFreeGC(display_, gc); | 647 XFreeGC(display_, gc); |
648 XFreeColors(display_, colormap, &color.pixel, 1, 0); | 648 XFreeColors(display_, colormap, &color.pixel, 1, 0); |
649 } | 649 } |
650 | 650 |
651 } // namespace ui | 651 } // namespace ui |
OLD | NEW |