| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 bool success, | 517 bool success, |
| 518 const std::wstring& prompt); | 518 const std::wstring& prompt); |
| 519 | 519 |
| 520 // AppModalDialog calls this when the javascript dialog has been destroyed. | 520 // AppModalDialog calls this when the javascript dialog has been destroyed. |
| 521 void OnJavaScriptMessageBoxWindowDestroyed(); | 521 void OnJavaScriptMessageBoxWindowDestroyed(); |
| 522 | 522 |
| 523 // Prepare for saving the current web page to disk. | 523 // Prepare for saving the current web page to disk. |
| 524 void OnSavePage(); | 524 void OnSavePage(); |
| 525 | 525 |
| 526 // Save page with the main HTML file path, the directory for saving resources, | 526 // Save page with the main HTML file path, the directory for saving resources, |
| 527 // and the save type: HTML only or complete web page. | 527 // and the save type: HTML only or complete web page. Returns true if the |
| 528 void SavePage(const std::wstring& main_file, | 528 // saving process has been initiated successfully. |
| 529 bool SavePage(const std::wstring& main_file, |
| 529 const std::wstring& dir_path, | 530 const std::wstring& dir_path, |
| 530 SavePackage::SavePackageType save_type); | 531 SavePackage::SavePackageType save_type); |
| 531 | 532 |
| 532 // Displays asynchronously a print preview (generated by the renderer) if not | 533 // Displays asynchronously a print preview (generated by the renderer) if not |
| 533 // already displayed and ask the user for its preferred print settings with | 534 // already displayed and ask the user for its preferred print settings with |
| 534 // the "Print..." dialog box. (managed by the print worker thread). | 535 // the "Print..." dialog box. (managed by the print worker thread). |
| 535 // TODO(maruel): Creates a snapshot of the renderer to be used for the new | 536 // TODO(maruel): Creates a snapshot of the renderer to be used for the new |
| 536 // tab for the printing facility. | 537 // tab for the printing facility. |
| 537 void PrintPreview(); | 538 void PrintPreview(); |
| 538 | 539 |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 | 1096 |
| 1096 // Settings that get passed to the renderer process. | 1097 // Settings that get passed to the renderer process. |
| 1097 RendererPreferences renderer_preferences_; | 1098 RendererPreferences renderer_preferences_; |
| 1098 | 1099 |
| 1099 // --------------------------------------------------------------------------- | 1100 // --------------------------------------------------------------------------- |
| 1100 | 1101 |
| 1101 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1102 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1102 }; | 1103 }; |
| 1103 | 1104 |
| 1104 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1105 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |