summaryrefslogtreecommitdiffstats
path: root/views/controls/button/button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/button/button.cc')
-rw-r--r--views/controls/button/button.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/views/controls/button/button.cc b/views/controls/button/button.cc
index 504a2f5..1183951 100644
--- a/views/controls/button/button.cc
+++ b/views/controls/button/button.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -20,12 +20,12 @@ void Button::SetTooltipText(const std::wstring& tooltip_text) {
////////////////////////////////////////////////////////////////////////////////
// Button, View overrides:
-bool Button::GetTooltipText(int x, int y, std::wstring* tooltip) {
- if (!tooltip_text_.empty()) {
- *tooltip = tooltip_text_;
- return true;
- }
- return false;
+bool Button::GetTooltipText(const gfx::Point& p, std::wstring* tooltip) {
+ if (tooltip_text_.empty())
+ return false;
+
+ *tooltip = tooltip_text_;
+ return true;
}
bool Button::GetAccessibleKeyboardShortcut(std::wstring* shortcut) {