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

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

Issue 2027943002: [WIP] Make content_shell run under Wayland Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on tonikitoo's CL (included) Created 4 years, 6 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WAYLAND_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WAYLAND_H_
7
8 #include <memory>
9 #include <vector>
10
11 #include "base/run_loop.h"
12 #include "ui/display/display.h"
13 #include "ui/display/display_change_notifier.h"
14 #include "ui/display/screen.h"
15 #include "ui/gfx/geometry/rect.h"
16 #include "ui/views/views_export.h"
17
18 namespace aura {
19 class Window;
20 }
21
22 namespace views {
23
24 class VIEWS_EXPORT DesktopScreenWayland
25 : public display::Screen {
26 public:
27 DesktopScreenWayland();
28 ~DesktopScreenWayland() override;
29
30 private:
31 // Overridden from display::Screen:
32 gfx::Point GetCursorScreenPoint() override;
33 bool IsWindowUnderCursor(gfx::NativeWindow) override;
34 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point&) override;
35 int GetNumDisplays() const override;
36 std::vector<display::Display> GetAllDisplays() const override;
37 display::Display GetDisplayNearestWindow(
38 gfx::NativeView) const override;
39 display::Display GetDisplayNearestPoint(
40 const gfx::Point&) const override;
41 display::Display GetDisplayMatching(
42 const gfx::Rect&) const override;
43 display::Display GetPrimaryDisplay() const override;
44 void AddObserver(display::DisplayObserver*) override;
45 void RemoveObserver(display::DisplayObserver*) override;
46 void OnOutputGeometryChanged(int32_t name, const gfx::Rect&) override;
47 void WaitForScreenSizeAvailable() override;
48
49 // The display objects we present to chrome.
50 std::vector<display::Display> displays_;
51
52 display::DisplayChangeNotifier change_notifier_;
53
54 DISALLOW_COPY_AND_ASSIGN(DesktopScreenWayland);
55 };
56
57 } // namespace views
58
59 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WAYLAND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698