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

Side by Side Diff: android_webview/native/aw_pdf_exporter.h

Issue 893343002: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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 unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
23 }; 23 };
24 24
25 namespace android_webview { 25 namespace android_webview {
26 26
27 class AwPdfExporter : public PrintManagerDelegate { 27 class AwPdfExporter : public PrintManagerDelegate {
28 public: 28 public:
29 AwPdfExporter(JNIEnv* env, 29 AwPdfExporter(JNIEnv* env,
30 jobject obj, 30 jobject obj,
31 content::WebContents* web_contents); 31 content::WebContents* web_contents);
32 32
33 virtual ~AwPdfExporter(); 33 ~AwPdfExporter() override;
34 34
35 void ExportToPdf(JNIEnv* env, 35 void ExportToPdf(JNIEnv* env,
36 jobject obj, 36 jobject obj,
37 int fd, 37 int fd,
38 jobject cancel_signal); 38 jobject cancel_signal);
39 39
40 // Implement PrintManagerDelegate methods 40 // Implement PrintManagerDelegate methods
41 virtual void DidExportPdf(bool success) override; 41 void DidExportPdf(bool success) override;
42 virtual bool IsCancelled() override; 42 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<printing::PrintSettings> print_settings_; 50 scoped_ptr<printing::PrintSettings> print_settings_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(AwPdfExporter); 52 DISALLOW_COPY_AND_ASSIGN(AwPdfExporter);
53 }; 53 };
54 54
55 bool RegisterAwPdfExporter(JNIEnv* env); 55 bool RegisterAwPdfExporter(JNIEnv* env);
56 56
57 } // namespace android_webview 57 } // namespace android_webview
58 58
59 #endif // ANDROID_WEBVIEW_NATIVE_AW_PDF_EXPORTER_H_ 59 #endif // ANDROID_WEBVIEW_NATIVE_AW_PDF_EXPORTER_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_message_port_service_impl.h ('k') | android_webview/native/aw_quota_manager_bridge_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698