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

Unified Diff: ui/views/widget/native_widget_aura.h

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/native_widget_aura.h
diff --git a/ui/views/widget/native_widget_aura.h b/ui/views/widget/native_widget_aura.h
index d09a77d57a2c788c5159154611978790e43abb09..862622a27a5e700abfe0be03275e861a43f994c4 100644
--- a/ui/views/widget/native_widget_aura.h
+++ b/ui/views/widget/native_widget_aura.h
@@ -177,11 +177,12 @@ class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate,
void SetInitialFocus();
#if defined(ENABLE_DIP)
- // Returns the monitor in which this widget is placed.
- aura::Monitor* GetMonitor() const;
+ // Returns the scale factor of the monitor in which this widget is placed.
+ float GetMonitorScaleFactor() const;
// Utility functions that convert point/size/rect between
// the monitor's coordinate system and the widget's coordinate system.
+ // TODO(oshima): Remove these once aura supports DIP coordinate system.
gfx::Point ConvertPointFromMonitor(const gfx::Point& point) const;
gfx::Size ConvertSizeFromMonitor(const gfx::Size& size) const;
gfx::Rect ConvertRectFromMonitor(const gfx::Rect& rect) const;

Powered by Google App Engine
This is Rietveld 408576698