Commit d2bad93f authored by sungmann.cho's avatar sungmann.cho Committed by Commit bot

[Mac] Set tooltip for the app menu button

A tooltip for the app menu button is currently not displayed, although it is
defined in Toolbar.xib. In viewDidLoad: of ToolbarController, we replace the
app menu button from the xib with an AppToolbarButton instance for the material
design, so we need to explicitly set a tooltip for it again.

BUG=716749

Review-Url: https://codereview.chromium.org/2851063003
Cr-Commit-Position: refs/heads/master@{#468366}
parent da7a05ce
......@@ -8,6 +8,8 @@
#include "chrome/app/vector_icons/vector_icons.h"
#import "chrome/browser/ui/cocoa/themed_window.h"
#import "chrome/browser/ui/cocoa/view_id_util.h"
#include "chrome/grit/chromium_strings.h"
#include "ui/base/l10n/l10n_util_mac.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/theme_provider.h"
#include "ui/gfx/color_palette.h"
......@@ -33,6 +35,7 @@
view_id_util::SetID(self, VIEW_ID_APP_MENU);
severity_ = AppMenuIconController::Severity::NONE;
type_ = AppMenuIconController::IconType::NONE;
[self setToolTip:l10n_util::GetNSString(IDS_APPMENU_TOOLTIP)];
}
- (const gfx::VectorIcon*)vectorIcon {
......
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