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

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

Issue 2276233002: ash/chromeos: Add shift-alt-p shortcut to open palette. (Closed)
Patch Set: Address comments 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
Index: chrome/browser/ui/ash/palette_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/palette_delegate_chromeos.cc b/chrome/browser/ui/ash/palette_delegate_chromeos.cc
index 3192f8b4bfe9ba1cef05121b3f5c968977d1497f..590d86d68ddcf9855c3189f781062e7fcf5a3cbe 100644
--- a/chrome/browser/ui/ash/palette_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/palette_delegate_chromeos.cc
@@ -134,6 +134,13 @@ bool PaletteDelegateChromeOS::ShouldAutoOpenPalette() {
return profile_->GetPrefs()->GetBoolean(prefs::kLaunchPaletteOnEjectEvent);
}
+bool PaletteDelegateChromeOS::ShouldShowPalette() {
+ if (!profile_)
+ return false;
+
+ return profile_->GetPrefs()->GetBoolean(prefs::kEnableStylusTools);
+}
+
void PaletteDelegateChromeOS::TakeScreenshot() {
auto* screenshot_delegate = ash::Shell::GetInstance()
->accelerator_controller_delegate()

Powered by Google App Engine
This is Rietveld 408576698