OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <algorithm> | 5 #include <algorithm> |
6 #include <set> | 6 #include <set> |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 widget->IsMouseEventsEnabled(); | 616 widget->IsMouseEventsEnabled(); |
617 widget->SetNativeWindowProperty("xx", widget); | 617 widget->SetNativeWindowProperty("xx", widget); |
618 widget->GetNativeWindowProperty("xx"); | 618 widget->GetNativeWindowProperty("xx"); |
619 widget->GetFocusTraversable(); | 619 widget->GetFocusTraversable(); |
620 widget->GetLayer(); | 620 widget->GetLayer(); |
621 widget->ReorderNativeViews(); | 621 widget->ReorderNativeViews(); |
622 widget->SetCapture(widget->GetRootView()); | 622 widget->SetCapture(widget->GetRootView()); |
623 widget->ReleaseCapture(); | 623 widget->ReleaseCapture(); |
624 widget->HasCapture(); | 624 widget->HasCapture(); |
625 widget->GetWorkAreaBoundsInScreen(); | 625 widget->GetWorkAreaBoundsInScreen(); |
| 626 widget->IsTranslucentWindowOpacitySupported(); |
626 } | 627 } |
627 | 628 |
628 private: | 629 private: |
629 DISALLOW_COPY_AND_ASSIGN(WidgetWithDestroyedNativeViewTest); | 630 DISALLOW_COPY_AND_ASSIGN(WidgetWithDestroyedNativeViewTest); |
630 }; | 631 }; |
631 | 632 |
632 TEST_F(WidgetWithDestroyedNativeViewTest, Test) { | 633 TEST_F(WidgetWithDestroyedNativeViewTest, Test) { |
633 { | 634 { |
634 Widget widget; | 635 Widget widget; |
635 Widget::InitParams params = CreateParams(Widget::InitParams::TYPE_POPUP); | 636 Widget::InitParams params = CreateParams(Widget::InitParams::TYPE_POPUP); |
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2271 child_widget.Init(child_params); | 2272 child_widget.Init(child_params); |
2272 child_widget.AddObserver(&observer); | 2273 child_widget.AddObserver(&observer); |
2273 child_widget.Show(); | 2274 child_widget.Show(); |
2274 | 2275 |
2275 parent_widget.CloseNow(); | 2276 parent_widget.CloseNow(); |
2276 } | 2277 } |
2277 #endif // !defined(OS_CHROMEOS) | 2278 #endif // !defined(OS_CHROMEOS) |
2278 | 2279 |
2279 } // namespace test | 2280 } // namespace test |
2280 } // namespace views | 2281 } // namespace views |
OLD | NEW |