diff options
Diffstat (limited to 'chrome/browser/views/star_toggle.cc')
-rw-r--r-- | chrome/browser/views/star_toggle.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/views/star_toggle.cc b/chrome/browser/views/star_toggle.cc index d51b440..4f986a3 100644 --- a/chrome/browser/views/star_toggle.cc +++ b/chrome/browser/views/star_toggle.cc @@ -44,11 +44,11 @@ gfx::Size StarToggle::GetPreferredSize() { return gfx::Size(state_off_->width(), state_off_->height()); } -bool StarToggle::OnMouseDragged(const ChromeViews::MouseEvent& e) { +bool StarToggle::OnMouseDragged(const views::MouseEvent& e) { return e.IsLeftMouseButton(); } -bool StarToggle::OnMousePressed(const ChromeViews::MouseEvent& e) { +bool StarToggle::OnMousePressed(const views::MouseEvent& e) { if (e.IsLeftMouseButton() && HitTest(e.location())) { RequestFocus(); return true; @@ -56,13 +56,13 @@ bool StarToggle::OnMousePressed(const ChromeViews::MouseEvent& e) { return false; } -void StarToggle::OnMouseReleased(const ChromeViews::MouseEvent& e, +void StarToggle::OnMouseReleased(const views::MouseEvent& e, bool canceled) { if (e.IsLeftMouseButton() && HitTest(e.location())) SwitchState(); } -bool StarToggle::OnKeyPressed(const ChromeViews::KeyEvent& e) { +bool StarToggle::OnKeyPressed(const views::KeyEvent& e) { if ((e.GetCharacter() == L' ') || (e.GetCharacter() == L'\n')) { SwitchState(); return true; |