1 // Copyright 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "ui/aura/test/window_test_api.h" 6 7 #include "ui/aura/window.h" 8 9 namespace aura { 10 namespace test { 11 12 WindowTestApi::WindowTestApi(Window* window) : window_(window) { 13 } 14 15 bool WindowTestApi::OwnsLayer() const { 16 return window_->layer_owner_.get() != NULL; 17 } 18 19 bool WindowTestApi::ContainsMouse() const { 20 return window_->ContainsMouse(); 21 } 22 23 } // namespace test 24 } // namespace aura 25