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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2593323002: Use the physical-pixel space for native IME on linux platform. (Closed)
Patch Set: Created 4 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index e09bf33cdb434d959f8980dd36dd4a34b176020f..5a92cb68bde5d665375c702f8d469d55bb0c1e45 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1288,6 +1288,11 @@ gfx::Rect RenderWidgetHostViewAura::ConvertRectFromScreen(
return rect;
}
+float RenderWidgetHostViewAura::GetScaleFactor() const {
+ return display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(window_).device_scale_factor();
sadrul 2016/12/22 01:30:22 just return |device_scale_factor_|?
Shu Chen 2016/12/22 03:02:27 Ah, I didn't notice that. Thanks for pointing it o
+}
+
gfx::Rect RenderWidgetHostViewAura::GetCaretBounds() const {
if (!text_input_manager_ || !text_input_manager_->GetActiveWidget())
return gfx::Rect();

Powered by Google App Engine
This is Rietveld 408576698