Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: chrome/test/base/test_browser_window.h

Issue 1718093005: Convert enable_one_click_signin to new buildflag system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/BUILD.gn ('k') | tools/gn/docs/cookbook.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | tools/gn/docs/cookbook.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698