summaryrefslogtreecommitdiffstats
path: root/chrome/common/temp_scaffolding_stubs.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 22:55:28 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 22:55:28 +0000
commit4d34e2ef8022e6a7771c6f4cd171547fc4b60518 (patch)
treeb90d1071552813de90df3bbcd9cc82bd1202ac9a /chrome/common/temp_scaffolding_stubs.cc
parent122262403bda963a3bfd93aab68a3c2861de584f (diff)
downloadchromium_src-4d34e2ef8022e6a7771c6f4cd171547fc4b60518.zip
chromium_src-4d34e2ef8022e6a7771c6f4cd171547fc4b60518.tar.gz
chromium_src-4d34e2ef8022e6a7771c6f4cd171547fc4b60518.tar.bz2
Add a single monitor implementation of WindowSizer for Linux. (try 2)
BUG=10005 Review URL: http://codereview.chromium.org/115723 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16940 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.cc')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc27
1 files changed, 11 insertions, 16 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index 50aa826..f54b27f 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -8,6 +8,7 @@
#include <vector>
+#include "base/gfx/rect.h"
#include "base/logging.h"
#include "chrome/browser/automation/automation_provider.h"
#include "chrome/browser/download/download_request_dialog_delegate.h"
@@ -281,22 +282,6 @@ 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();
@@ -321,3 +306,13 @@ void ShowOptionsWindow(OptionsPage page,
NOTIMPLEMENTED();
}
#endif
+
+#if !defined(TOOLKIT_VIEWS)
+bool DockInfo::GetNewWindowBounds(gfx::Rect* new_window_bounds,
+ bool* maximize_new_window) const {
+ NOTIMPLEMENTED();
+ // Return a reasonable default
+ *new_window_bounds = gfx::Rect(640, 480);
+ return true;
+}
+#endif