| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |