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; |