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

Unified Diff: ui/base/ime/input_method_win.cc

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/l10n/l10n_util_win.cc » ('j') | ui/gfx/dpi.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_win.cc
diff --git a/ui/base/ime/input_method_win.cc b/ui/base/ime/input_method_win.cc
index f6bc4c099c6385b550face9d53b80033a5750b35..883f812080ee6b85e97e28f2c6eb9ea60a0a1b25 100644
--- a/ui/base/ime/input_method_win.cc
+++ b/ui/base/ime/input_method_win.cc
@@ -11,7 +11,7 @@
#include "ui/events/event_constants.h"
#include "ui/events/event_utils.h"
#include "ui/events/keycodes/keyboard_codes.h"
-#include "ui/gfx/win/dpi.h"
+#include "ui/gfx/dpi.h"
#include "ui/gfx/win/hwnd_util.h"
namespace ui {
@@ -158,7 +158,7 @@ void InputMethodWin::OnCaretBoundsChanged(const TextInputClient* client) {
// Tentatively assume that the returned value is DIP (Density Independent
// Pixel). See the comment in text_input_client.h and http://crbug.com/360334.
const gfx::Rect dip_screen_bounds(GetTextInputClient()->GetCaretBounds());
- const gfx::Rect screen_bounds = gfx::win::DIPToScreenRect(dip_screen_bounds);
+ const gfx::Rect screen_bounds = gfx::DIPToScreenRect(dip_screen_bounds);
HWND attached_window = GetAttachedWindowHandle(client);
// TODO(ime): see comment in TextInputClient::GetCaretBounds(), this
@@ -537,7 +537,7 @@ LRESULT InputMethodWin::OnQueryCharPosition(IMECHARPOSITION* char_positon) {
return 0;
dip_rect = client->GetCaretBounds();
}
- const gfx::Rect rect = gfx::win::DIPToScreenRect(dip_rect);
+ const gfx::Rect rect = gfx::DIPToScreenRect(dip_rect);
char_positon->pt.x = rect.x();
char_positon->pt.y = rect.y();
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/l10n/l10n_util_win.cc » ('j') | ui/gfx/dpi.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698