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

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: Address comments 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 f9fde489865b74bcd15e37a8e7b614fac97e6236..47c5bab46102c3de376c50b935b6d99852106523 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 gfx {
+class Point;
+}
+
namespace ash {
// Returns true if the palette feature is enabled. The palette itself may have
@@ -19,6 +23,10 @@ ASH_EXPORT bool ArePaletteExperimentalFeaturesEnabled();
// Returns true if the palette should be shown on every display.
ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay();
+// 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);
+
} // 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