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

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: (09.28.2016)Rebase on master Created 4 years, 2 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 "ui/display/display.h"
12 #include "ui/display/display_change_notifier.h"
13 #include "ui/display/screen.h"
14 #include "ui/gfx/geometry/rect.h"
15 #include "ui/ozone/public/ozone_platform_screen_delegate.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 ui::OzonePlatformScreenDelegate {
27 public:
28 DesktopScreenWayland();
29 ~DesktopScreenWayland() override;
30
31 // ui::WaylandOutput::Observer overrides.
32 void OnOutputGeometryChanged(int32_t name, const gfx::Rect& rect) override;
33
34 private:
35 // Overridden from display::Screen:
36 gfx::Point GetCursorScreenPoint() override;
37 bool IsWindowUnderCursor(gfx::NativeWindow) override;
38 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point&) override;
39 int GetNumDisplays() const override;
40 std::vector<display::Display> GetAllDisplays() const override;
41 display::Display GetDisplayNearestWindow(
42 gfx::NativeView) const override;
43 display::Display GetDisplayNearestPoint(
44 const gfx::Point&) const override;
45 display::Display GetDisplayMatching(
46 const gfx::Rect&) const override;
47 display::Display GetPrimaryDisplay() const override;
48 void AddObserver(display::DisplayObserver*) override;
49 void RemoveObserver(display::DisplayObserver*) override;
50
51 // The display objects we present to chrome.
52 std::vector<display::Display> displays_;
53
54 display::DisplayChangeNotifier change_notifier_;
55
56 DISALLOW_COPY_AND_ASSIGN(DesktopScreenWayland);
57 };
58
59 } // namespace views
60
61 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_WAYLAND_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_factory_ozone_wayland.cc ('k') | ui/views/widget/desktop_aura/desktop_screen_wayland.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698