diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-04 22:50:14 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-04 22:50:14 +0000 |
commit | 85fd03e849a93bc6eb41da8224e79cabf125a6d8 (patch) | |
tree | dc21359989fb41344137244e3d6b4951f1c22a69 /chrome/test/base | |
parent | e65507c829ffaa26189f42c33a333609be1fbb3d (diff) | |
download | chromium_src-85fd03e849a93bc6eb41da8224e79cabf125a6d8.zip chromium_src-85fd03e849a93bc6eb41da8224e79cabf125a6d8.tar.gz chromium_src-85fd03e849a93bc6eb41da8224e79cabf125a6d8.tar.bz2 |
Constrained Windows Cocoa: Part 4 Refactor ConstrainedWindowSupport
Currently ConstrainedWindowMac and TabStripController are tightly coupled. This makes it harder to add the new constrained window UI along side the old UI.
To simplify things this CL refactors ConstrainedWindowSupport to be much simpler.
BUG=BUG=134584
TEST=
Review URL: https://chromiumcodereview.appspot.com/10871082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154832 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/base')
-rw-r--r-- | chrome/test/base/test_browser_window.cc | 4 | ||||
-rw-r--r-- | chrome/test/base/test_browser_window.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/chrome/test/base/test_browser_window.cc b/chrome/test/base/test_browser_window.cc index 7f2bd5b..55ad8cb 100644 --- a/chrome/test/base/test_browser_window.cc +++ b/chrome/test/base/test_browser_window.cc @@ -125,6 +125,10 @@ WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( return NEW_POPUP; } +bool TestBrowserWindow::IsInstantTabShowing() { + return false; +} + FindBar* TestBrowserWindow::CreateFindBar() { return NULL; } diff --git a/chrome/test/base/test_browser_window.h b/chrome/test/base/test_browser_window.h index 7f8e078..895c1d1 100644 --- a/chrome/test/base/test_browser_window.h +++ b/chrome/test/base/test_browser_window.h @@ -132,6 +132,7 @@ class TestBrowserWindow : public BrowserWindow { virtual void ShowInstant(TabContents* preview_contents) OVERRIDE {} virtual void HideInstant() OVERRIDE {} virtual gfx::Rect GetInstantBounds() OVERRIDE; + virtual bool IsInstantTabShowing() OVERRIDE; virtual WindowOpenDisposition GetDispositionForPopupBounds( const gfx::Rect& bounds) OVERRIDE; virtual FindBar* CreateFindBar() OVERRIDE; |