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

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

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Explicitly initialize properties to false Created 3 years, 10 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: ash/common/system/chromeos/palette/palette_utils.h
diff --git a/ash/common/system/chromeos/palette/palette_utils.h b/ash/common/system/chromeos/palette/palette_utils.h
index 06ee2ea1b648ecedef8e7ebe6461c04df68f38d0..b7da334caaa5cf4ea8f2e7b6e18d77b3dffa3715 100644
--- a/ash/common/system/chromeos/palette/palette_utils.h
+++ b/ash/common/system/chromeos/palette/palette_utils.h
@@ -13,9 +13,10 @@ class Point;
namespace ash {
-// Returns true if the palette feature is enabled. The palette itself may have
-// been disabled by the user.
-ASH_EXPORT bool IsPaletteFeatureEnabled();
+// Returns true if there is a stylus input device on the internal display. This
+// will return false even if there is a stylus input device until hardware
+// probing is complete (see ui::InputDeviceEventObserver).
+ASH_EXPORT bool HasStylusInput();
James Cook 2017/02/06 23:06:39 nit: The functions in this class should be in eith
jdufault 2017/02/08 02:06:21 Done.
// Returns true if the palette should be shown on every display.
ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay();

Powered by Google App Engine
This is Rietveld 408576698