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

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

Issue 2016203002: Widget opacity goes from 0 to 1, not 0 to 255. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 4 years, 6 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
« no previous file with comments | « ui/message_center/views/toast_contents_view.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 <memory> 6 #include <memory>
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 widget->Activate(); 643 widget->Activate();
644 widget->Deactivate(); 644 widget->Deactivate();
645 widget->IsActive(); 645 widget->IsActive();
646 widget->SetAlwaysOnTop(true); 646 widget->SetAlwaysOnTop(true);
647 widget->IsAlwaysOnTop(); 647 widget->IsAlwaysOnTop();
648 widget->Maximize(); 648 widget->Maximize();
649 widget->Minimize(); 649 widget->Minimize();
650 widget->Restore(); 650 widget->Restore();
651 widget->IsMaximized(); 651 widget->IsMaximized();
652 widget->IsFullscreen(); 652 widget->IsFullscreen();
653 widget->SetOpacity(0); 653 widget->SetOpacity(0.f);
654 widget->FlashFrame(true); 654 widget->FlashFrame(true);
655 widget->IsVisible(); 655 widget->IsVisible();
656 widget->GetThemeProvider(); 656 widget->GetThemeProvider();
657 widget->GetNativeTheme(); 657 widget->GetNativeTheme();
658 widget->GetFocusManager(); 658 widget->GetFocusManager();
659 widget->SchedulePaintInRect(gfx::Rect(0, 0, 1, 2)); 659 widget->SchedulePaintInRect(gfx::Rect(0, 0, 1, 2));
660 widget->IsMouseEventsEnabled(); 660 widget->IsMouseEventsEnabled();
661 widget->SetNativeWindowProperty("xx", widget); 661 widget->SetNativeWindowProperty("xx", widget);
662 widget->GetNativeWindowProperty("xx"); 662 widget->GetNativeWindowProperty("xx");
663 widget->GetFocusTraversable(); 663 widget->GetFocusTraversable();
(...skipping 3047 matching lines...) Expand 10 before | Expand all | Expand 10 after
3711 EXPECT_FALSE(!!IsWindow(owned_hwnd)); 3711 EXPECT_FALSE(!!IsWindow(owned_hwnd));
3712 EXPECT_TRUE(!!IsWindowEnabled(top_hwnd)); 3712 EXPECT_TRUE(!!IsWindowEnabled(top_hwnd));
3713 3713
3714 top_level_widget.CloseNow(); 3714 top_level_widget.CloseNow();
3715 } 3715 }
3716 3716
3717 #endif // defined(OS_WIN) 3717 #endif // defined(OS_WIN)
3718 3718
3719 } // namespace test 3719 } // namespace test
3720 } // namespace views 3720 } // namespace views
OLDNEW
« no previous file with comments | « ui/message_center/views/toast_contents_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698