| 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/signin/chrome_signin_helper.h" | 10 #include "chrome/browser/signin/chrome_signin_helper.h" |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // bookmark apps. | 246 // bookmark apps. |
| 247 // | 247 // |
| 248 // |web_app_info| is the WebApplicationInfo being converted into an app. | 248 // |web_app_info| is the WebApplicationInfo being converted into an app. |
| 249 virtual void ShowBookmarkAppBubble( | 249 virtual void ShowBookmarkAppBubble( |
| 250 const WebApplicationInfo& web_app_info, | 250 const WebApplicationInfo& web_app_info, |
| 251 const ShowBookmarkAppBubbleCallback& callback) = 0; | 251 const ShowBookmarkAppBubbleCallback& callback) = 0; |
| 252 | 252 |
| 253 // Shows the "Save credit card" bubble. | 253 // Shows the "Save credit card" bubble. |
| 254 virtual autofill::SaveCardBubbleView* ShowSaveCreditCardBubble( | 254 virtual autofill::SaveCardBubbleView* ShowSaveCreditCardBubble( |
| 255 content::WebContents* contents, | 255 content::WebContents* contents, |
| 256 autofill::SaveCardBubbleController* controller) = 0; | 256 autofill::SaveCardBubbleController* controller, |
| 257 bool is_user_gesture) = 0; |
| 257 | 258 |
| 258 // Shows the translate bubble. | 259 // Shows the translate bubble. |
| 259 // | 260 // |
| 260 // |is_user_gesture| is true when the bubble is shown on the user's deliberate | 261 // |is_user_gesture| is true when the bubble is shown on the user's deliberate |
| 261 // action. | 262 // action. |
| 262 virtual void ShowTranslateBubble( | 263 virtual void ShowTranslateBubble( |
| 263 content::WebContents* contents, | 264 content::WebContents* contents, |
| 264 translate::TranslateStep step, | 265 translate::TranslateStep step, |
| 265 translate::TranslateErrors::Type error_type, | 266 translate::TranslateErrors::Type error_type, |
| 266 bool is_user_gesture) = 0; | 267 bool is_user_gesture) = 0; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 // Returns object implementing ExclusiveAccessContext interface. | 402 // Returns object implementing ExclusiveAccessContext interface. |
| 402 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 403 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
| 403 | 404 |
| 404 protected: | 405 protected: |
| 405 friend class BrowserCloseManager; | 406 friend class BrowserCloseManager; |
| 406 friend class BrowserView; | 407 friend class BrowserView; |
| 407 virtual void DestroyBrowser() = 0; | 408 virtual void DestroyBrowser() = 0; |
| 408 }; | 409 }; |
| 409 | 410 |
| 410 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 411 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |