| 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 PRINTING_PRINTING_CONTEXT_ANDROID_H_ | 5 #ifndef PRINTING_PRINTING_CONTEXT_ANDROID_H_ |
| 6 #define PRINTING_PRINTING_CONTEXT_ANDROID_H_ | 6 #define PRINTING_PRINTING_CONTEXT_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/android/scoped_java_ref.h" | 12 #include "base/android/scoped_java_ref.h" |
| 13 #include "base/macros.h" |
| 13 #include "printing/printing_context.h" | 14 #include "printing/printing_context.h" |
| 14 | 15 |
| 15 namespace printing { | 16 namespace printing { |
| 16 | 17 |
| 17 // Android subclass of PrintingContext. This class communicates with the | 18 // Android subclass of PrintingContext. This class communicates with the |
| 18 // Java side through JNI. | 19 // Java side through JNI. |
| 19 class PRINTING_EXPORT PrintingContextAndroid : public PrintingContext { | 20 class PRINTING_EXPORT PrintingContextAndroid : public PrintingContext { |
| 20 public: | 21 public: |
| 21 explicit PrintingContextAndroid(Delegate* delegate); | 22 explicit PrintingContextAndroid(Delegate* delegate); |
| 22 ~PrintingContextAndroid() override; | 23 ~PrintingContextAndroid() override; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // ready on the Java side | 65 // ready on the Java side |
| 65 PrintSettingsCallback callback_; | 66 PrintSettingsCallback callback_; |
| 66 | 67 |
| 67 DISALLOW_COPY_AND_ASSIGN(PrintingContextAndroid); | 68 DISALLOW_COPY_AND_ASSIGN(PrintingContextAndroid); |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace printing | 71 } // namespace printing |
| 71 | 72 |
| 72 #endif // PRINTING_PRINTING_CONTEXT_ANDROID_H_ | 73 #endif // PRINTING_PRINTING_CONTEXT_ANDROID_H_ |
| 73 | 74 |
| OLD | NEW |