diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 19:24:31 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 19:24:31 +0000 |
commit | 2d46c8462c1c9104c100ee1f3414db754b897a8f (patch) | |
tree | d97575e12d73eaee70516a069bebcde26804a28c /chrome/browser/tabs | |
parent | 5190d28cbce355d98236bd06beee5099f4da3790 (diff) | |
download | chromium_src-2d46c8462c1c9104c100ee1f3414db754b897a8f.zip chromium_src-2d46c8462c1c9104c100ee1f3414db754b897a8f.tar.gz chromium_src-2d46c8462c1c9104c100ee1f3414db754b897a8f.tar.bz2 |
Rid most of the Browser object of HWND dependencies.
Review URL: http://codereview.chromium.org/10929
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.cc | 4 | ||||
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.h | 9 |
2 files changed, 5 insertions, 8 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc index a7bd855..ac5b2dc 100644 --- a/chrome/browser/tabs/tab_strip_model.cc +++ b/chrome/browser/tabs/tab_strip_model.cc @@ -406,9 +406,9 @@ void TabStripModel::SelectLastTab() { } void TabStripModel::TearOffTabContents(TabContents* detached_contents, - const gfx::Point& drop_point) { + const gfx::Rect& window_bounds) { DCHECK(detached_contents); - delegate_->CreateNewStripWithContents(detached_contents, drop_point); + delegate_->CreateNewStripWithContents(detached_contents, window_bounds); } // Context menu functions. diff --git a/chrome/browser/tabs/tab_strip_model.h b/chrome/browser/tabs/tab_strip_model.h index bd93a96..ebdec91 100644 --- a/chrome/browser/tabs/tab_strip_model.h +++ b/chrome/browser/tabs/tab_strip_model.h @@ -99,12 +99,9 @@ class TabStripModelDelegate { virtual GURL GetBlankTabURL() const = 0; // Ask for a new TabStripModel to be created and the given tab contents to - // be added to it. Its presentation (e.g. a browser window) anchored at the - // specified creation point. It is left up to the delegate to decide how to - // size the window. ass an empty point (0, 0) to allow the delegate to decide - // where to position the window. + // be added to it. Its size and position are reflected in |window_bounds|. virtual void CreateNewStripWithContents(TabContents* contents, - const gfx::Point& creation_point) = 0; + const gfx::Rect& window_bounds) = 0; enum { TAB_MOVE_ACTION = 1, @@ -370,7 +367,7 @@ class TabStripModel : public NotificationObserver { // The specified contents should be opened in a new tabstrip. void TearOffTabContents(TabContents* detached_contents, - const gfx::Point& drop_point); + const gfx::Rect& window_bounds); // Context menu functions. enum ContextMenuCommand { |