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/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "components/infobars/core/infobar.h" | 12 #include "components/infobars/core/infobar.h" |
13 | 13 |
14 class InfoBarService; | |
15 | |
16 namespace infobars { | 14 namespace infobars { |
17 class InfoBarDelegate; | 15 class InfoBarDelegate; |
18 } | 16 } |
19 | 17 |
20 class InfoBarAndroid : public infobars::InfoBar { | 18 class InfoBarAndroid : public infobars::InfoBar { |
21 public: | 19 public: |
22 | 20 |
23 // A Java counterpart will be generated for this enum. | 21 // A Java counterpart will be generated for this enum. |
24 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.infobar | 22 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.infobar |
25 // GENERATED_JAVA_PREFIX_TO_STRIP: ACTION_ | 23 // GENERATED_JAVA_PREFIX_TO_STRIP: ACTION_ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 private: | 76 private: |
79 base::android::ScopedJavaGlobalRef<jobject> java_info_bar_; | 77 base::android::ScopedJavaGlobalRef<jobject> java_info_bar_; |
80 | 78 |
81 DISALLOW_COPY_AND_ASSIGN(InfoBarAndroid); | 79 DISALLOW_COPY_AND_ASSIGN(InfoBarAndroid); |
82 }; | 80 }; |
83 | 81 |
84 // Registers the NativeInfoBar's native methods through JNI. | 82 // Registers the NativeInfoBar's native methods through JNI. |
85 bool RegisterNativeInfoBar(JNIEnv* env); | 83 bool RegisterNativeInfoBar(JNIEnv* env); |
86 | 84 |
87 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ | 85 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ |
OLD | NEW |