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

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

Issue 672823002: Remove IsDIPEnabled from Screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dpi-cleanup-1
Patch Set: rebase Created 6 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
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 "base/timer/timer.h" 8 #include "base/timer/timer.h"
9 #include "ui/events/platform/platform_event_dispatcher.h" 9 #include "ui/events/platform/platform_event_dispatcher.h"
10 #include "ui/gfx/display_change_notifier.h" 10 #include "ui/gfx/display_change_notifier.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // Our singleton screen implementation that talks to xrandr. 25 // Our singleton screen implementation that talks to xrandr.
26 class VIEWS_EXPORT DesktopScreenX11 : public gfx::Screen, 26 class VIEWS_EXPORT DesktopScreenX11 : public gfx::Screen,
27 public ui::PlatformEventDispatcher { 27 public ui::PlatformEventDispatcher {
28 public: 28 public:
29 DesktopScreenX11(); 29 DesktopScreenX11();
30 30
31 virtual ~DesktopScreenX11(); 31 virtual ~DesktopScreenX11();
32 32
33 // Overridden from gfx::Screen: 33 // Overridden from gfx::Screen:
34 virtual bool IsDIPEnabled() override;
35 virtual gfx::Point GetCursorScreenPoint() override; 34 virtual gfx::Point GetCursorScreenPoint() override;
36 virtual gfx::NativeWindow GetWindowUnderCursor() override; 35 virtual gfx::NativeWindow GetWindowUnderCursor() override;
37 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) 36 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point)
38 override; 37 override;
39 virtual int GetNumDisplays() const override; 38 virtual int GetNumDisplays() const override;
40 virtual std::vector<gfx::Display> GetAllDisplays() const override; 39 virtual std::vector<gfx::Display> GetAllDisplays() const override;
41 virtual gfx::Display GetDisplayNearestWindow( 40 virtual gfx::Display GetDisplayNearestWindow(
42 gfx::NativeView window) const override; 41 gfx::NativeView window) const override;
43 virtual gfx::Display GetDisplayNearestPoint( 42 virtual gfx::Display GetDisplayNearestPoint(
44 const gfx::Point& point) const override; 43 const gfx::Point& point) const override;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 scoped_ptr<base::OneShotTimer<DesktopScreenX11> > configure_timer_; 82 scoped_ptr<base::OneShotTimer<DesktopScreenX11> > configure_timer_;
84 83
85 gfx::DisplayChangeNotifier change_notifier_; 84 gfx::DisplayChangeNotifier change_notifier_;
86 85
87 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11); 86 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11);
88 }; 87 };
89 88
90 } // namespace views 89 } // namespace views
91 90
92 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ 91 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_screen_win.cc ('k') | ui/views/widget/desktop_aura/desktop_screen_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698