summaryrefslogtreecommitdiffstats
path: root/ash/launcher/app_launcher_button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/launcher/app_launcher_button.cc')
-rw-r--r--ash/launcher/app_launcher_button.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/ash/launcher/app_launcher_button.cc b/ash/launcher/app_launcher_button.cc
index 9f6c121..2f08304 100644
--- a/ash/launcher/app_launcher_button.cc
+++ b/ash/launcher/app_launcher_button.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -19,7 +19,6 @@ AppLauncherButton::AppLauncherButton(views::ButtonListener* listener,
LauncherButtonHost* host)
: views::ImageButton(listener),
host_(host) {
- SetPreferredSize(gfx::Size(kImageSize, kImageSize));
SetImageAlignment(views::ImageButton::ALIGN_CENTER,
views::ImageButton::ALIGN_MIDDLE);
}
@@ -76,5 +75,10 @@ bool AppLauncherButton::OnMouseDragged(const views::MouseEvent& event) {
return true;
}
+void AppLauncherButton::OnMouseExited(const views::MouseEvent& event) {
+ ImageButton::OnMouseExited(event);
+ host_->MouseExitedButton(this);
+}
+
} // namespace internal
} // namespace ash