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

Unified Diff: chromecast/graphics/cast_window_manager.h

Issue 2636303002: [Chromecast] Add support for z-order and window focus. (Closed)
Patch Set: Simplifications and unit tests. Created 3 years, 11 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: chromecast/graphics/cast_window_manager.h
diff --git a/chromecast/graphics/cast_window_manager.h b/chromecast/graphics/cast_window_manager.h
index bf2dc4b63f3a292c79bd76465b361db176441208..2302c48944d547e09fad92a6564383e1526265fc 100644
--- a/chromecast/graphics/cast_window_manager.h
+++ b/chromecast/graphics/cast_window_manager.h
@@ -18,6 +18,17 @@ namespace chromecast {
// should exist per platform root window (e.g., in Ozone, one per Ozone window).
class CastWindowManager {
public:
+ // Note: these window IDs are ordered by z-order.
+ enum WindowId {
+ BOTTOM = -1,
+ APP = BOTTOM,
+ DEBUG_OVERLAY,
+ INFO_OVERLAY,
+ SOFT_KEYBOARD,
+ VOLUME,
+ TOP = VOLUME
+ };
+
// Creates the platform-specific CastWindowManager.
static std::unique_ptr<CastWindowManager> Create(bool enable_input);

Powered by Google App Engine
This is Rietveld 408576698