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

Unified Diff: chrome/browser/printing/print_view_manager_common.h

Issue 2508923003: Make printing work better with OOPIF. (try 2) (Closed)
Patch Set: Fix android_webview Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/print_view_manager_common.h
diff --git a/chrome/browser/printing/print_view_manager_common.h b/chrome/browser/printing/print_view_manager_common.h
index 0268635833407c9e20edad75bdb3b5a38c67451c..da97bc7503d7a0385ee12f8edbff624b4ad859fd 100644
--- a/chrome/browser/printing/print_view_manager_common.h
+++ b/chrome/browser/printing/print_view_manager_common.h
@@ -8,6 +8,7 @@
#include "printing/features/features.h"
namespace content {
+class RenderFrameHost;
class WebContents;
}
@@ -16,13 +17,17 @@ namespace printing {
// Start printing using the appropriate PrintViewManagerBase subclass.
void StartPrint(content::WebContents* web_contents,
bool print_preview_disabled,
- bool selection_only);
+ bool has_selection);
#if BUILDFLAG(ENABLE_BASIC_PRINTING)
// Start printing using the system print dialog.
void StartBasicPrint(content::WebContents* contents);
#endif
+// If the user has selected text in the currently focused frame, print only that
+// frame (this makes print selection work for multiple frames).
+content::RenderFrameHost* GetFrameToPrint(content::WebContents* contents);
+
} // namespace printing
#endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_
« no previous file with comments | « chrome/browser/printing/print_view_manager_base.cc ('k') | chrome/browser/printing/print_view_manager_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698