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

Unified Diff: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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 | « chrome/browser/chromeos/status/data_promo_notification.cc ('k') | chrome/browser/ui/panels/panel_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc b/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
index 98a44b0f4dc31a939a665d88badbf01bdcd12697..8783a293faf471d28d654b73fcfc38b74370d846 100644
--- a/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
+++ b/chrome/browser/ui/omnibox/omnibox_view_browsertest.cc
@@ -1281,7 +1281,7 @@ class OmniboxViewTest : public InProcessBrowserTest,
// Move the mouse to the center of the browser window and left-click.
void ClickBrowserWindowCenter() {
ASSERT_TRUE(ui_test_utils::SendMouseMoveSync(
- GetBrowserView()->GetScreenBounds().CenterPoint()));
+ GetBrowserView()->GetBoundsInScreen().CenterPoint()));
ASSERT_TRUE(ui_test_utils::SendMouseEventsSync(
ui_controls::LEFT, ui_controls::DOWN));
ASSERT_TRUE(ui_test_utils::SendMouseEventsSync(
@@ -1294,7 +1294,7 @@ class OmniboxViewTest : public InProcessBrowserTest,
void ClickFocusViewOrigin(ui_controls::MouseButton button,
const gfx::Point& press_offset,
const gfx::Point& release_offset) {
- gfx::Point focus_view_origin = GetFocusView()->GetScreenBounds().origin();
+ gfx::Point focus_view_origin = GetFocusView()->GetBoundsInScreen().origin();
gfx::Point press_point = focus_view_origin;
press_point.Offset(press_offset.x(), press_offset.y());
ASSERT_TRUE(ui_test_utils::SendMouseMoveSync(press_point));
« no previous file with comments | « chrome/browser/chromeos/status/data_promo_notification.cc ('k') | chrome/browser/ui/panels/panel_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698