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

Unified Diff: chrome/browser/ui/views/screen_capture_notification_ui_views.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: chrome/browser/ui/views/screen_capture_notification_ui_views.cc
diff --git a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
index 3bb3727ebc66f231d11e2503451a67ef65bea930..86608704805e7c14f774a4ddfdd6c57fc1392fad 100644
--- a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
+++ b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
@@ -62,7 +62,7 @@ class NotificationBarClientView : public views::ClientView {
if (!bounds().Contains(point))
return HTNOWHERE;
// The whole window is HTCAPTION, except the |rect_|.
- if (rect_.Contains(gfx::PointAtOffsetFromOrigin(point - bounds().origin())))
+ if (rect_.Contains(gfx::PointAtOffsetFromOrigin(point - origin())))
return HTCLIENT;
return HTCAPTION;

Powered by Google App Engine
This is Rietveld 408576698