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

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

Issue 231953003: Show Ash like <select> popup on Android tablets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newpopupx
Patch Set: Rebased Created 6 years, 8 months 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/DropdownItem.java
diff --git a/ui/android/java/src/org/chromium/ui/DropdownItem.java b/ui/android/java/src/org/chromium/ui/DropdownItem.java
new file mode 100644
index 0000000000000000000000000000000000000000..46d8d0e215318974131233e888892e772f7f0492
--- /dev/null
+++ b/ui/android/java/src/org/chromium/ui/DropdownItem.java
@@ -0,0 +1,27 @@
+// Copyright 2014 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;
+
+/**
+ * Dropdown item interface used to access all the information needed to show the item.
+ */
+public interface DropdownItem {
+ /**
+ * Returns the label that should be shown in the dropdown.
+ */
+ String getLabel();
+ /**
+ * Returns the sublabel that should be shown in the dropdown.
+ */
+ String getSublabel();
+ /**
+ * Returns true if the item should be enabled in the dropdown.
+ */
+ boolean isEnabled();
+ /**
+ * Returns true if the item should be a group header in the dropdown.
+ */
+ boolean isGroupHeader();
+}

Powered by Google App Engine
This is Rietveld 408576698