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

Side by Side Diff: chrome/common/temp_scaffolding_stubs.cc

Issue 79070: createWindow api call. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "temp_scaffolding_stubs.h" 5 #include "temp_scaffolding_stubs.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 namespace download_util { 273 namespace download_util {
274 274
275 void DragDownload(const DownloadItem* download, SkBitmap* icon) { 275 void DragDownload(const DownloadItem* download, SkBitmap* icon) {
276 NOTIMPLEMENTED(); 276 NOTIMPLEMENTED();
277 } 277 }
278 278
279 } // namespace download_util 279 } // namespace download_util
280 280
281 void WindowSizer::GetBrowserWindowBounds(const std::wstring& app_name, 281 void WindowSizer::GetBrowserWindowBounds(const std::wstring& app_name,
282 const gfx::Rect& specified_bounds, 282 const gfx::Rect& specified_bounds,
283 Browser* browser,
283 gfx::Rect* window_bounds, 284 gfx::Rect* window_bounds,
284 bool* maximized) { 285 bool* maximized) {
285 // If we're given a bounds, use it (for things like tearing off tabs during 286 // If we're given a bounds, use it (for things like tearing off tabs during
286 // drags). If not, make up something reasonable until the rest of the 287 // drags). If not, make up something reasonable until the rest of the
287 // WindowSizer infrastructure is in place. 288 // WindowSizer infrastructure is in place.
288 *window_bounds = specified_bounds; 289 *window_bounds = specified_bounds;
289 if (specified_bounds.IsEmpty()) { 290 if (specified_bounds.IsEmpty()) {
290 *window_bounds = gfx::Rect(0, 0, 1024, 768); 291 *window_bounds = gfx::Rect(0, 0, 1024, 768);
291 } 292 }
292 } 293 }
OLDNEW
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.h ('k') | chrome/renderer/resources/extension_process_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698