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

Unified Diff: ui/message_center/views/notification_view_unittest.cc

Issue 2595163002: Add origin() method on View and use it to simplify some callers. (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: ui/message_center/views/notification_view_unittest.cc
diff --git a/ui/message_center/views/notification_view_unittest.cc b/ui/message_center/views/notification_view_unittest.cc
index cbf4bac709f7424670def1514faf9f70bb8a212e..930ccc094f1f40a14ef0b9b25133b49cf8db755e 100644
--- a/ui/message_center/views/notification_view_unittest.cc
+++ b/ui/message_center/views/notification_view_unittest.cc
@@ -167,11 +167,11 @@ class NotificationViewTest : public views::ViewsTestBase,
std::vector<views::View*>::iterator current = vertical_order.begin();
std::vector<views::View*>::iterator last = current++;
while (current != vertical_order.end()) {
- gfx::Point last_point = (*last)->bounds().origin();
+ gfx::Point last_point = (*last)->origin();
views::View::ConvertPointToTarget(
(*last), notification_view(), &last_point);
- gfx::Point current_point = (*current)->bounds().origin();
+ gfx::Point current_point = (*current)->origin();
views::View::ConvertPointToTarget(
(*current), notification_view(), &current_point);

Powered by Google App Engine
This is Rietveld 408576698