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

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

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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
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 <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 gfx::Rect GetWorkAreaBoundsInScreen() const; 719 gfx::Rect GetWorkAreaBoundsInScreen() const;
720 720
721 // Creates and dispatches synthesized mouse move event using the current 721 // Creates and dispatches synthesized mouse move event using the current
722 // mouse location to refresh hovering status in the widget. 722 // mouse location to refresh hovering status in the widget.
723 void SynthesizeMouseMoveEvent(); 723 void SynthesizeMouseMoveEvent();
724 724
725 // Called by our RootView after it has performed a Layout. Used to forward 725 // Called by our RootView after it has performed a Layout. Used to forward
726 // window sizing information to the window server on some platforms. 726 // window sizing information to the window server on some platforms.
727 void OnRootViewLayout(); 727 void OnRootViewLayout();
728 728
729 // Whether the widget can have a transparent background.
730 bool CanHaveAlphaEnabled() const;
sky 2014/07/16 15:14:54 This name is confusing. No where in widget do we h
jackhou1 2014/07/17 03:07:23 Done.
731
729 // Notification that our owner is closing. 732 // Notification that our owner is closing.
730 // NOTE: this is not invoked for aura as it's currently not needed there. 733 // NOTE: this is not invoked for aura as it's currently not needed there.
731 // Under aura menus close by way of activation getting reset when the owner 734 // Under aura menus close by way of activation getting reset when the owner
732 // closes. 735 // closes.
733 virtual void OnOwnerClosing(); 736 virtual void OnOwnerClosing();
734 737
735 // Overridden from NativeWidgetDelegate: 738 // Overridden from NativeWidgetDelegate:
736 virtual bool IsModal() const OVERRIDE; 739 virtual bool IsModal() const OVERRIDE;
737 virtual bool IsDialogBox() const OVERRIDE; 740 virtual bool IsDialogBox() const OVERRIDE;
738 virtual bool CanActivate() const OVERRIDE; 741 virtual bool CanActivate() const OVERRIDE;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 bool movement_disabled_; 931 bool movement_disabled_;
929 932
930 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 933 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
931 934
932 DISALLOW_COPY_AND_ASSIGN(Widget); 935 DISALLOW_COPY_AND_ASSIGN(Widget);
933 }; 936 };
934 937
935 } // namespace views 938 } // namespace views
936 939
937 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 940 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698