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 "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/lifetime/browser_close_manager.h" | 10 #include "chrome/browser/lifetime/browser_close_manager.h" |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 276 |
277 // Shows the confirmation dialog box warning that the browser is closing with | 277 // Shows the confirmation dialog box warning that the browser is closing with |
278 // in-progress downloads. | 278 // in-progress downloads. |
279 // This method should call |callback| with the user's response. | 279 // This method should call |callback| with the user's response. |
280 virtual void ConfirmBrowserCloseWithPendingDownloads( | 280 virtual void ConfirmBrowserCloseWithPendingDownloads( |
281 int download_count, | 281 int download_count, |
282 Browser::DownloadClosePreventionType dialog_type, | 282 Browser::DownloadClosePreventionType dialog_type, |
283 bool app_modal, | 283 bool app_modal, |
284 const base::Callback<void(bool)>& callback) = 0; | 284 const base::Callback<void(bool)>& callback) = 0; |
285 | 285 |
286 // ThemeService calls this when a user has changed his or her theme, | 286 // ThemeService calls this when a user has changed their theme, indicating |
287 // indicating that it's time to redraw everything. | 287 // that it's time to redraw everything. |
288 virtual void UserChangedTheme() = 0; | 288 virtual void UserChangedTheme() = 0; |
289 | 289 |
290 // Shows the website settings using the specified information. |virtual_url| | 290 // Shows the website settings using the specified information. |virtual_url| |
291 // is the virtual url of the page/frame the info applies to, |ssl| is the SSL | 291 // is the virtual url of the page/frame the info applies to, |ssl| is the SSL |
292 // information for that page/frame. If |show_history| is true, a section | 292 // information for that page/frame. If |show_history| is true, a section |
293 // showing how many times that URL has been visited is added to the page info. | 293 // showing how many times that URL has been visited is added to the page info. |
294 virtual void ShowWebsiteSettings( | 294 virtual void ShowWebsiteSettings( |
295 Profile* profile, | 295 Profile* profile, |
296 content::WebContents* web_contents, | 296 content::WebContents* web_contents, |
297 const GURL& virtual_url, | 297 const GURL& virtual_url, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // currently resides in. | 386 // currently resides in. |
387 virtual std::string GetWorkspace() const = 0; | 387 virtual std::string GetWorkspace() const = 0; |
388 | 388 |
389 protected: | 389 protected: |
390 friend class BrowserCloseManager; | 390 friend class BrowserCloseManager; |
391 friend class BrowserView; | 391 friend class BrowserView; |
392 virtual void DestroyBrowser() = 0; | 392 virtual void DestroyBrowser() = 0; |
393 }; | 393 }; |
394 | 394 |
395 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 395 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |