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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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; 34 virtual bool IsDIPEnabled() override;
35 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; 35 virtual gfx::Point GetCursorScreenPoint() override;
36 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE; 36 virtual gfx::NativeWindow GetWindowUnderCursor() override;
37 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) 37 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point)
38 OVERRIDE; 38 override;
39 virtual int GetNumDisplays() const OVERRIDE; 39 virtual int GetNumDisplays() const override;
40 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE; 40 virtual std::vector<gfx::Display> GetAllDisplays() const override;
41 virtual gfx::Display GetDisplayNearestWindow( 41 virtual gfx::Display GetDisplayNearestWindow(
42 gfx::NativeView window) const OVERRIDE; 42 gfx::NativeView window) const override;
43 virtual gfx::Display GetDisplayNearestPoint( 43 virtual gfx::Display GetDisplayNearestPoint(
44 const gfx::Point& point) const OVERRIDE; 44 const gfx::Point& point) const override;
45 virtual gfx::Display GetDisplayMatching( 45 virtual gfx::Display GetDisplayMatching(
46 const gfx::Rect& match_rect) const OVERRIDE; 46 const gfx::Rect& match_rect) const override;
47 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; 47 virtual gfx::Display GetPrimaryDisplay() const override;
48 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE; 48 virtual void AddObserver(gfx::DisplayObserver* observer) override;
49 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE; 49 virtual void RemoveObserver(gfx::DisplayObserver* observer) override;
50 50
51 // ui::PlatformEventDispatcher: 51 // ui::PlatformEventDispatcher:
52 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) OVERRIDE; 52 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) override;
53 virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) OVERRIDE; 53 virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
54 54
55 private: 55 private:
56 friend class DesktopScreenX11Test; 56 friend class DesktopScreenX11Test;
57 57
58 // Constructor used in tests. 58 // Constructor used in tests.
59 DesktopScreenX11(const std::vector<gfx::Display>& test_displays); 59 DesktopScreenX11(const std::vector<gfx::Display>& test_displays);
60 60
61 // Builds a list of displays from the current screen information offered by 61 // Builds a list of displays from the current screen information offered by
62 // the X server. 62 // the X server.
63 std::vector<gfx::Display> BuildDisplaysFromXRandRInfo(); 63 std::vector<gfx::Display> BuildDisplaysFromXRandRInfo();
(...skipping 19 matching lines...) Expand all
83 scoped_ptr<base::OneShotTimer<DesktopScreenX11> > configure_timer_; 83 scoped_ptr<base::OneShotTimer<DesktopScreenX11> > configure_timer_;
84 84
85 gfx::DisplayChangeNotifier change_notifier_; 85 gfx::DisplayChangeNotifier change_notifier_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11); 87 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11);
88 }; 88 };
89 89
90 } // namespace views 90 } // namespace views
91 91
92 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ 92 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_screen_win.h ('k') | ui/views/widget/desktop_aura/desktop_screen_x11_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698