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

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

Issue 1555163002: Revert "Revert of Support device scale factor test with popups in LayoutTest (patchset #2 id:40001 … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hypothentical fix Created 4 years, 11 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override; 47 gfx::Display GetDisplayNearestPoint(const gfx::Point& point) const override;
48 gfx::Display GetDisplayMatching(const gfx::Rect& match_rect) const override; 48 gfx::Display GetDisplayMatching(const gfx::Rect& match_rect) const override;
49 gfx::Display GetPrimaryDisplay() const override; 49 gfx::Display GetPrimaryDisplay() const override;
50 void AddObserver(gfx::DisplayObserver* observer) override; 50 void AddObserver(gfx::DisplayObserver* observer) override;
51 void RemoveObserver(gfx::DisplayObserver* observer) override; 51 void RemoveObserver(gfx::DisplayObserver* observer) override;
52 52
53 // ui::PlatformEventDispatcher: 53 // ui::PlatformEventDispatcher:
54 bool CanDispatchEvent(const ui::PlatformEvent& event) override; 54 bool CanDispatchEvent(const ui::PlatformEvent& event) override;
55 uint32_t DispatchEvent(const ui::PlatformEvent& event) override; 55 uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
56 56
57 static void UpdateDeviceScaleFactorForTest();
58
59 private: 57 private:
60 friend class DesktopScreenX11Test; 58 friend class DesktopScreenX11Test;
61 friend class test::DesktopScreenX11TestApi; 59 friend class test::DesktopScreenX11TestApi;
62 60
63 // Constructor used in tests. 61 // Constructor used in tests.
64 DesktopScreenX11(const std::vector<gfx::Display>& test_displays); 62 DesktopScreenX11(const std::vector<gfx::Display>& test_displays);
65 63
66 // Builds a list of displays from the current screen information offered by 64 // Builds a list of displays from the current screen information offered by
67 // the X server. 65 // the X server.
68 std::vector<gfx::Display> BuildDisplaysFromXRandRInfo(); 66 std::vector<gfx::Display> BuildDisplaysFromXRandRInfo();
(...skipping 19 matching lines...) Expand all
88 scoped_ptr<base::OneShotTimer> configure_timer_; 86 scoped_ptr<base::OneShotTimer> configure_timer_;
89 87
90 gfx::DisplayChangeNotifier change_notifier_; 88 gfx::DisplayChangeNotifier change_notifier_;
91 89
92 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11); 90 DISALLOW_COPY_AND_ASSIGN(DesktopScreenX11);
93 }; 91 };
94 92
95 } // namespace views 93 } // namespace views
96 94
97 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_ 95 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_SCREEN_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698