OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_PRINT_PRINT_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_PRINT_PRINT_CONTROLLER_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #include "base/memory/ref_counted.h" |
| 11 |
| 12 namespace net { |
| 13 class URLRequestContextGetter; |
| 14 } // namespace net |
| 15 |
| 16 // Interface for printing. |
| 17 @interface PrintController : NSObject |
| 18 |
| 19 - (instancetype)initWithContextGetter: |
| 20 (scoped_refptr<net::URLRequestContextGetter>)getter |
| 21 NS_DESIGNATED_INITIALIZER; |
| 22 |
| 23 - (instancetype)init NS_UNAVAILABLE; |
| 24 |
| 25 // Shows print UI for |view| with |title| on |viewController|. |
| 26 - (void)printView:(UIView*)view |
| 27 withTitle:(NSString*)title |
| 28 viewController:(UIViewController*)viewController; |
| 29 |
| 30 // Dismisses the print dialog with animation if |animated|. |
| 31 - (void)dismissAnimated:(BOOL)animated; |
| 32 |
| 33 @end |
| 34 |
| 35 #endif // IOS_CHROME_BROWSER_UI_PRINT_PRINT_CONTROLLER_H_ |
OLD | NEW |