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 CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/android/jni_weak_ref.h" | |
11 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
12 #include "base/compiler_specific.h" | |
13 #include "base/macros.h" | 11 #include "base/macros.h" |
14 #include "components/infobars/core/infobar.h" | 12 #include "components/infobars/core/infobar.h" |
15 | 13 |
16 class InfoBarService; | 14 class InfoBarService; |
17 | 15 |
18 namespace infobars { | 16 namespace infobars { |
19 class InfoBarDelegate; | 17 class InfoBarDelegate; |
20 } | 18 } |
21 | 19 |
22 class InfoBarAndroid : public infobars::InfoBar { | 20 class InfoBarAndroid : public infobars::InfoBar { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 private: | 81 private: |
84 base::android::ScopedJavaGlobalRef<jobject> java_info_bar_; | 82 base::android::ScopedJavaGlobalRef<jobject> java_info_bar_; |
85 | 83 |
86 DISALLOW_COPY_AND_ASSIGN(InfoBarAndroid); | 84 DISALLOW_COPY_AND_ASSIGN(InfoBarAndroid); |
87 }; | 85 }; |
88 | 86 |
89 // Registers the NativeInfoBar's native methods through JNI. | 87 // Registers the NativeInfoBar's native methods through JNI. |
90 bool RegisterNativeInfoBar(JNIEnv* env); | 88 bool RegisterNativeInfoBar(JNIEnv* env); |
91 | 89 |
92 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ | 90 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ |
OLD | NEW |