Index: chrome/browser/ui/android/infobars/search_geolocation_disclosure_infobar.h |
diff --git a/chrome/browser/ui/android/infobars/search_geolocation_disclosure_infobar.h b/chrome/browser/ui/android/infobars/search_geolocation_disclosure_infobar.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..24b74519e498b720cc3ccef55dab9404001d9b4f |
--- /dev/null |
+++ b/chrome/browser/ui/android/infobars/search_geolocation_disclosure_infobar.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_H_ |
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_H_ |
+ |
+#include "base/android/scoped_java_ref.h" |
+#include "base/macros.h" |
+#include "chrome/browser/ui/android/infobars/infobar_android.h" |
+ |
+class SearchGeolocationDisclosureInfoBarDelegate; |
+ |
+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
|
+ public: |
+ explicit SearchGeolocationDisclosureInfoBar( |
+ std::unique_ptr<SearchGeolocationDisclosureInfoBarDelegate> delegate); |
+ ~SearchGeolocationDisclosureInfoBar() override; |
+ |
+ private: |
+ // InfoBarAndroid: |
+ base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
+ JNIEnv* env) override; |
+ void ProcessButton(int action) override; |
+ |
+ SearchGeolocationDisclosureInfoBarDelegate* GetDelegate(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBar); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_H_ |