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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMMON_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_
7 7
8 namespace content { 8 namespace content {
9 class RenderFrameHost;
9 class WebContents; 10 class WebContents;
10 } 11 }
11 12
12 namespace printing { 13 namespace printing {
13 14
14 // Start printing using the appropriate PrintViewManagerBase subclass. 15 // Start printing using the appropriate PrintViewManagerBase subclass.
15 void StartPrint(content::WebContents* web_contents, 16 void StartPrint(content::WebContents* web_contents,
16 bool print_preview_disabled, 17 bool print_preview_disabled,
17 bool selection_only); 18 bool has_selection);
18 19
19 #if defined(ENABLE_BASIC_PRINTING) 20 #if defined(ENABLE_BASIC_PRINTING)
20 // Start printing using the system print dialog. 21 // Start printing using the system print dialog.
21 void StartBasicPrint(content::WebContents* contents); 22 void StartBasicPrint(content::WebContents* contents);
22 #endif 23 #endif
23 24
25 // If the user has selected text in the currently focused frame, print only that
26 // frame (this makes print selection work for multiple frames).
27 content::RenderFrameHost* GetFrameToPrint(content::WebContents* contents);
28
24 } // namespace printing 29 } // namespace printing
25 30
26 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_ 31 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698