Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Unified Diff: chrome/browser/ui/android/infobars/search_geolocation_disclosure_infobar.h

Issue 2475213002: Update the Google Search geolocation disclosure to make it more obvious. (Closed)
Patch Set: Feedback Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
+ 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_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/android/infobars/search_geolocation_disclosure_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698