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

Unified Diff: ui/aura/env.h

Issue 2539363005: Converts ash to use aura-mus (Closed)
Patch Set: merge Created 4 years 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: ui/aura/env.h
diff --git a/ui/aura/env.h b/ui/aura/env.h
index 274c9e74bc765e4a21dc8fae34dc8b8cce4f2987..19678abee67a4ff356f5fef7b33ae0ade59b7ecc 100644
--- a/ui/aura/env.h
+++ b/ui/aura/env.h
@@ -55,6 +55,8 @@ class AURA_EXPORT Env : public ui::EventTarget, public base::SupportsUserData {
static Env* GetInstance();
static Env* GetInstanceDontCreate();
+ Mode mode() const { return mode_; }
+
// Called internally to create the appropriate WindowPort implementation.
std::unique_ptr<WindowPort> CreateWindowPort(Window* window);
@@ -87,6 +89,7 @@ class AURA_EXPORT Env : public ui::EventTarget, public base::SupportsUserData {
// See CreateInstance() for description.
void SetWindowTreeClient(WindowTreeClient* window_tree_client);
+ bool HasWindowTreeClient() const { return window_tree_client_ != nullptr; }
// Sets the active FocusClient and the window the FocusClient is associated
// with. |window| is not necessarily the window that actually has focus.

Powered by Google App Engine
This is Rietveld 408576698