| 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/browser_close_manager.h" | 9 #include "chrome/browser/lifetime/browser_close_manager.h" |
| 10 #include "chrome/browser/translate/translate_tab_helper.h" | 10 #include "chrome/browser/translate/translate_tab_helper.h" |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 228 |
| 229 // Shows the bookmark prompt. | 229 // Shows the bookmark prompt. |
| 230 // TODO(yosin): Make ShowBookmarkPrompt pure virtual. | 230 // TODO(yosin): Make ShowBookmarkPrompt pure virtual. |
| 231 virtual void ShowBookmarkPrompt() {} | 231 virtual void ShowBookmarkPrompt() {} |
| 232 | 232 |
| 233 // Shows the translate bubble. | 233 // Shows the translate bubble. |
| 234 virtual void ShowTranslateBubble(content::WebContents* contents, | 234 virtual void ShowTranslateBubble(content::WebContents* contents, |
| 235 translate::TranslateStep step, | 235 translate::TranslateStep step, |
| 236 TranslateErrors::Type error_type) = 0; | 236 TranslateErrors::Type error_type) = 0; |
| 237 | 237 |
| 238 // Shows the manage passwords bubble. |
| 239 virtual void ShowManagePasswordsBubble(content::WebContents* contents) = 0; |
| 240 |
| 238 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 241 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 239 enum OneClickSigninBubbleType { | 242 enum OneClickSigninBubbleType { |
| 240 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, | 243 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, |
| 241 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, | 244 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, |
| 242 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG | 245 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG |
| 243 }; | 246 }; |
| 244 | 247 |
| 245 // Callback type used with the ShowOneClickSigninBubble() method. If the | 248 // Callback type used with the ShowOneClickSigninBubble() method. If the |
| 246 // user chooses to accept the sign in, the callback is called to start the | 249 // user chooses to accept the sign in, the callback is called to start the |
| 247 // sync process. | 250 // sync process. |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 440 |
| 438 // Returns the ToolbarView. | 441 // Returns the ToolbarView. |
| 439 virtual ToolbarView* GetToolbarView() const = 0; | 442 virtual ToolbarView* GetToolbarView() const = 0; |
| 440 #endif | 443 #endif |
| 441 | 444 |
| 442 protected: | 445 protected: |
| 443 virtual ~BrowserWindowTesting() {} | 446 virtual ~BrowserWindowTesting() {} |
| 444 }; | 447 }; |
| 445 | 448 |
| 446 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 449 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |