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

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

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: x11 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
« ui/views/widget/widget.h ('K') | « 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
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->IsTranslucentWindowOpacitySupported();
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
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
OLDNEW
« ui/views/widget/widget.h ('K') | « ui/views/widget/widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698