| Index: ui/views/test/widget_test_aura.cc
|
| diff --git a/ui/views/test/widget_test_aura.cc b/ui/views/test/widget_test_aura.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1b2dd139fc10fc2c06caee0c9f3b0847fcfd0462
|
| --- /dev/null
|
| +++ b/ui/views/test/widget_test_aura.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2014 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/views/test/widget_test.h"
|
| +
|
| +#include "ui/aura/window.h"
|
| +#include "ui/aura/window_tree_host.h"
|
| +#include "ui/views/widget/widget.h"
|
| +
|
| +namespace views {
|
| +namespace test {
|
| +
|
| +// static
|
| +void WidgetTest::SimulateNativeDestroy(Widget* widget) {
|
| + delete widget->GetNativeView();
|
| +}
|
| +
|
| +// static
|
| +bool WidgetTest::IsNativeWindowVisible(gfx::NativeWindow window) {
|
| + return window->IsVisible();
|
| +}
|
| +
|
| +// static
|
| +ui::EventProcessor* WidgetTest::GetEventProcessor(Widget* widget) {
|
| + return widget->GetNativeWindow()->GetHost()->event_processor();
|
| +}
|
| +
|
| +} // namespace test
|
| +} // namespace views
|
|
|