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

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

Issue 2426503002: Make printing work better with OOPIF. (Closed)
Patch Set: Fix build, nits Created 4 years, 2 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 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 6e1064042731c79c1e0a53e42d5260082066b744..70a401b8c925649feafc1a943e09b41cf7eb983e 100644
--- a/chrome/browser/printing/print_view_manager_common.h
+++ b/chrome/browser/printing/print_view_manager_common.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_
namespace content {
+class RenderFrameHost;
class WebContents;
}
@@ -14,13 +15,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 defined(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_

Powered by Google App Engine
This is Rietveld 408576698