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

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

Issue 2496683003: Http Bad: Add a PopupItemId to identify http warning message (Closed)
Patch Set: back iswarning 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: ui/android/java/src/org/chromium/ui/DropdownItemImpl.java
diff --git a/ui/android/java/src/org/chromium/ui/DropdownItemImpl.java b/ui/android/java/src/org/chromium/ui/DropdownItemImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..3396bffea377b78aa3a1cd6803253e7a88b8c381
--- /dev/null
+++ b/ui/android/java/src/org/chromium/ui/DropdownItemImpl.java
@@ -0,0 +1,50 @@
+// 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;
+
+/**
+ * DropdownItem implementation used to get default settings to show the item.
Mathieu 2016/11/16 05:09:46 Add a note that subclassing is the proper way to u
lshang 2016/11/16 09:34:24 Done.
+ */
+public class DropdownItemImpl 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 getLabelFontColor() {
+ return R.drawable.dropdown_label_color;
+ }
+
+ @Override
+ public int getLabelFontSize() {
+ return R.dimen.dropdown_item_label_font_size;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698