Index: ui/aura/test/window_test_api.cc |
diff --git a/ui/aura/test/window_test_api.cc b/ui/aura/test/window_test_api.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..07073c1f8f5b2aef27d320ef874ef6c0a77f50f3 |
--- /dev/null |
+++ b/ui/aura/test/window_test_api.cc |
@@ -0,0 +1,24 @@ |
+// Copyright 2012 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. |
+ |
+#include "ui/aura/test/window_test_api.h" |
+ |
+#include "ui/aura/window.h" |
+ |
+namespace aura { |
+namespace test { |
+ |
+WindowTestApi::WindowTestApi(Window* window) : window_(window) { |
+} |
+ |
+bool WindowTestApi::OwnsLayer() const { |
+ return window_->layer_owner_.get() != NULL; |
+} |
+ |
+bool WindowTestApi::ContainsMouse() const { |
+ return window_->ContainsMouse(); |
+} |
+ |
+} // namespace test |
+} // namespace aura |