summaryrefslogtreecommitdiffstats
path: root/chrome/common/temp_scaffolding_stubs.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.cc')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index 181d4b1..abd26d8 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -369,3 +369,16 @@ void DragDownload(const DownloadItem* download, SkBitmap* icon) {
}
} // namespace download_util
+
+void WindowSizer::GetBrowserWindowBounds(const std::wstring& app_name,
+ const gfx::Rect& specified_bounds,
+ gfx::Rect* window_bounds,
+ bool* maximized) {
+ // If we're given a bounds, use it (for things like tearing off tabs during
+ // drags). If not, make up something reasonable until the rest of the
+ // WindowSizer infrastructure is in place.
+ *window_bounds = specified_bounds;
+ if (specified_bounds.IsEmpty()) {
+ *window_bounds = gfx::Rect(0, 0, 1024, 768);
+ }
+}