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 package org.chromium.chrome.browser.infobar; |
| 6 |
| 7 import org.chromium.base.annotations.CalledByNative; |
| 8 import org.chromium.chrome.browser.ResourceId; |
| 9 |
| 10 /** |
| 11 * An infobar to disclose to the user that the default search engine has geoloca
tion access by |
| 12 * default. |
| 13 */ |
| 14 public class SearchGeolocationDisclosureInfoBar extends InfoBar { |
| 15 @CalledByNative |
| 16 private static InfoBar show(int enumeratedIconId, String message) { |
| 17 int drawableId = ResourceId.mapToDrawableId(enumeratedIconId); |
| 18 return new SearchGeolocationDisclosureInfoBar(drawableId, message); |
| 19 } |
| 20 |
| 21 /** |
| 22 * Creates the infobar. |
| 23 * @param iconDrawableId Drawable ID corresponding to the icon that the info
bar will show. |
| 24 * @param messageText Message to display in the infobar. |
| 25 */ |
| 26 private SearchGeolocationDisclosureInfoBar(int iconDrawableId, String messag
eText) { |
| 27 super(iconDrawableId, null, messageText); |
| 28 } |
| 29 } |
OLD | NEW |