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

Side by Side Diff: chrome/browser/printing/print_view_manager.h

Issue 23855002: Fixing spreadsheets printing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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 | « no previous file | chrome/browser/printing/print_view_manager.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_PRINTING_PRINT_VIEW_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
7 7
8 #include "chrome/browser/printing/print_view_manager_base.h" 8 #include "chrome/browser/printing/print_view_manager_base.h"
9 #include "content/public/browser/web_contents_user_data.h" 9 #include "content/public/browser/web_contents_user_data.h"
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 friend class content::WebContentsUserData<PrintViewManager>; 67 friend class content::WebContentsUserData<PrintViewManager>;
68 68
69 enum PrintPreviewState { 69 enum PrintPreviewState {
70 NOT_PREVIEWING, 70 NOT_PREVIEWING,
71 USER_INITIATED_PREVIEW, 71 USER_INITIATED_PREVIEW,
72 SCRIPTED_PREVIEW, 72 SCRIPTED_PREVIEW,
73 }; 73 };
74 74
75 // IPC Message handlers. 75 // IPC Message handlers.
76 void OnDidShowPrintDialog(); 76 void OnDidShowPrintDialog();
77 void OnScriptedPrintPreview(bool source_is_modifiable, 77 void OnSetupScriptedPrintPreview(IPC::Message* reply_msg);
78 IPC::Message* reply_msg); 78 void OnShowScriptedPrintPreview(bool source_is_modifiable);
79 void OnScriptedPrintPreviewReply(IPC::Message* reply_msg); 79 void OnScriptedPrintPreviewReply(IPC::Message* reply_msg);
80 80
81 // Weak pointer to an observer that is notified when the print dialog is 81 // Weak pointer to an observer that is notified when the print dialog is
82 // shown. 82 // shown.
83 PrintViewManagerObserver* observer_; 83 PrintViewManagerObserver* observer_;
84 84
85 // Current state of print preview for this view. 85 // Current state of print preview for this view.
86 PrintPreviewState print_preview_state_; 86 PrintPreviewState print_preview_state_;
87 87
88 // Keeps track of the pending callback during scripted print preview. 88 // Keeps track of the pending callback during scripted print preview.
89 content::RenderProcessHost* scripted_print_preview_rph_; 89 content::RenderProcessHost* scripted_print_preview_rph_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 91 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
92 }; 92 };
93 93
94 } // namespace printing 94 } // namespace printing
95 95
96 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 96 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698