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

Side by Side 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: negative-width Created 7 years, 11 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 | « cc/draw_quad_unittest.cc ('k') | chrome/browser/ui/extensions/shell_window.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 CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/extensions/extension_function_dispatcher.h" 9 #include "chrome/browser/extensions/extension_function_dispatcher.h"
10 #include "chrome/browser/extensions/extension_keybinding_registry.h" 10 #include "chrome/browser/extensions/extension_keybinding_registry.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 }; 55 };
56 56
57 struct CreateParams { 57 struct CreateParams {
58 CreateParams(); 58 CreateParams();
59 ~CreateParams(); 59 ~CreateParams();
60 60
61 WindowType window_type; 61 WindowType window_type;
62 Frame frame; 62 Frame frame;
63 63
64 // Specify the initial content bounds of the window (excluding any window 64 // Specify the initial content bounds of the window (excluding any window
65 // decorations). INT_MIN designates 'unspecified' for any coordinate, and 65 // decorations). INT_MIN designates 'unspecified' for the position
66 // should be replaced with a default value. 66 // components, and 0 for the size components. When unspecified, they should
67 // be replaced with a default value.
67 gfx::Rect bounds; 68 gfx::Rect bounds;
68 69
69 gfx::Size minimum_size; 70 gfx::Size minimum_size;
70 gfx::Size maximum_size; 71 gfx::Size maximum_size;
71 72
72 std::string window_key; 73 std::string window_key;
73 74
74 // The process ID of the process that requested the create. 75 // The process ID of the process that requested the create.
75 int32 creator_process_id; 76 int32 creator_process_id;
76 77
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 GURL app_icon_url_; 246 GURL app_icon_url_;
246 247
247 scoped_ptr<NativeAppWindow> native_app_window_; 248 scoped_ptr<NativeAppWindow> native_app_window_;
248 249
249 base::WeakPtrFactory<ShellWindow> weak_ptr_factory_; 250 base::WeakPtrFactory<ShellWindow> weak_ptr_factory_;
250 251
251 DISALLOW_COPY_AND_ASSIGN(ShellWindow); 252 DISALLOW_COPY_AND_ASSIGN(ShellWindow);
252 }; 253 };
253 254
254 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 255 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
OLDNEW
« no previous file with comments | « cc/draw_quad_unittest.cc ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698