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

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

Issue 2399993002: Remove (Native)Widget::StackBelow(). (Closed)
Patch Set: Created 4 years, 2 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 MoveLoopEscapeBehavior escape_behavior); 464 MoveLoopEscapeBehavior escape_behavior);
465 465
466 // Stops a previously started move loop. This is not immediate. 466 // Stops a previously started move loop. This is not immediate.
467 void EndMoveLoop(); 467 void EndMoveLoop();
468 468
469 // Places the widget in front of the specified widget in z-order. 469 // Places the widget in front of the specified widget in z-order.
470 void StackAboveWidget(Widget* widget); 470 void StackAboveWidget(Widget* widget);
471 void StackAbove(gfx::NativeView native_view); 471 void StackAbove(gfx::NativeView native_view);
472 void StackAtTop(); 472 void StackAtTop();
473 473
474 // Places the widget below the specified NativeView.
475 void StackBelow(gfx::NativeView native_view);
476
477 // Sets a shape on the widget. Passing a NULL |shape| reverts the widget to 474 // Sets a shape on the widget. Passing a NULL |shape| reverts the widget to
478 // be rectangular. 475 // be rectangular.
479 void SetShape(std::unique_ptr<SkRegion> shape); 476 void SetShape(std::unique_ptr<SkRegion> shape);
480 477
481 // Hides the widget then closes it after a return to the message loop. 478 // Hides the widget then closes it after a return to the message loop.
482 virtual void Close(); 479 virtual void Close();
483 480
484 // TODO(beng): Move off public API. 481 // TODO(beng): Move off public API.
485 // Closes the widget immediately. Compare to |Close|. This will destroy the 482 // Closes the widget immediately. Compare to |Close|. This will destroy the
486 // window handle associated with this Widget, so should not be called from 483 // window handle associated with this Widget, so should not be called from
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 bool movement_disabled_; 972 bool movement_disabled_;
976 973
977 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 974 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
978 975
979 DISALLOW_COPY_AND_ASSIGN(Widget); 976 DISALLOW_COPY_AND_ASSIGN(Widget);
980 }; 977 };
981 978
982 } // namespace views 979 } // namespace views
983 980
984 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 981 #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