| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "chrome/browser/download/test_download_shelf.h" | 11 #include "chrome/browser/download/test_download_shelf.h" |
| 12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
| 14 #include "chrome/browser/ui/omnibox/location_bar.h" | 14 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 15 #include "chrome/browser/ui/translate/translate_bubble.h" |
| 15 | 16 |
| 16 class LocationBarTesting; | 17 class LocationBarTesting; |
| 17 class OmniboxView; | 18 class OmniboxView; |
| 18 | 19 |
| 19 namespace extensions { | 20 namespace extensions { |
| 20 class Extension; | 21 class Extension; |
| 21 } | 22 } |
| 22 | 23 |
| 23 // An implementation of BrowserWindow used for testing. TestBrowserWindow only | 24 // An implementation of BrowserWindow used for testing. TestBrowserWindow only |
| 24 // contains a valid LocationBar, all other getters return NULL. | 25 // contains a valid LocationBar, all other getters return NULL. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 virtual bool IsBookmarkBarAnimating() const OVERRIDE; | 98 virtual bool IsBookmarkBarAnimating() const OVERRIDE; |
| 98 virtual bool IsTabStripEditable() const OVERRIDE; | 99 virtual bool IsTabStripEditable() const OVERRIDE; |
| 99 virtual bool IsToolbarVisible() const OVERRIDE; | 100 virtual bool IsToolbarVisible() const OVERRIDE; |
| 100 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 101 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
| 101 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, | 102 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, |
| 102 Profile* profile) OVERRIDE {} | 103 Profile* profile) OVERRIDE {} |
| 103 virtual void ToggleBookmarkBar() OVERRIDE {} | 104 virtual void ToggleBookmarkBar() OVERRIDE {} |
| 104 virtual void ShowUpdateChromeDialog() OVERRIDE {} | 105 virtual void ShowUpdateChromeDialog() OVERRIDE {} |
| 105 virtual void ShowBookmarkBubble(const GURL& url, | 106 virtual void ShowBookmarkBubble(const GURL& url, |
| 106 bool already_bookmarked) OVERRIDE {} | 107 bool already_bookmarked) OVERRIDE {} |
| 108 virtual void ShowTranslateBubble(content::WebContents* contents, |
| 109 TranslateBubble::Type type) OVERRIDE {} |
| 107 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 110 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 108 virtual void ShowOneClickSigninBubble( | 111 virtual void ShowOneClickSigninBubble( |
| 109 OneClickSigninBubbleType type, | 112 OneClickSigninBubbleType type, |
| 110 const string16& email, | 113 const string16& email, |
| 111 const string16& error_message, | 114 const string16& error_message, |
| 112 const StartSyncCallback& start_sync_callback) OVERRIDE {} | 115 const StartSyncCallback& start_sync_callback) OVERRIDE {} |
| 113 #endif | 116 #endif |
| 114 virtual bool IsDownloadShelfVisible() const OVERRIDE; | 117 virtual bool IsDownloadShelfVisible() const OVERRIDE; |
| 115 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; | 118 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; |
| 116 virtual void ConfirmBrowserCloseWithPendingDownloads( | 119 virtual void ConfirmBrowserCloseWithPendingDownloads( |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 }; | 191 }; |
| 189 | 192 |
| 190 namespace chrome { | 193 namespace chrome { |
| 191 | 194 |
| 192 // Helper that handle the lifetime of TestBrowserWindow instances. | 195 // Helper that handle the lifetime of TestBrowserWindow instances. |
| 193 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); | 196 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); |
| 194 | 197 |
| 195 } // namespace chrome | 198 } // namespace chrome |
| 196 | 199 |
| 197 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 200 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
| OLD | NEW |