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

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

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Fix test 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..5f254814ec6ca9f0d58e4fe39ae8dc5e4a28bada 100644
--- a/ash/common/system/chromeos/palette/palette_utils.h
+++ b/ash/common/system/chromeos/palette/palette_utils.h
@@ -12,10 +12,12 @@ class Point;
}
namespace ash {
+namespace palette_utils {
-// 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();
// Returns true if the palette should be shown on every display.
ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay();
@@ -24,6 +26,7 @@ ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay();
// given point (in screen space).
ASH_EXPORT bool PaletteContainsPointInScreen(const gfx::Point& point);
+} // namespace palette_utils
} // namespace ash
#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_
« no previous file with comments | « ash/common/system/chromeos/palette/palette_tray.cc ('k') | ash/common/system/chromeos/palette/palette_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698