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

Unified Diff: ui/aura/test/window_test_api.cc

Issue 12087006: aura: Do not include test code in production code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win7_aura Created 7 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
« no previous file with comments | « ui/aura/test/window_test_api.h ('k') | ui/aura/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/aura/test/window_test_api.h ('k') | ui/aura/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698