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

Unified Diff: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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: chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
diff --git a/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc b/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
index 4d125beb00cd3204defc78398d68e74e4cfce1bc..abb69eaa2c86729896c6f30d640970b78fc57c44 100644
--- a/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
+++ b/chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.cc
@@ -56,7 +56,7 @@ const char kOnTextInputTypeChanged[] =
// The default position of the keyboard widget should be at the bottom,
// spanning the entire width of the root window.
gfx::Rect GetKeyboardPosition(int height) {
- gfx::Rect area = gfx::Screen::GetMonitorAreaNearestPoint(gfx::Point());
+ gfx::Rect area = gfx::Screen::GetPrimaryMonitor().bounds();
return gfx::Rect(area.x(), area.y() + area.height() - height,
area.width(), height);
}
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller2_interactive_uitest.cc ('k') | chrome/browser/ui/window_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698