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

Unified Diff: ash/common/system/chromeos/palette/palette_tray.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
« no previous file with comments | « no previous file | ash/common/system/chromeos/palette/palette_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/palette/palette_tray.h
diff --git a/ash/common/system/chromeos/palette/palette_tray.h b/ash/common/system/chromeos/palette/palette_tray.h
index ad5dd9ecc66edda9425a804b3885bb8130a5861f..a4b929be11f0378706c2dc683a933c626429be19 100644
--- a/ash/common/system/chromeos/palette/palette_tray.h
+++ b/ash/common/system/chromeos/palette/palette_tray.h
@@ -17,6 +17,10 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+namespace gfx {
+class Point;
+}
+
namespace views {
class ImageView;
class Widget;
@@ -65,6 +69,10 @@ class ASH_EXPORT PaletteTray : public TrayBackgroundView,
// was opened.
bool ShowPalette();
+ // Returns true if the palette tray contains the given point. This is useful
+ // for determining if an event should be propagated through to the palette.
+ bool ContainsPointInScreen(const gfx::Point& point);
+
private:
// views::TrayBubbleView::Delegate:
void BubbleViewDestroyed() override;
« no previous file with comments | « no previous file | ash/common/system/chromeos/palette/palette_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698