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 2828913003: Replace "nested message loop" with "nested run loop" in comments. (Closed)
Patch Set: rebase Created 3 years, 7 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
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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // Default is true. 458 // Default is true.
459 void SetVisibilityChangedAnimationsEnabled(bool value); 459 void SetVisibilityChangedAnimationsEnabled(bool value);
460 460
461 // Sets the duration of visibility change animations. 461 // Sets the duration of visibility change animations.
462 void SetVisibilityAnimationDuration(const base::TimeDelta& duration); 462 void SetVisibilityAnimationDuration(const base::TimeDelta& duration);
463 463
464 // Sets the visibility transitions that should animate. 464 // Sets the visibility transitions that should animate.
465 // Default behavior is to animate both show and hide. 465 // Default behavior is to animate both show and hide.
466 void SetVisibilityAnimationTransition(VisibilityTransition transition); 466 void SetVisibilityAnimationTransition(VisibilityTransition transition);
467 467
468 // Starts a nested message loop that moves the window. This can be used to 468 // Starts a nested run loop that moves the window. This can be used to
469 // start a window move operation from a mouse or touch event. This returns 469 // start a window move operation from a mouse or touch event. This returns
470 // when the move completes. |drag_offset| is the offset from the top left 470 // when the move completes. |drag_offset| is the offset from the top left
471 // corner of the window to the point where the cursor is dragging, and is used 471 // corner of the window to the point where the cursor is dragging, and is used
472 // to offset the bounds of the window from the cursor. 472 // to offset the bounds of the window from the cursor.
473 MoveLoopResult RunMoveLoop(const gfx::Vector2d& drag_offset, 473 MoveLoopResult RunMoveLoop(const gfx::Vector2d& drag_offset,
474 MoveLoopSource source, 474 MoveLoopSource source,
475 MoveLoopEscapeBehavior escape_behavior); 475 MoveLoopEscapeBehavior escape_behavior);
476 476
477 // Stops a previously started move loop. This is not immediate. 477 // Stops a previously started move loop. This is not immediate.
478 void EndMoveLoop(); 478 void EndMoveLoop();
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 bool movement_disabled_; 988 bool movement_disabled_;
989 989
990 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 990 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
991 991
992 DISALLOW_COPY_AND_ASSIGN(Widget); 992 DISALLOW_COPY_AND_ASSIGN(Widget);
993 }; 993 };
994 994
995 } // namespace views 995 } // namespace views
996 996
997 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 997 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h ('k') | ui/wm/public/window_move_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698