OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR
_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR
_H_ |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR
_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR
_H_ |
7 | 7 |
8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/ui/android/infobars/infobar_android.h" | 10 #include "chrome/browser/ui/android/infobars/infobar_android.h" |
11 | 11 |
12 class SearchGeolocationDisclosureInfoBarDelegate; | 12 class SearchGeolocationDisclosureInfoBarDelegate; |
13 | 13 |
14 class SearchGeolocationDisclosureInfoBar : public InfoBarAndroid { | 14 class SearchGeolocationDisclosureInfoBar : public InfoBarAndroid { |
15 public: | 15 public: |
16 explicit SearchGeolocationDisclosureInfoBar( | 16 explicit SearchGeolocationDisclosureInfoBar( |
17 std::unique_ptr<SearchGeolocationDisclosureInfoBarDelegate> delegate); | 17 std::unique_ptr<SearchGeolocationDisclosureInfoBarDelegate> delegate); |
18 ~SearchGeolocationDisclosureInfoBar() override; | 18 ~SearchGeolocationDisclosureInfoBar() override; |
19 | 19 |
20 private: | 20 private: |
21 // InfoBarAndroid: | 21 // InfoBarAndroid: |
22 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | 22 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
23 JNIEnv* env) override; | 23 JNIEnv* env) override; |
| 24 void OnLinkClicked(JNIEnv* env, |
| 25 const base::android::JavaParamRef<jobject>& obj) override; |
24 void ProcessButton(int action) override; | 26 void ProcessButton(int action) override; |
25 | 27 |
26 SearchGeolocationDisclosureInfoBarDelegate* GetDelegate(); | 28 SearchGeolocationDisclosureInfoBarDelegate* GetDelegate(); |
27 | 29 |
28 DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBar); | 30 DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBar); |
29 }; | 31 }; |
30 | 32 |
31 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFO
BAR_H_ | 33 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFO
BAR_H_ |
OLD | NEW |