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

Unified Diff: ash/system/palette/palette_utils.h

Issue 2825383003: Fix stylus tools palette. (Closed)
Patch Set: Fix nits. Created 3 years, 7 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/system/palette/palette_tray.cc ('k') | ash/system/palette/palette_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/palette/palette_utils.h
diff --git a/ash/system/palette/palette_utils.h b/ash/system/palette/palette_utils.h
index 1137f90ef9eec461662498851c188bf0e6bee427..52d179b3333272fc79b1dbaa55f9ba2d6e115efd 100644
--- a/ash/system/palette/palette_utils.h
+++ b/ash/system/palette/palette_utils.h
@@ -22,6 +22,11 @@ ASH_EXPORT bool HasStylusInput();
// Returns true if the palette should be shown on every display.
ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay();
+// Returns true if the palette should be shown to the user. This happens when:
+// there is a stylus input, there is an internal display, and the user has not
+// disabled it in settings. This can be overridden by passing switches.
+ASH_EXPORT bool ShouldShowPalette();
+
// Returns true if either the palette icon or the palette widget contain the
// given point (in screen space).
ASH_EXPORT bool PaletteContainsPointInScreen(const gfx::Point& point);
« no previous file with comments | « ash/system/palette/palette_tray.cc ('k') | ash/system/palette/palette_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698