summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/historyitemactions/history_item_bottom_sheet_header_info.proto
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-03-20 04:39:31 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-03-20 04:39:31 +0000
commit4633a7d3eb071bd1bf17f016386f8154d16116a3 (patch)
tree82dbfdd08c98e6412e36428085639053848373cc /java/com/android/dialer/historyitemactions/history_item_bottom_sheet_header_info.proto
parentc6dbda1388dad018d3122ff29a1b56647408d6bb (diff)
parentd6180d452cc6085f64c25d487bfaee3a614dd67a (diff)
Merge "Make the top row of the bottom sheet not clickable."
Diffstat (limited to 'java/com/android/dialer/historyitemactions/history_item_bottom_sheet_header_info.proto')
-rw-r--r--java/com/android/dialer/historyitemactions/history_item_bottom_sheet_header_info.proto41
1 files changed, 41 insertions, 0 deletions
diff --git a/java/com/android/dialer/historyitemactions/history_item_bottom_sheet_header_info.proto b/java/com/android/dialer/historyitemactions/history_item_bottom_sheet_header_info.proto
new file mode 100644
index 000000000..ef71ecd7e
--- /dev/null
+++ b/java/com/android/dialer/historyitemactions/history_item_bottom_sheet_header_info.proto
@@ -0,0 +1,41 @@
+syntax = "proto2";
+
+option java_package = "com.android.dialer.historyitemactions";
+option java_multiple_files = true;
+option optimize_for = LITE_RUNTIME;
+
+
+package com.android.dialer.historyitemactions;
+
+import "java/com/android/dialer/glidephotomanager/photo_info.proto";
+import "java/com/android/dialer/phonenumberproto/dialer_phone_number.proto";
+
+// Contains information necessary to construct the header for a history item's
+// bottom sheet.
+//
+// A history item is one that is displayed in the call log or the voicemail
+// fragment.
+//
+// Next ID: 5
+message HistoryItemBottomSheetHeaderInfo {
+ // The phone number associated with the item.
+ optional com.android.dialer.DialerPhoneNumber number = 1;
+
+ // Information used to load the contact photo.
+ optional com.android.dialer.glidephotomanager.PhotoInfo photo_info = 2;
+
+ // Primary text of the header, which can be
+ // (1) a presentation name (e.g., "Restricted", "Unknown", etc.),
+ // (2) the contact name, or
+ // (3) the formatted number.
+ optional string primary_text = 3;
+
+ // Secondary test of the header, which describes the number.
+ // Some examples are:
+ // "Mobile • 555-1234",
+ // "Blocked • Mobile • 555-1234", and
+ // "Spam • Mobile • 555-1234".
+ optional string secondary_text = 4;
+
+ // TODO(a bug): Add SIM info.
+}