Chromium Code Reviews| 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 <string> | |
|
Roger Tawa OOO till Jul 10th
2013/04/26 18:28:21
You probably don't need this anymore since the new
| |
| 9 | |
| 8 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 9 #include "chrome/browser/lifetime/application_lifetime.h" | 11 #include "chrome/browser/lifetime/application_lifetime.h" |
| 10 #include "chrome/browser/ui/base_window.h" | 12 #include "chrome/browser/ui/base_window.h" |
| 11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 12 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" | 14 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" |
| 13 #include "chrome/browser/ui/host_desktop.h" | 15 #include "chrome/browser/ui/host_desktop.h" |
| 14 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
| 15 #include "chrome/common/content_settings_types.h" | 17 #include "chrome/common/content_settings_types.h" |
| 16 #include "ui/base/window_open_disposition.h" | 18 #include "ui/base/window_open_disposition.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
| (...skipping 207 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 | 227 // user chooses to accept the sign in, the callback is called to start the |
| 226 // sync process. | 228 // sync process. |
| 227 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> | 229 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> |
| 228 StartSyncCallback; | 230 StartSyncCallback; |
| 229 | 231 |
| 230 // Shows the one-click sign in bubble. |email| holds the full email address | 232 // Shows the one-click sign in bubble. |email| holds the full email address |
| 231 // of the account that has signed in. | 233 // of the account that has signed in. |
| 232 virtual void ShowOneClickSigninBubble( | 234 virtual void ShowOneClickSigninBubble( |
| 233 OneClickSigninBubbleType type, | 235 OneClickSigninBubbleType type, |
| 234 const string16& email, | 236 const string16& email, |
| 237 const string16& error_message, | |
| 235 const StartSyncCallback& start_sync_callback) = 0; | 238 const StartSyncCallback& start_sync_callback) = 0; |
| 236 #endif | 239 #endif |
| 237 | 240 |
| 238 // Whether or not the shelf view is visible. | 241 // Whether or not the shelf view is visible. |
| 239 virtual bool IsDownloadShelfVisible() const = 0; | 242 virtual bool IsDownloadShelfVisible() const = 0; |
| 240 | 243 |
| 241 // Returns the DownloadShelf. | 244 // Returns the DownloadShelf. |
| 242 virtual DownloadShelf* GetDownloadShelf() = 0; | 245 virtual DownloadShelf* GetDownloadShelf() = 0; |
| 243 | 246 |
| 244 // Shows the confirmation dialog box warning that the browser is closing with | 247 // Shows the confirmation dialog box warning that the browser is closing with |
| 245 // in-progress downloads. | 248 // in-progress downloads. |
| 246 // This method should call Browser::InProgressDownloadResponse once the user | 249 // This method should call Browser::InProgressDownloadResponse once the user |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 | 393 |
| 391 // Returns the ToolbarView. | 394 // Returns the ToolbarView. |
| 392 virtual ToolbarView* GetToolbarView() const = 0; | 395 virtual ToolbarView* GetToolbarView() const = 0; |
| 393 #endif | 396 #endif |
| 394 | 397 |
| 395 protected: | 398 protected: |
| 396 virtual ~BrowserWindowTesting() {} | 399 virtual ~BrowserWindowTesting() {} |
| 397 }; | 400 }; |
| 398 | 401 |
| 399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 402 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |