Commit 24f58db4 authored by sky@chromium.org's avatar sky@chromium.org

Adds a tooltip to the frame maximize button.

BUG=none
TEST=none
R=jamescook@chromium.org


Review URL: http://codereview.chromium.org/9834015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128259 0039d316-1c4b-4281-b951-d872f2087c98
parent c9b9df45
......@@ -174,6 +174,10 @@ This file contains the strings for ash.
Overflow Button
</message>
<message name="IDS_FRAME_MAXIMIZE_BUTTON_TOOLTIP" desc="Tooltip for the maximize/restore button in window frames in aura">
Pull down to minimize, left or right to tile
</message>
<!-- Status tray items -->
<message name="IDS_ASH_STATUS_TRAY_ACCESSIBLE_NAME" desc="The accessible name of the status tray.">
Status tray
......
......@@ -10,9 +10,11 @@
#include "ash/launcher/launcher.h"
#include "ash/wm/workspace/phantom_window_controller.h"
#include "ash/wm/workspace/snap_sizer.h"
#include "grit/ash_strings.h"
#include "grit/ui_resources.h"
#include "ui/aura/event.h"
#include "ui/aura/event_filter.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/screen.h"
......@@ -98,6 +100,7 @@ FrameMaximizeButton::FrameMaximizeButton(views::ButtonListener* listener,
snap_type_(SNAP_NONE) {
// TODO(sky): nuke this. It's temporary while we don't have good images.
SetImageAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
SetTooltipText(l10n_util::GetStringUTF16(IDS_FRAME_MAXIMIZE_BUTTON_TOOLTIP));
}
FrameMaximizeButton::~FrameMaximizeButton() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment