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

Unified Diff: ash/common/wm_window.h

Issue 2075923002: mash: Convert FocusCycler to wm common types and move to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup 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
Index: ash/common/wm_window.h
diff --git a/ash/common/wm_window.h b/ash/common/wm_window.h
index 14cec7f071a882ee2c96880060fc7587af2a2c1f..691a7d770fcfbd550969396fcc9b2c97fce99956 100644
--- a/ash/common/wm_window.h
+++ b/ash/common/wm_window.h
@@ -31,6 +31,10 @@ namespace ui {
class Layer;
}
+namespace views {
+class Widget;
+}
+
namespace ash {
class WmLayoutManager;
@@ -203,6 +207,11 @@ class ASH_EXPORT WmWindow {
virtual void Hide() = 0;
virtual void Show() = 0;
+ // Returns the widget associated with this window, or null if not associated
+ // with a widget. Only ash system UI widgets are returned, not widgets created
+ // by the mus window manager code to show a non-client frame.
+ virtual views::Widget* GetWidget() = 0;
msw 2016/06/16 23:57:44 Hmm, Scott may have some advice here; but I guess
sky 2016/06/17 00:08:29 I'm ok with this, but I recommend a clearer name.
James Cook 2016/06/17 03:39:29 I only need the internal widget, so I went with Ge
+
// Requests the window to close and destroy itself. This is intended to
// forward to an associated widget.
virtual void CloseWidget() = 0;

Powered by Google App Engine
This is Rietveld 408576698