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

Unified Diff: ash/wm/common/wm_lookup.h

Issue 1943603002: Makes ash/wm/common a library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 years, 7 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/wm/common/wm_layout_manager.h ('k') | ash/wm/common/wm_lookup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/wm_lookup.h
diff --git a/ash/wm/common/wm_lookup.h b/ash/wm/common/wm_lookup.h
new file mode 100644
index 0000000000000000000000000000000000000000..dfb953c6cf979715a9406c076acb91f69f2e30b2
--- /dev/null
+++ b/ash/wm/common/wm_lookup.h
@@ -0,0 +1,46 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_WM_COMMON_WM_LOOKUP_H_
+#define ASH_WM_COMMON_WM_LOOKUP_H_
+
+#include <stdint.h>
+
+#include "ash/wm/common/ash_wm_common_export.h"
+
+namespace views {
+class Widget;
+}
+
+namespace ash {
+namespace wm {
+
+class WmRootWindowController;
+class WmWindow;
+
+// WmLookup is used to lookup various wm types.
+class ASH_WM_COMMON_EXPORT WmLookup {
+ public:
+ static void Set(WmLookup* lookup);
+ static WmLookup* Get();
+
+ // Returns the WmRootWindowController with the specified display id, or null
+ // if there isn't one.
+ virtual WmRootWindowController* GetRootWindowControllerWithDisplayId(
+ int64_t id) = 0;
+
+ // Returns the WmWindow for the specified widget.
+ virtual WmWindow* GetWindowForWidget(views::Widget* widget) = 0;
+
+ protected:
+ virtual ~WmLookup() {}
+
+ private:
+ static WmLookup* instance_;
+};
+
+} // namespace wm
+} // namespace ash
+
+#endif // ASH_WM_COMMON_WM_LOOKUP_H_
« no previous file with comments | « ash/wm/common/wm_layout_manager.h ('k') | ash/wm/common/wm_lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698