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

Unified Diff: chrome/browser/ui/extensions/shell_window.h

Issue 11410024: ui: Remove gfx::Size::ClampToNonNegative, prevent negative sizes always. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no negative sizes Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/extensions/shell_window.h
diff --git a/chrome/browser/ui/extensions/shell_window.h b/chrome/browser/ui/extensions/shell_window.h
index 33286a7a14ab18d9f24e395c33070579f0a97f23..a2c91d584fd49b4dff6bd56f4cbe2005099cbebd 100644
--- a/chrome/browser/ui/extensions/shell_window.h
+++ b/chrome/browser/ui/extensions/shell_window.h
@@ -55,8 +55,8 @@ class ShellWindow : public content::NotificationObserver,
Frame frame;
// Specify the initial bounds of the window. INT_MIN designates
- // 'unspecified' for any coordinate, and should be replaced with a default
- // value.
+ // 'unspecified' for the position components, and 0 for the size components.
+ // When unspecified, they should be replaced with a default value.
gfx::Rect bounds;
// Specify if bounds should be restored from a previous time.
bool restore_position;

Powered by Google App Engine
This is Rietveld 408576698