OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR _H_ | |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR _H_ | |
7 | |
8 #include "base/android/scoped_java_ref.h" | |
9 #include "base/macros.h" | |
10 #include "chrome/browser/ui/android/infobars/infobar_android.h" | |
11 | |
12 class SearchGeolocationDisclosureInfoBarDelegate; | |
13 | |
14 class SearchGeolocationDisclosureInfoBar : public InfoBarAndroid { | |
gone
2016/11/04 23:21:49
Does it make more sense to override ConfirmInfoBar
benwells
2016/11/07 08:36:06
No buttons, just a message with a link embedded in
| |
15 public: | |
16 explicit SearchGeolocationDisclosureInfoBar( | |
17 std::unique_ptr<SearchGeolocationDisclosureInfoBarDelegate> delegate); | |
18 ~SearchGeolocationDisclosureInfoBar() override; | |
19 | |
20 private: | |
21 // InfoBarAndroid: | |
22 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | |
23 JNIEnv* env) override; | |
24 void ProcessButton(int action) override; | |
25 | |
26 SearchGeolocationDisclosureInfoBarDelegate* GetDelegate(); | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBar); | |
29 }; | |
30 | |
31 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFO BAR_H_ | |
OLD | NEW |