OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 COMPONENTS_OFFLINE_ITEMS_COLLECTION_CORE_ANDROID_OFFLINE_ITEM_VISUALS_BR
IDGE_H_ |
| 6 #define COMPONENTS_OFFLINE_ITEMS_COLLECTION_CORE_ANDROID_OFFLINE_ITEM_VISUALS_BR
IDGE_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/android/jni_android.h" |
| 11 #include "base/android/scoped_java_ref.h" |
| 12 |
| 13 namespace offline_items_collection { |
| 14 |
| 15 struct OfflineItemVisuals; |
| 16 |
| 17 namespace android { |
| 18 |
| 19 // A helper class for creating Java OfflineItemVisuals instances from the C++ |
| 20 // OfflineItemVisuals counterpart. |
| 21 class OfflineItemVisualsBridge { |
| 22 public: |
| 23 // Creates a Java OfflineItemVisuals from |visuals|. |
| 24 static base::android::ScopedJavaLocalRef<jobject> CreateOfflineItemVisuals( |
| 25 JNIEnv* env, |
| 26 const OfflineItemVisuals* const visuals); |
| 27 |
| 28 private: |
| 29 OfflineItemVisualsBridge(); |
| 30 }; |
| 31 |
| 32 } // namespace android |
| 33 } // namespace offline_items_collection |
| 34 |
| 35 #endif // COMPONENTS_OFFLINE_ITEMS_COLLECTION_CORE_ANDROID_OFFLINE_ITEM_VISUALS
_BRIDGE_H_ |
OLD | NEW |