summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
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