Chromium Code Reviews

Side by Side Diff: ui/views/widget/desktop_aura/desktop_screen_x11.h

Issue 1964153002: Move Screen, its impls, DisplayObserver and DisplayChangeNotifier to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
14 #include "ui/display/display_change_notifier.h"
14 #include "ui/display/screen.h" 15 #include "ui/display/screen.h"
15 #include "ui/events/platform/platform_event_dispatcher.h" 16 #include "ui/events/platform/platform_event_dispatcher.h"
16 #include "ui/gfx/display_change_notifier.h"
17 #include "ui/gfx/x/x11_atom_cache.h" 17 #include "ui/gfx/x/x11_atom_cache.h"
18 #include "ui/views/views_export.h" 18 #include "ui/views/views_export.h"
19 19
20 typedef unsigned long XID; 20 typedef unsigned long XID;
21 typedef XID Window; 21 typedef XID Window;
22 typedef struct _XDisplay Display; 22 typedef struct _XDisplay Display;
23 23
24 namespace views { 24 namespace views {
25 class DesktopScreenX11Test; 25 class DesktopScreenX11Test;
26 26
(...skipping 61 matching lines...)
88 // The display objects we present to chrome. 88 // The display objects we present to chrome.
89 std::vector<display::Display> displays_; 89 std::vector<display::Display> displays_;
90 90
91 // The index into displays_ that represents the primary display. 91 // The index into displays_ that represents the primary display.
92 size_t primary_display_index_; 92 size_t primary_display_index_;
93 93
94 // The timer to delay configuring outputs. See also the comments in 94 // The timer to delay configuring outputs. See also the comments in
95 // Dispatch(). 95 // Dispatch().
96 std::unique_ptr<base::OneShotTimer> configure_timer_; 96 std::unique_ptr<base::OneShotTimer> configure_timer_;
97 97
98 gfx::DisplayChangeNotifier change_notifier_; 98 display::DisplayChangeNotifier change_notifier_;
99 99
100 ui::X11AtomCache atom_cache_; 100 ui::X11AtomCache atom_cache_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11); 102 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11);
103 }; 103 };
104 104
105 } // namespace views 105 } // namespace views
106 106
107 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ 107 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_
OLDNEW
« ui/display/display_observer.h ('K') | « ui/views/widget/desktop_aura/desktop_screen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine