From c2dacc9ec41232903ba700c6aef5ef98bfcb8af8 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 16 Oct 2008 23:51:38 +0000 Subject: Rename ChromeViews namespace to views http://crbug.com/2188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3495 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/star_toggle.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/views/star_toggle.cc') 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; -- cgit v1.1