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

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

Issue 1022673002: Enable PDF plugin for iframes within the print preview dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better comments Created 5 years, 9 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Sets |observer| as the current PrintViewManagerObserver. Pass in NULL to 50 // Sets |observer| as the current PrintViewManagerObserver. Pass in NULL to
51 // remove the current observer. |observer| may always be NULL, but |observer_| 51 // remove the current observer. |observer| may always be NULL, but |observer_|
52 // must be NULL if |observer| is non-NULL. 52 // must be NULL if |observer| is non-NULL.
53 void set_observer(PrintViewManagerObserver* observer); 53 void set_observer(PrintViewManagerObserver* observer);
54 54
55 // content::WebContentsObserver implementation. 55 // content::WebContentsObserver implementation.
56 bool OnMessageReceived(const IPC::Message& message) override; 56 bool OnMessageReceived(const IPC::Message& message) override;
57 57
58 // content::WebContentsObserver implementation. 58 // content::WebContentsObserver implementation.
59 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override;
60
61 // content::WebContentsObserver implementation.
59 // Terminates or cancels the print job if one was pending. 62 // Terminates or cancels the print job if one was pending.
60 void RenderProcessGone(base::TerminationStatus status) override; 63 void RenderProcessGone(base::TerminationStatus status) override;
61 64
62 private: 65 private:
63 explicit PrintViewManager(content::WebContents* web_contents); 66 explicit PrintViewManager(content::WebContents* web_contents);
64 friend class content::WebContentsUserData<PrintViewManager>; 67 friend class content::WebContentsUserData<PrintViewManager>;
65 68
66 enum PrintPreviewState { 69 enum PrintPreviewState {
67 NOT_PREVIEWING, 70 NOT_PREVIEWING,
68 USER_INITIATED_PREVIEW, 71 USER_INITIATED_PREVIEW,
(...skipping 15 matching lines...) Expand all
84 87
85 // Keeps track of the pending callback during scripted print preview. 88 // Keeps track of the pending callback during scripted print preview.
86 content::RenderProcessHost* scripted_print_preview_rph_; 89 content::RenderProcessHost* scripted_print_preview_rph_;
87 90
88 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 91 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
89 }; 92 };
90 93
91 } // namespace printing 94 } // namespace printing
92 95
93 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 96 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_dialog_controller_browsertest.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698