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

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

Issue 2303963002: cros/ash: If the partial magnifier is active, do not consume input events if over palette views. (Closed)
Patch Set: Created 4 years, 3 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 dd7d1db018e02adad737a94f7bde37b0d474e02a..eba1ae2109c2e313a328274e91756bae715729e7 100644
--- a/ash/common/system/chromeos/palette/palette_utils.h
+++ b/ash/common/system/chromeos/palette/palette_utils.h
@@ -7,6 +7,10 @@
#include "ash/ash_export.h"
+namespace ui {
+class LocatedEvent;
+}
+
namespace ash {
// Returns true if the palette feature is enabled. The palette itself may have
@@ -16,6 +20,10 @@ ASH_EXPORT bool IsPaletteFeatureEnabled();
// Are experimental palette features enabled?
ASH_EXPORT bool ArePaletteExperimentalFeaturesEnabled();
+// Returns true if either the palette icon or the palette widget contain the
+// given point.
+ASH_EXPORT bool PaletteContainsEvent(ui::LocatedEvent* event);
+
} // namespace ash
#endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698