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_BROWSER_UI_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "chrome/browser/ui/base_window.h" | 10 #include "chrome/browser/ui/base_window.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 virtual void ShowBackgroundPages() = 0; | 210 virtual void ShowBackgroundPages() = 0; |
211 | 211 |
212 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 212 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
213 // |already_bookmarked| is true if the url is already bookmarked. | 213 // |already_bookmarked| is true if the url is already bookmarked. |
214 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; | 214 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; |
215 | 215 |
216 // Shows the Chrome To Mobile bubble. | 216 // Shows the Chrome To Mobile bubble. |
217 virtual void ShowChromeToMobileBubble() = 0; | 217 virtual void ShowChromeToMobileBubble() = 0; |
218 | 218 |
219 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 219 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
220 // Shows the one-click sign in bubble. The given closures are run | 220 // Shows the one-click sign in bubble. If the user chooses to accept the |
221 // when their corresponding links are clicked. | 221 // sign in, |start_sync_callback| is called. The boolean argument is true |
| 222 // if the default sync settings should be used, and false if the user wants |
| 223 // to configure the settings. |
222 virtual void ShowOneClickSigninBubble( | 224 virtual void ShowOneClickSigninBubble( |
223 const base::Closure& learn_more_callback, | 225 const base::Callback<void(bool)>& start_sync_callback) = 0; |
224 const base::Closure& advanced_callback) = 0; | |
225 #endif | 226 #endif |
226 | 227 |
227 // Whether or not the shelf view is visible. | 228 // Whether or not the shelf view is visible. |
228 virtual bool IsDownloadShelfVisible() const = 0; | 229 virtual bool IsDownloadShelfVisible() const = 0; |
229 | 230 |
230 // Returns the DownloadShelf. | 231 // Returns the DownloadShelf. |
231 virtual DownloadShelf* GetDownloadShelf() = 0; | 232 virtual DownloadShelf* GetDownloadShelf() = 0; |
232 | 233 |
233 // Shows the confirmation dialog box warning that the browser is closing with | 234 // Shows the confirmation dialog box warning that the browser is closing with |
234 // in-progress downloads. | 235 // in-progress downloads. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 388 |
388 // Returns the ToolbarView. | 389 // Returns the ToolbarView. |
389 virtual ToolbarView* GetToolbarView() const = 0; | 390 virtual ToolbarView* GetToolbarView() const = 0; |
390 #endif | 391 #endif |
391 | 392 |
392 protected: | 393 protected: |
393 virtual ~BrowserWindowTesting() {} | 394 virtual ~BrowserWindowTesting() {} |
394 }; | 395 }; |
395 | 396 |
396 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 397 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |