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

Unified Diff: ash/common/system/chromeos/palette/palette_tray.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 | « ash/common/palette_delegate.h ('k') | ash/common/system/chromeos/palette/palette_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/palette/palette_tray.h
diff --git a/ash/common/system/chromeos/palette/palette_tray.h b/ash/common/system/chromeos/palette/palette_tray.h
index 5524ab5abc5a431015190ca70225784a8f8f852f..35069bb0f57b63ec9b010d072f7c1848346d308f 100644
--- a/ash/common/system/chromeos/palette/palette_tray.h
+++ b/ash/common/system/chromeos/palette/palette_tray.h
@@ -58,6 +58,10 @@ class ASH_EXPORT PaletteTray : public TrayBackgroundView,
// Returns true if the shelf should not autohide.
bool ShouldBlockShelfAutoHide() const;
+ // Opens up the palette if it is not already open. Returns true if the palette
+ // was opened.
+ bool ShowPalette();
+
private:
// views::TrayBubbleView::Delegate:
void BubbleViewDestroyed() override;
@@ -93,7 +97,6 @@ class ASH_EXPORT PaletteTray : public TrayBackgroundView,
// Called when the palette enabled pref has changed.
void OnPaletteEnabledPrefChanged(bool enabled);
- bool OpenBubble();
void AddToolsToView(views::View* host);
std::unique_ptr<PaletteToolManager> palette_tool_manager_;
« no previous file with comments | « ash/common/palette_delegate.h ('k') | ash/common/system/chromeos/palette/palette_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698