Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1543)

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 2216933003: Implement the palette help and options buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@palette-delegate
Patch Set: Address nit Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.h ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index 4ed3cf92f62311f26b5209367cbb323b8cf01b6b..904de32c1c20ba2169a61f01df6fcb5297f488c8 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -136,6 +136,7 @@ const int kSessionLengthLimitMaxMs = 24 * 60 * 60 * 1000; // 24 hours.
const char kDisplaySettingsSubPageName[] = "display";
const char kDisplayOverscanSettingsSubPageName[] = "displayOverscan";
+const char kPaletteSettingsSubPageName[] = "note-overlay";
void ExtractIMEInfo(const input_method::InputMethodDescriptor& ime,
const input_method::InputMethodUtil& util,
@@ -520,6 +521,18 @@ void SystemTrayDelegateChromeOS::ShowAccessibilitySettings() {
ShowSettingsSubPageForActiveUser(sub_page);
}
+void SystemTrayDelegateChromeOS::ShowPaletteHelp() {
+ chrome::ScopedTabbedBrowserDisplayer displayer(
+ ProfileManager::GetActiveUserProfile());
+ chrome::ShowSingletonTab(displayer.browser(),
+ GURL(chrome::kChromePaletteHelpURL));
+}
+
+void SystemTrayDelegateChromeOS::ShowPaletteSettings() {
+ content::RecordAction(base::UserMetricsAction("ShowPaletteOptions"));
+ ShowSettingsSubPageForActiveUser(kPaletteSettingsSubPageName);
+}
+
void SystemTrayDelegateChromeOS::ShowPublicAccountInfo() {
chrome::ScopedTabbedBrowserDisplayer displayer(
ProfileManager::GetActiveUserProfile());
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.h ('k') | chrome/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698