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

Unified Diff: ash/common/shelf/wm_shelf.h

Issue 2109193002: mash: Convert StatusAreaWidgetDelegate to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « ash/aura/wm_shelf_aura.cc ('k') | ash/common/system/status_area_widget_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/wm_shelf.h
diff --git a/ash/common/shelf/wm_shelf.h b/ash/common/shelf/wm_shelf.h
index 198f9cf27f5b42f0a182b5893db2cb5f97b503f8..1e7ab27bfebb3bbdcbcbe3e6c12fa65252a91c53 100644
--- a/ash/common/shelf/wm_shelf.h
+++ b/ash/common/shelf/wm_shelf.h
@@ -64,6 +64,13 @@ class ASH_EXPORT WmShelf {
// no item for the specified window an empty rect is returned.
virtual gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) = 0;
+ // Handles a gesture |event| coming from a |target_window| outside the shelf
+ // (e.g. the status area widget). Allows support for behaviors like toggling
+ // auto-hide with an edge swipe, even if that gesture event hits another
+ // window. Returns true if the event was handled.
+ virtual bool ProcessGestureEvent(const ui::GestureEvent& event,
+ WmWindow* target_window) = 0;
+
// TODO(jamescook): Nuke when ash_sysui is removed. http://crbug.com/621112
virtual void UpdateAutoHideForMouseEvent(ui::MouseEvent* event) = 0;
virtual void UpdateAutoHideForGestureEvent(ui::GestureEvent* event) = 0;
« no previous file with comments | « ash/aura/wm_shelf_aura.cc ('k') | ash/common/system/status_area_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698