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

Unified Diff: ui/views/widget/desktop_aura/desktop_screen_x11.h

Issue 1534563002: Move to DesktopScreenX11::UpdateDeviceScaleFactor to TestApi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win build Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_screen_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_screen_x11.h
diff --git a/ui/views/widget/desktop_aura/desktop_screen_x11.h b/ui/views/widget/desktop_aura/desktop_screen_x11.h
index 38f40362e7dd6317aceb2512b0d9339b2e516670..6811bd28c1db043433cca28ec257c358025a5f23 100644
--- a/ui/views/widget/desktop_aura/desktop_screen_x11.h
+++ b/ui/views/widget/desktop_aura/desktop_screen_x11.h
@@ -22,6 +22,10 @@ typedef struct _XDisplay Display;
namespace views {
class DesktopScreenX11Test;
+namespace test {
+class DesktopScreenX11TestApi;
+}
+
// Our singleton screen implementation that talks to xrandr.
class VIEWS_EXPORT DesktopScreenX11 : public gfx::Screen,
public ui::PlatformEventDispatcher {
@@ -47,10 +51,9 @@ class VIEWS_EXPORT DesktopScreenX11 : public gfx::Screen,
bool CanDispatchEvent(const ui::PlatformEvent& event) override;
uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
- static void UpdateDeviceScaleFactorForTest();
-
private:
friend class DesktopScreenX11Test;
+ friend class test::DesktopScreenX11TestApi;
// Constructor used in tests.
DesktopScreenX11(const std::vector<gfx::Display>& test_displays);
« no previous file with comments | « ui/views/views.gyp ('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