Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: ui/views/widget/widget_unittest.cc

Issue 412033002: Merge 284026 "Add app.window.alphaEnabled() and onAlphaEnabledCh..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2062/src/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/widget.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/widget/widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698