diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-27 23:51:39 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-27 23:51:39 +0000 |
commit | 387f92a93e21e1fe1ef0ad9986b5751a847a2806 (patch) | |
tree | ce69fedb034b31911493c4dcec601784e8452171 /chrome/test | |
parent | 78a8a2ad5f8e7f8ce6a196429be8f11475dd075b (diff) | |
download | chromium_src-387f92a93e21e1fe1ef0ad9986b5751a847a2806.zip chromium_src-387f92a93e21e1fe1ef0ad9986b5751a847a2806.tar.gz chromium_src-387f92a93e21e1fe1ef0ad9986b5751a847a2806.tar.bz2 |
Aura: Support hovering restore & close buttons for full screen apps.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/9359022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/base/in_process_browser_test.cc | 12 | ||||
-rw-r--r-- | chrome/test/base/in_process_browser_test.h | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc index cd66c2e..5a0f074 100644 --- a/chrome/test/base/in_process_browser_test.cc +++ b/chrome/test/base/in_process_browser_test.cc @@ -243,6 +243,18 @@ Browser* InProcessBrowserTest::CreateBrowserForPopup(Profile* profile) { return browser; } +Browser* InProcessBrowserTest::CreateBrowserForApp( + const std::string& app_name, + Profile* profile) { + Browser* browser = Browser::CreateForApp( + Browser::TYPE_POPUP, + app_name, + gfx::Rect(), + profile); + AddBlankTabAndShow(browser); + return browser; +} + void InProcessBrowserTest::AddBlankTabAndShow(Browser* browser) { ui_test_utils::WindowedNotificationObserver observer( content::NOTIFICATION_LOAD_STOP, diff --git a/chrome/test/base/in_process_browser_test.h b/chrome/test/base/in_process_browser_test.h index 8b5df11..3638b57 100644 --- a/chrome/test/base/in_process_browser_test.h +++ b/chrome/test/base/in_process_browser_test.h @@ -142,6 +142,10 @@ class InProcessBrowserTest : public BrowserTestBase { // for the tab to finish loading, and shows the browser. Browser* CreateBrowserForPopup(Profile* profile); + // Creates a browser for an application and waits for it to load and shows + // the browser. + Browser* CreateBrowserForApp(const std::string& app_name, Profile* profile); + // Called from the various CreateBrowser methods to add a blank tab, wait for // the navigation to complete, and show the browser's window. void AddBlankTabAndShow(Browser* browser); |