summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/star_toggle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/star_toggle.cc')
-rw-r--r--chrome/browser/views/star_toggle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/star_toggle.cc b/chrome/browser/views/star_toggle.cc
index 8e34d61..43ebed3e 100644
--- a/chrome/browser/views/star_toggle.cc
+++ b/chrome/browser/views/star_toggle.cc
@@ -50,7 +50,7 @@ bool StarToggle::OnMouseDragged(const ChromeViews::MouseEvent& e) {
}
bool StarToggle::OnMousePressed(const ChromeViews::MouseEvent& e) {
- if (e.IsLeftMouseButton() && HitTest(WTL::CPoint(e.x(), e.y()))) {
+ if (e.IsLeftMouseButton() && HitTest(e.location())) {
RequestFocus();
return true;
}
@@ -59,7 +59,7 @@ bool StarToggle::OnMousePressed(const ChromeViews::MouseEvent& e) {
void StarToggle::OnMouseReleased(const ChromeViews::MouseEvent& e,
bool canceled) {
- if (e.IsLeftMouseButton() && HitTest(WTL::CPoint(e.x(), e.y())))
+ if (e.IsLeftMouseButton() && HitTest(e.location()))
SwitchState();
}