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. |