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/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.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/location_bar/location_bar.h" | 14 #include "chrome/browser/ui/location_bar/location_bar.h" |
| 15 #include "chrome/common/features.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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 const WebApplicationInfo& web_app_info, | 102 const WebApplicationInfo& web_app_info, |
102 const ShowBookmarkAppBubbleCallback& callback) override {} | 103 const ShowBookmarkAppBubbleCallback& callback) override {} |
103 autofill::SaveCardBubbleView* ShowSaveCreditCardBubble( | 104 autofill::SaveCardBubbleView* ShowSaveCreditCardBubble( |
104 content::WebContents* contents, | 105 content::WebContents* contents, |
105 autofill::SaveCardBubbleController* controller, | 106 autofill::SaveCardBubbleController* controller, |
106 bool user_gesture) override; | 107 bool user_gesture) override; |
107 void ShowTranslateBubble(content::WebContents* contents, | 108 void ShowTranslateBubble(content::WebContents* contents, |
108 translate::TranslateStep step, | 109 translate::TranslateStep step, |
109 translate::TranslateErrors::Type error_type, | 110 translate::TranslateErrors::Type error_type, |
110 bool is_user_gesture) override {} | 111 bool is_user_gesture) override {} |
111 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 112 #if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN) |
112 void ShowOneClickSigninBubble( | 113 void ShowOneClickSigninBubble( |
113 OneClickSigninBubbleType type, | 114 OneClickSigninBubbleType type, |
114 const base::string16& email, | 115 const base::string16& email, |
115 const base::string16& error_message, | 116 const base::string16& error_message, |
116 const StartSyncCallback& start_sync_callback) override {} | 117 const StartSyncCallback& start_sync_callback) override {} |
117 #endif | 118 #endif |
118 bool IsDownloadShelfVisible() const override; | 119 bool IsDownloadShelfVisible() const override; |
119 DownloadShelf* GetDownloadShelf() override; | 120 DownloadShelf* GetDownloadShelf() override; |
120 void ConfirmBrowserCloseWithPendingDownloads( | 121 void ConfirmBrowserCloseWithPendingDownloads( |
121 int download_count, | 122 int download_count, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 204 |
204 namespace chrome { | 205 namespace chrome { |
205 | 206 |
206 // Helper that handle the lifetime of TestBrowserWindow instances. | 207 // Helper that handle the lifetime of TestBrowserWindow instances. |
207 scoped_ptr<Browser> CreateBrowserWithTestWindowForParams( | 208 scoped_ptr<Browser> CreateBrowserWithTestWindowForParams( |
208 Browser::CreateParams* params); | 209 Browser::CreateParams* params); |
209 | 210 |
210 } // namespace chrome | 211 } // namespace chrome |
211 | 212 |
212 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 213 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
OLD | NEW |