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; |
+ } |
+} |