| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 ANDROID_WEBVIEW_NATIVE_AW_PDF_EXPORTER_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_PDF_EXPORTER_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_PDF_EXPORTER_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_PDF_EXPORTER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "android_webview/browser/renderer_host/print_manager.h" | 10 #include "android_webview/browser/renderer_host/print_manager.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // Implement PrintManagerDelegate methods | 40 // Implement PrintManagerDelegate methods |
| 41 virtual void DidExportPdf(bool success) override; | 41 virtual void DidExportPdf(bool success) override; |
| 42 virtual bool IsCancelled() override; | 42 virtual bool IsCancelled() override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 void CreatePdfSettings(JNIEnv* env, jobject obj); | 45 void CreatePdfSettings(JNIEnv* env, jobject obj); |
| 46 | 46 |
| 47 JavaObjectWeakGlobalRef java_ref_; | 47 JavaObjectWeakGlobalRef java_ref_; |
| 48 content::WebContents* web_contents_; | 48 content::WebContents* web_contents_; |
| 49 | 49 |
| 50 scoped_ptr<PrintManager> print_manager_; | |
| 51 scoped_ptr<printing::PrintSettings> print_settings_; | 50 scoped_ptr<printing::PrintSettings> print_settings_; |
| 52 | 51 |
| 53 DISALLOW_COPY_AND_ASSIGN(AwPdfExporter); | 52 DISALLOW_COPY_AND_ASSIGN(AwPdfExporter); |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 bool RegisterAwPdfExporter(JNIEnv* env); | 55 bool RegisterAwPdfExporter(JNIEnv* env); |
| 57 | 56 |
| 58 } // namespace android_webview | 57 } // namespace android_webview |
| 59 | 58 |
| 60 #endif // ANDROID_WEBVIEW_NATIVE_AW_PDF_EXPORTER_H_ | 59 #endif // ANDROID_WEBVIEW_NATIVE_AW_PDF_EXPORTER_H_ |
| OLD | NEW |