diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-20 23:07:41 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-20 23:07:41 +0000 |
commit | 5e49546581a5a4c2c02d718f9d6e3dbebd7bebc7 (patch) | |
tree | 2a908845ceef1a7df68ff47eed5f2bd54d12cc9e /chrome/browser/tabs/tab_strip_model_unittest.cc | |
parent | dcda464d91fb97423f5b551babffe786b24ee251 (diff) | |
download | chromium_src-5e49546581a5a4c2c02d718f9d6e3dbebd7bebc7.zip chromium_src-5e49546581a5a4c2c02d718f9d6e3dbebd7bebc7.tar.gz chromium_src-5e49546581a5a4c2c02d718f9d6e3dbebd7bebc7.tar.bz2 |
Adds various docking positions when dragging around a tab. I've added
the ability to dock to the following locations:
Maximize the window on drop.
Resize the window to fill up the left, bottom, or right half of the
monitor.
Tile the newly created window with an existing chrome window such that
the two are on top of each other and fill the height of the monitor,
or tiled such that they fill the width of the monitor.
The graphics suxor. Glen says he'll come up with something better once
its landed.
BUG=none
TEST=4628
Review URL: http://codereview.chromium.org/11325
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5797 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs/tab_strip_model_unittest.cc')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/tabs/tab_strip_model_unittest.cc b/chrome/browser/tabs/tab_strip_model_unittest.cc index 24c9b3c..071975f 100644 --- a/chrome/browser/tabs/tab_strip_model_unittest.cc +++ b/chrome/browser/tabs/tab_strip_model_unittest.cc @@ -4,6 +4,7 @@ #include "base/file_util.h" #include "base/path_service.h" +#include "chrome/browser/dock_info.h" #include "chrome/browser/dom_ui/new_tab_ui.h" #include "chrome/browser/navigation_controller.h" #include "chrome/browser/navigation_entry.h" @@ -994,7 +995,8 @@ class TabStripDummyDelegate : public TabStripModelDelegate { // Overridden from TabStripModelDelegate: virtual GURL GetBlankTabURL() const { return NewTabUIURL(); } virtual void CreateNewStripWithContents(TabContents* contents, - const gfx::Rect& window_bounds) {} + const gfx::Rect& window_bounds, + const DockInfo& dock_info) {} virtual int GetDragActions() const { return 0; } virtual TabContents* CreateTabContentsForURL( const GURL& url, |