Fix "value possibly truncated" warnings on MSVC, net/disk_cache edition.
[chromium-blink-merge.git] / ui / views / test / widget_test_aura.cc
blob1b2dd139fc10fc2c06caee0c9f3b0847fcfd0462
1 // Copyright 2014 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.
5 #include "ui/views/test/widget_test.h"
7 #include "ui/aura/window.h"
8 #include "ui/aura/window_tree_host.h"
9 #include "ui/views/widget/widget.h"
11 namespace views {
12 namespace test {
14 // static
15 void WidgetTest::SimulateNativeDestroy(Widget* widget) {
16 delete widget->GetNativeView();
19 // static
20 bool WidgetTest::IsNativeWindowVisible(gfx::NativeWindow window) {
21 return window->IsVisible();
24 // static
25 ui::EventProcessor* WidgetTest::GetEventProcessor(Widget* widget) {
26 return widget->GetNativeWindow()->GetHost()->event_processor();
29 } // namespace test
30 } // namespace views