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> | |
| 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 204 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 | 224 // user chooses to accept the sign in, the callback is called to start the |
| 223 // sync process. | 225 // sync process. |
| 224 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> | 226 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> |
| 225 StartSyncCallback; | 227 StartSyncCallback; |
| 226 | 228 |
| 227 // Shows the one-click sign in bubble. |email| holds the full email address | 229 // Shows the one-click sign in bubble. |email| holds the full email address |
| 228 // of the account that has signed in. | 230 // of the account that has signed in. |
| 229 virtual void ShowOneClickSigninBubble( | 231 virtual void ShowOneClickSigninBubble( |
| 230 OneClickSigninBubbleType type, | 232 OneClickSigninBubbleType type, |
| 231 const string16& email, | 233 const string16& email, |
| 234 const std::string& error_message, | |
|
Nico
2013/04/18 17:53:28
We used to use string16 for text that could possib
noms (inactive)
2013/04/18 18:08:28
The error_message comes as a utf8 string from OneC
Roger Tawa OOO till Jul 10th
2013/04/18 19:04:11
It might have been utf8 previously because that is
| |
| 232 const StartSyncCallback& start_sync_callback) = 0; | 235 const StartSyncCallback& start_sync_callback) = 0; |
| 233 #endif | 236 #endif |
| 234 | 237 |
| 235 // Whether or not the shelf view is visible. | 238 // Whether or not the shelf view is visible. |
| 236 virtual bool IsDownloadShelfVisible() const = 0; | 239 virtual bool IsDownloadShelfVisible() const = 0; |
| 237 | 240 |
| 238 // Returns the DownloadShelf. | 241 // Returns the DownloadShelf. |
| 239 virtual DownloadShelf* GetDownloadShelf() = 0; | 242 virtual DownloadShelf* GetDownloadShelf() = 0; |
| 240 | 243 |
| 241 // Shows the confirmation dialog box warning that the browser is closing with | 244 // Shows the confirmation dialog box warning that the browser is closing with |
| 242 // in-progress downloads. | 245 // in-progress downloads. |
| 243 // This method should call Browser::InProgressDownloadResponse once the user | 246 // This method should call Browser::InProgressDownloadResponse once the user |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 387 | 390 |
| 388 // Returns the ToolbarView. | 391 // Returns the ToolbarView. |
| 389 virtual ToolbarView* GetToolbarView() const = 0; | 392 virtual ToolbarView* GetToolbarView() const = 0; |
| 390 #endif | 393 #endif |
| 391 | 394 |
| 392 protected: | 395 protected: |
| 393 virtual ~BrowserWindowTesting() {} | 396 virtual ~BrowserWindowTesting() {} |
| 394 }; | 397 }; |
| 395 | 398 |
| 396 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |