| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // user chooses to accept the sign in, the callback is called to start the | 222 // user chooses to accept the sign in, the callback is called to start the |
| 223 // sync process. | 223 // sync process. |
| 224 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> | 224 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> |
| 225 StartSyncCallback; | 225 StartSyncCallback; |
| 226 | 226 |
| 227 // Shows the one-click sign in bubble. |email| holds the full email address | 227 // Shows the one-click sign in bubble. |email| holds the full email address |
| 228 // of the account that has signed in. | 228 // of the account that has signed in. |
| 229 virtual void ShowOneClickSigninBubble( | 229 virtual void ShowOneClickSigninBubble( |
| 230 OneClickSigninBubbleType type, | 230 OneClickSigninBubbleType type, |
| 231 const string16& email, | 231 const string16& email, |
| 232 const StartSyncCallback& start_sync_callback) = 0; | 232 const StartSyncCallback& start_sync_callback, |
| 233 #endif | 233 const std::string& error_message) = 0; |
| 234 #endif |
| 234 | 235 |
| 235 // Whether or not the shelf view is visible. | 236 // Whether or not the shelf view is visible. |
| 236 virtual bool IsDownloadShelfVisible() const = 0; | 237 virtual bool IsDownloadShelfVisible() const = 0; |
| 237 | 238 |
| 238 // Returns the DownloadShelf. | 239 // Returns the DownloadShelf. |
| 239 virtual DownloadShelf* GetDownloadShelf() = 0; | 240 virtual DownloadShelf* GetDownloadShelf() = 0; |
| 240 | 241 |
| 241 // Shows the confirmation dialog box warning that the browser is closing with | 242 // Shows the confirmation dialog box warning that the browser is closing with |
| 242 // in-progress downloads. | 243 // in-progress downloads. |
| 243 // This method should call Browser::InProgressDownloadResponse once the user | 244 // This method should call Browser::InProgressDownloadResponse once the user |
| (...skipping 143 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 |