| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
| 6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
| 7 | 7 |
| 8 #include <string> |
| 9 |
| 8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 10 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 11 #include "chrome/browser/download/test_download_shelf.h" | 13 #include "chrome/browser/download/test_download_shelf.h" |
| 12 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/browser_window.h" | 15 #include "chrome/browser/ui/browser_window.h" |
| 14 #include "chrome/test/base/test_location_bar.h" | 16 #include "chrome/test/base/test_location_bar.h" |
| 15 | 17 |
| 16 namespace extensions { | 18 namespace extensions { |
| 17 class Extension; | 19 class Extension; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 Profile* profile) OVERRIDE {} | 96 Profile* profile) OVERRIDE {} |
| 95 virtual void ToggleBookmarkBar() OVERRIDE {} | 97 virtual void ToggleBookmarkBar() OVERRIDE {} |
| 96 virtual void ShowUpdateChromeDialog() OVERRIDE {} | 98 virtual void ShowUpdateChromeDialog() OVERRIDE {} |
| 97 virtual void ShowBookmarkBubble(const GURL& url, | 99 virtual void ShowBookmarkBubble(const GURL& url, |
| 98 bool already_bookmarked) OVERRIDE {} | 100 bool already_bookmarked) OVERRIDE {} |
| 99 virtual void ShowChromeToMobileBubble() OVERRIDE {} | 101 virtual void ShowChromeToMobileBubble() OVERRIDE {} |
| 100 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 102 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 101 virtual void ShowOneClickSigninBubble( | 103 virtual void ShowOneClickSigninBubble( |
| 102 OneClickSigninBubbleType type, | 104 OneClickSigninBubbleType type, |
| 103 const string16& email, | 105 const string16& email, |
| 106 const string16& error_message, |
| 104 const StartSyncCallback& start_sync_callback) OVERRIDE {} | 107 const StartSyncCallback& start_sync_callback) OVERRIDE {} |
| 105 #endif | 108 #endif |
| 106 virtual bool IsDownloadShelfVisible() const OVERRIDE; | 109 virtual bool IsDownloadShelfVisible() const OVERRIDE; |
| 107 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; | 110 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; |
| 108 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE {} | 111 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE {} |
| 109 virtual void UserChangedTheme() OVERRIDE {} | 112 virtual void UserChangedTheme() OVERRIDE {} |
| 110 virtual int GetExtraRenderViewHeight() const OVERRIDE; | 113 virtual int GetExtraRenderViewHeight() const OVERRIDE; |
| 111 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE {} | 114 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE {} |
| 112 virtual void ShowWebsiteSettings(Profile* profile, | 115 virtual void ShowWebsiteSettings(Profile* profile, |
| 113 content::WebContents* web_contents, | 116 content::WebContents* web_contents, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 }; | 152 }; |
| 150 | 153 |
| 151 namespace chrome { | 154 namespace chrome { |
| 152 | 155 |
| 153 // Helper that handle the lifetime of TestBrowserWindow instances. | 156 // Helper that handle the lifetime of TestBrowserWindow instances. |
| 154 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); | 157 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); |
| 155 | 158 |
| 156 } // namespace chrome | 159 } // namespace chrome |
| 157 | 160 |
| 158 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 161 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
| OLD | NEW |