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

Unified Diff: ui/android/java/src/org/chromium/ui/DropdownItemBase.java

Issue 2496683003: Http Bad: Add a PopupItemId to identify http warning message (Closed)
Patch Set: update 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
« no previous file with comments | « ui/android/java/src/org/chromium/ui/DropdownItem.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/DropdownItemBase.java
diff --git a/ui/android/java/src/org/chromium/ui/DropdownItemBase.java b/ui/android/java/src/org/chromium/ui/DropdownItemBase.java
new file mode 100644
index 0000000000000000000000000000000000000000..c27aafa4af604947fcbb735ac68212488b0ad370
--- /dev/null
+++ b/ui/android/java/src/org/chromium/ui/DropdownItemBase.java
@@ -0,0 +1,51 @@
+// 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.
+
+package org.chromium.ui;
+
+/**
+ * Base implementation of DropdownItem which is used to get default settings to
+ * show the item.
+ */
+public class DropdownItemBase implements DropdownItem {
+ @Override
+ public String getLabel() {
+ return null;
+ }
+
+ @Override
+ public String getSublabel() {
+ return null;
+ }
+
+ @Override
+ public int getIconId() {
+ return NO_ICON;
+ }
+
+ @Override
+ public boolean isEnabled() {
+ return true;
+ }
+
+ @Override
+ public boolean isGroupHeader() {
+ return false;
+ }
+
+ @Override
+ public boolean isMultilineLabel() {
+ return false;
+ }
+
+ @Override
+ public int getLabelFontColorResId() {
+ return R.drawable.dropdown_label_color;
+ }
+
+ @Override
+ public int getLabelFontSizeResId() {
+ return R.dimen.dropdown_item_label_font_size;
+ }
+}
« no previous file with comments | « ui/android/java/src/org/chromium/ui/DropdownItem.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698