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

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

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
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.cc ('k') | chrome/browser/ui/ash/palette_delegate_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/palette_delegate_chromeos.h
diff --git a/chrome/browser/ui/ash/palette_delegate_chromeos.h b/chrome/browser/ui/ash/palette_delegate_chromeos.h
index f5b216a155f7b0a05843d495224646e9fbca720e..9897c497104ad36cb7320f2de58b00e8ccee4e59 100644
--- a/chrome/browser/ui/ash/palette_delegate_chromeos.h
+++ b/chrome/browser/ui/ash/palette_delegate_chromeos.h
@@ -31,10 +31,15 @@ class PaletteDelegateChromeOS : public ash::PaletteDelegate,
public ash::SessionStateObserver,
public content::NotificationObserver {
public:
- PaletteDelegateChromeOS();
+ // Attempts to create a palette delegate. This will return null if the palette
+ // feature is not enabled.
+ static std::unique_ptr<PaletteDelegateChromeOS> Create();
+
~PaletteDelegateChromeOS() override;
private:
+ PaletteDelegateChromeOS();
+
// ash::PaletteDelegate:
std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener(
const EnableListener& on_state_changed) override;
@@ -44,6 +49,7 @@ class PaletteDelegateChromeOS : public ash::PaletteDelegate,
void SetStylusStateChangedCallback(
const OnStylusStateChangedCallback& on_stylus_state_changed) override;
bool ShouldAutoOpenPalette() override;
+ bool ShouldShowPalette() override;
void TakeScreenshot() override;
void TakePartialScreenshot() override;
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.cc ('k') | chrome/browser/ui/ash/palette_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698