| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "chrome/browser/lifetime/application_lifetime.h" | 9 #include "chrome/browser/lifetime/application_lifetime.h" |
| 10 #include "chrome/browser/ui/base_window.h" | 10 #include "chrome/browser/ui/base_window.h" |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // user chooses to accept the sign in, the callback is called to start the | 225 // user chooses to accept the sign in, the callback is called to start the |
| 226 // sync process. | 226 // sync process. |
| 227 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> | 227 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> |
| 228 StartSyncCallback; | 228 StartSyncCallback; |
| 229 | 229 |
| 230 // Shows the one-click sign in bubble. |email| holds the full email address | 230 // Shows the one-click sign in bubble. |email| holds the full email address |
| 231 // of the account that has signed in. | 231 // of the account that has signed in. |
| 232 virtual void ShowOneClickSigninBubble( | 232 virtual void ShowOneClickSigninBubble( |
| 233 OneClickSigninBubbleType type, | 233 OneClickSigninBubbleType type, |
| 234 const string16& email, | 234 const string16& email, |
| 235 const string16& error_message, |
| 235 const StartSyncCallback& start_sync_callback) = 0; | 236 const StartSyncCallback& start_sync_callback) = 0; |
| 236 #endif | 237 #endif |
| 237 | 238 |
| 238 // Whether or not the shelf view is visible. | 239 // Whether or not the shelf view is visible. |
| 239 virtual bool IsDownloadShelfVisible() const = 0; | 240 virtual bool IsDownloadShelfVisible() const = 0; |
| 240 | 241 |
| 241 // Returns the DownloadShelf. | 242 // Returns the DownloadShelf. |
| 242 virtual DownloadShelf* GetDownloadShelf() = 0; | 243 virtual DownloadShelf* GetDownloadShelf() = 0; |
| 243 | 244 |
| 244 // Shows the confirmation dialog box warning that the browser is closing with | 245 // Shows the confirmation dialog box warning that the browser is closing with |
| 245 // in-progress downloads. | 246 // in-progress downloads. |
| 246 // This method should call Browser::InProgressDownloadResponse once the user | 247 // This method should call Browser::InProgressDownloadResponse once the user |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 391 |
| 391 // Returns the ToolbarView. | 392 // Returns the ToolbarView. |
| 392 virtual ToolbarView* GetToolbarView() const = 0; | 393 virtual ToolbarView* GetToolbarView() const = 0; |
| 393 #endif | 394 #endif |
| 394 | 395 |
| 395 protected: | 396 protected: |
| 396 virtual ~BrowserWindowTesting() {} | 397 virtual ~BrowserWindowTesting() {} |
| 397 }; | 398 }; |
| 398 | 399 |
| 399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 400 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |