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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 widget->IsMouseEventsEnabled(); | 617 widget->IsMouseEventsEnabled(); |
618 widget->SetNativeWindowProperty("xx", widget); | 618 widget->SetNativeWindowProperty("xx", widget); |
619 widget->GetNativeWindowProperty("xx"); | 619 widget->GetNativeWindowProperty("xx"); |
620 widget->GetFocusTraversable(); | 620 widget->GetFocusTraversable(); |
621 widget->GetLayer(); | 621 widget->GetLayer(); |
622 widget->ReorderNativeViews(); | 622 widget->ReorderNativeViews(); |
623 widget->SetCapture(widget->GetRootView()); | 623 widget->SetCapture(widget->GetRootView()); |
624 widget->ReleaseCapture(); | 624 widget->ReleaseCapture(); |
625 widget->HasCapture(); | 625 widget->HasCapture(); |
626 widget->GetWorkAreaBoundsInScreen(); | 626 widget->GetWorkAreaBoundsInScreen(); |
| 627 widget->CanHaveAlphaEnabled(); |
627 } | 628 } |
628 | 629 |
629 private: | 630 private: |
630 DISALLOW_COPY_AND_ASSIGN(WidgetWithDestroyedNativeViewTest); | 631 DISALLOW_COPY_AND_ASSIGN(WidgetWithDestroyedNativeViewTest); |
631 }; | 632 }; |
632 | 633 |
633 TEST_F(WidgetWithDestroyedNativeViewTest, Test) { | 634 TEST_F(WidgetWithDestroyedNativeViewTest, Test) { |
634 { | 635 { |
635 Widget widget; | 636 Widget widget; |
636 Widget::InitParams params = CreateParams(Widget::InitParams::TYPE_POPUP); | 637 Widget::InitParams params = CreateParams(Widget::InitParams::TYPE_POPUP); |
(...skipping 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2382 child_widget.Init(child_params); | 2383 child_widget.Init(child_params); |
2383 child_widget.AddObserver(&observer); | 2384 child_widget.AddObserver(&observer); |
2384 child_widget.Show(); | 2385 child_widget.Show(); |
2385 | 2386 |
2386 parent_widget.CloseNow(); | 2387 parent_widget.CloseNow(); |
2387 } | 2388 } |
2388 #endif // !defined(OS_CHROMEOS) | 2389 #endif // !defined(OS_CHROMEOS) |
2389 | 2390 |
2390 } // namespace test | 2391 } // namespace test |
2391 } // namespace views | 2392 } // namespace views |
OLD | NEW |