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

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

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: WIP Created 3 years, 8 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 void Restore(); 540 void Restore();
541 541
542 // Whether or not the window is maximized or minimized. 542 // Whether or not the window is maximized or minimized.
543 virtual bool IsMaximized() const; 543 virtual bool IsMaximized() const;
544 bool IsMinimized() const; 544 bool IsMinimized() const;
545 545
546 // Accessors for fullscreen state. 546 // Accessors for fullscreen state.
547 void SetFullscreen(bool fullscreen); 547 void SetFullscreen(bool fullscreen);
548 bool IsFullscreen() const; 548 bool IsFullscreen() const;
549 549
550 void Pin(bool trusted);
sky 2017/03/30 20:12:21 Pinning is specific to ChromeOS, so you shouldn't
Peng 2017/03/30 21:10:11 Done.
551 bool IsPinned() const;
552
550 // Sets the opacity of the widget. This may allow widgets behind the widget 553 // Sets the opacity of the widget. This may allow widgets behind the widget
551 // in the Z-order to become visible, depending on the capabilities of the 554 // in the Z-order to become visible, depending on the capabilities of the
552 // underlying windowing system. 555 // underlying windowing system.
553 void SetOpacity(float opacity); 556 void SetOpacity(float opacity);
554 557
555 // Flashes the frame of the window to draw attention to it. Currently only 558 // Flashes the frame of the window to draw attention to it. Currently only
556 // implemented on Windows for non-Aura. 559 // implemented on Windows for non-Aura.
557 void FlashFrame(bool flash); 560 void FlashFrame(bool flash);
558 561
559 // Returns the View at the root of the View hierarchy contained by this 562 // Returns the View at the root of the View hierarchy contained by this
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 bool movement_disabled_; 991 bool movement_disabled_;
989 992
990 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 993 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
991 994
992 DISALLOW_COPY_AND_ASSIGN(Widget); 995 DISALLOW_COPY_AND_ASSIGN(Widget);
993 }; 996 };
994 997
995 } // namespace views 998 } // namespace views
996 999
997 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 1000 #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