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

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: Resync Created 3 years, 11 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/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;
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698