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