summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 21:55:36 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 21:55:36 +0000
commite63227d4c84e1a4410a8b0e8d4f7a0462994e390 (patch)
tree3c703097e2bf7b0c093bba17cf5bea0e990e85a8 /chrome/common
parent475120563140c60d109b207cf77ca64e651005ad (diff)
downloadchromium_src-e63227d4c84e1a4410a8b0e8d4f7a0462994e390.zip
chromium_src-e63227d4c84e1a4410a8b0e8d4f7a0462994e390.tar.gz
chromium_src-e63227d4c84e1a4410a8b0e8d4f7a0462994e390.tar.bz2
Reverting 16796.
Review URL: http://codereview.chromium.org/113791 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16800 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc16
-rw-r--r--chrome/common/temp_scaffolding_stubs.h11
2 files changed, 27 insertions, 0 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index 4c05c9a..de4babc 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -293,6 +293,22 @@ void DragDownload(const DownloadItem* download, SkBitmap* icon) {
} // namespace download_util
+#if defined(OS_LINUX)
+void WindowSizer::GetBrowserWindowBounds(const std::wstring& app_name,
+ const gfx::Rect& specified_bounds,
+ Browser* browser,
+ 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);
+ }
+}
+#endif
+
#if defined(OS_MACOSX)
void HungRendererDialog::HideForTabContents(TabContents*) {
NOTIMPLEMENTED();
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index 3cb8bcb..b0b7d1a 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -345,6 +345,17 @@ class DockInfo {
};
#endif
+#if defined(OS_LINUX)
+class WindowSizer {
+ public:
+ static void GetBrowserWindowBounds(const std::wstring& app_name,
+ const gfx::Rect& specified_bounds,
+ Browser* browser,
+ gfx::Rect* window_bounds,
+ bool* maximized);
+};
+#endif
+
//---------------------------------------------------------------------------
// These stubs are for Profile