Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: chrome/browser/tab_contents/web_contents.h

Issue 45048: Remove Windows "Save As" dialogs from Save Page code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/shell_dialogs.h ('k') | chrome/browser/tab_contents/web_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_WEB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Default is not to block any message boxes. 232 // Default is not to block any message boxes.
233 void set_suppress_javascript_messages(bool suppress_javascript_messages) { 233 void set_suppress_javascript_messages(bool suppress_javascript_messages) {
234 suppress_javascript_messages_ = suppress_javascript_messages; 234 suppress_javascript_messages_ = suppress_javascript_messages;
235 } 235 }
236 236
237 // JavascriptMessageBoxHandler calls this when the dialog is closed. 237 // JavascriptMessageBoxHandler calls this when the dialog is closed.
238 void OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg, 238 void OnJavaScriptMessageBoxClosed(IPC::Message* reply_msg,
239 bool success, 239 bool success,
240 const std::wstring& prompt); 240 const std::wstring& prompt);
241 241
242 // Prepare for saving page. 242 // Prepare for saving the current web page to disk.
243 void OnSavePage(); 243 void OnSavePage();
244 244
245 // Save page with the main HTML file path, the directory for saving resources, 245 // Save page with the main HTML file path, the directory for saving resources,
246 // and the save type: HTML only or complete web page. 246 // and the save type: HTML only or complete web page.
247 void SavePage(const std::wstring& main_file, const std::wstring& dir_path, 247 void SavePage(const std::wstring& main_file,
248 const std::wstring& dir_path,
248 SavePackage::SavePackageType save_type); 249 SavePackage::SavePackageType save_type);
249 250
250 // Displays asynchronously a print preview (generated by the renderer) if not 251 // Displays asynchronously a print preview (generated by the renderer) if not
251 // already displayed and ask the user for its preferred print settings with 252 // already displayed and ask the user for its preferred print settings with
252 // the "Print..." dialog box. (managed by the print worker thread). 253 // the "Print..." dialog box. (managed by the print worker thread).
253 // TODO(maruel): Creates a snapshot of the renderer to be used for the new 254 // TODO(maruel): Creates a snapshot of the renderer to be used for the new
254 // tab for the printing facility. 255 // tab for the printing facility.
255 void PrintPreview(); 256 void PrintPreview();
256 257
257 // Prints the current document immediately. Since the rendering is 258 // Prints the current document immediately. Since the rendering is
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 virtual void OnFindReply(int request_id, 423 virtual void OnFindReply(int request_id,
423 int number_of_matches, 424 int number_of_matches,
424 const gfx::Rect& selection_rect, 425 const gfx::Rect& selection_rect,
425 int active_match_ordinal, 426 int active_match_ordinal,
426 bool final_update); 427 bool final_update);
427 virtual bool CanTerminate() const; 428 virtual bool CanTerminate() const;
428 429
429 430
430 // SelectFileDialog::Listener ------------------------------------------------ 431 // SelectFileDialog::Listener ------------------------------------------------
431 432
432 virtual void FileSelected(const std::wstring& path, void* params); 433 virtual void FileSelected(const std::wstring& path, int index, void* params);
433 virtual void MultiFilesSelected(const std::vector<std::wstring>& files, 434 virtual void MultiFilesSelected(const std::vector<std::wstring>& files,
434 void* params); 435 void* params);
435 virtual void FileSelectionCanceled(void* params); 436 virtual void FileSelectionCanceled(void* params);
436 437
437 // RenderViewHostManager::Delegate ------------------------------------------- 438 // RenderViewHostManager::Delegate -------------------------------------------
438 439
439 virtual void BeforeUnloadFiredFromRenderManager( 440 virtual void BeforeUnloadFiredFromRenderManager(
440 bool proceed, 441 bool proceed,
441 bool* proceed_to_fire_unload); 442 bool* proceed_to_fire_unload);
442 virtual void DidStartLoadingFromRenderManager( 443 virtual void DidStartLoadingFromRenderManager(
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 699
699 // The last find result. This object contains details about the number of 700 // The last find result. This object contains details about the number of
700 // matches, the find selection rectangle, etc. The UI can access this 701 // matches, the find selection rectangle, etc. The UI can access this
701 // information to build its presentation. 702 // information to build its presentation.
702 FindNotificationDetails find_result_; 703 FindNotificationDetails find_result_;
703 704
704 DISALLOW_COPY_AND_ASSIGN(WebContents); 705 DISALLOW_COPY_AND_ASSIGN(WebContents);
705 }; 706 };
706 707
707 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ 708 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/shell_dialogs.h ('k') | chrome/browser/tab_contents/web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698