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

Side by Side Diff: ui/views/widget/widget.h

Issue 2009333002: Converts Widget::SetOpacity from char to float (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/views/widget/native_widget_private.h ('k') | ui/views/widget/widget.cc » ('j') | 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 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 virtual bool IsMaximized() const; 533 virtual bool IsMaximized() const;
534 bool IsMinimized() const; 534 bool IsMinimized() const;
535 535
536 // Accessors for fullscreen state. 536 // Accessors for fullscreen state.
537 void SetFullscreen(bool fullscreen); 537 void SetFullscreen(bool fullscreen);
538 bool IsFullscreen() const; 538 bool IsFullscreen() const;
539 539
540 // Sets the opacity of the widget. This may allow widgets behind the widget 540 // Sets the opacity of the widget. This may allow widgets behind the widget
541 // in the Z-order to become visible, depending on the capabilities of the 541 // in the Z-order to become visible, depending on the capabilities of the
542 // underlying windowing system. 542 // underlying windowing system.
543 void SetOpacity(unsigned char opacity); 543 void SetOpacity(float opacity);
544 544
545 // Flashes the frame of the window to draw attention to it. Currently only 545 // Flashes the frame of the window to draw attention to it. Currently only
546 // implemented on Windows for non-Aura. 546 // implemented on Windows for non-Aura.
547 void FlashFrame(bool flash); 547 void FlashFrame(bool flash);
548 548
549 // Returns the View at the root of the View hierarchy contained by this 549 // Returns the View at the root of the View hierarchy contained by this
550 // Widget. 550 // Widget.
551 View* GetRootView(); 551 View* GetRootView();
552 const View* GetRootView() const; 552 const View* GetRootView() const;
553 553
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 bool movement_disabled_; 973 bool movement_disabled_;
974 974
975 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 975 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
976 976
977 DISALLOW_COPY_AND_ASSIGN(Widget); 977 DISALLOW_COPY_AND_ASSIGN(Widget);
978 }; 978 };
979 979
980 } // namespace views 980 } // namespace views
981 981
982 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 982 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_private.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698