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

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

Issue 9749003: Revert 127660 - WebUI TaskManager: Add method to set minimum window size on HTMLDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/webui/task_manager/task_manager_dialog.cc ('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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <stack> 10 #include <stack>
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // Returns the bounds of the Widget's client area in screen coordinates. 309 // Returns the bounds of the Widget's client area in screen coordinates.
310 gfx::Rect GetClientAreaScreenBounds() const; 310 gfx::Rect GetClientAreaScreenBounds() const;
311 311
312 // Retrieves the restored bounds for the window. 312 // Retrieves the restored bounds for the window.
313 gfx::Rect GetRestoredBounds() const; 313 gfx::Rect GetRestoredBounds() const;
314 314
315 // Sizes and/or places the widget to the specified bounds, size or position. 315 // Sizes and/or places the widget to the specified bounds, size or position.
316 void SetBounds(const gfx::Rect& bounds); 316 void SetBounds(const gfx::Rect& bounds);
317 void SetSize(const gfx::Size& size); 317 void SetSize(const gfx::Size& size);
318 318
319 // Sizes the window to the specified size and centerizes it.
320 void CenterWindow(const gfx::Size& size);
321
322 // Like SetBounds(), but ensures the Widget is fully visible on screen, 319 // Like SetBounds(), but ensures the Widget is fully visible on screen,
323 // resizing and/or repositioning as necessary. This is only useful for 320 // resizing and/or repositioning as necessary. This is only useful for
324 // non-child widgets. 321 // non-child widgets.
325 void SetBoundsConstrained(const gfx::Rect& bounds); 322 void SetBoundsConstrained(const gfx::Rect& bounds);
326 323
327 // Sets whether animations that occur when visibility is changed are enabled. 324 // Sets whether animations that occur when visibility is changed are enabled.
328 // Default is true. 325 // Default is true.
329 void SetVisibilityChangedAnimationsEnabled(bool value); 326 void SetVisibilityChangedAnimationsEnabled(bool value);
330 327
331 // Starts a nested message loop that moves the window. This can be used to 328 // Starts a nested message loop that moves the window. This can be used to
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 // duplicate move events even though the mouse hasn't moved. 779 // duplicate move events even though the mouse hasn't moved.
783 bool last_mouse_event_was_move_; 780 bool last_mouse_event_was_move_;
784 gfx::Point last_mouse_event_position_; 781 gfx::Point last_mouse_event_position_;
785 782
786 DISALLOW_COPY_AND_ASSIGN(Widget); 783 DISALLOW_COPY_AND_ASSIGN(Widget);
787 }; 784 };
788 785
789 } // namespace views 786 } // namespace views
790 787
791 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 788 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/task_manager/task_manager_dialog.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698