summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/star_toggle.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 23:51:38 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 23:51:38 +0000
commitc2dacc9ec41232903ba700c6aef5ef98bfcb8af8 (patch)
tree4aa4d7100862c64bdd92d70e6323001beb19edb7 /chrome/browser/views/star_toggle.cc
parentd66e710ec668e34271def44d7f0416260657171c (diff)
downloadchromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.zip
chromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.tar.gz
chromium_src-c2dacc9ec41232903ba700c6aef5ef98bfcb8af8.tar.bz2
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
Diffstat (limited to 'chrome/browser/views/star_toggle.cc')
-rw-r--r--chrome/browser/views/star_toggle.cc8
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;