| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.content; | 5 package org.chromium.content; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Provide Android internal resources to Chrome's content layer. This allows | 8 * Provide Android internal resources to Chrome's content layer. This allows |
| 9 * classes that access resources via org.chromium.content.R to function properly | 9 * classes that access resources via org.chromium.content.R to function properly |
| 10 * in webview. In a normal Chrome build, content resources live in a res folder | 10 * in webview. In a normal Chrome build, content resources live in a res folder |
| 11 * in the content layer and the org.chromium.content.R class is generated at | 11 * in the content layer and the org.chromium.content.R class is generated at |
| 12 * build time based on these resources. In webview, resources live in the | 12 * build time based on these resources. In webview, resources live in the |
| 13 * Android framework and can't be accessed directly from the content layer. | 13 * Android framework and can't be accessed directly from the content layer. |
| 14 * Instead, we copy resources needed by content into the Android framework and | 14 * Instead, we copy resources needed by content into the Android framework and |
| 15 * use this R class to map resources IDs from org.chromium.content.R to | 15 * use this R class to map resources IDs from org.chromium.content.R to |
| 16 * com.android.internal.R. | 16 * com.android.internal.R. |
| 17 */ | 17 */ |
| 18 public final class R { | 18 public final class R { |
| 19 /** Attributes */ | 19 /** Attributes */ |
| 20 public static final class attr { | 20 public static final class attr { |
| 21 public static int select_dialog_multichoice; | 21 public static int select_dialog_multichoice; |
| 22 public static int select_dialog_singlechoice; | 22 public static int select_dialog_singlechoice; |
| 23 } | 23 } |
| 24 /** Dimensions */ | 24 /** Dimensions */ |
| 25 public static final class dimen { | 25 public static final class dimen { |
| 26 public static int link_preview_overlay_radius; | 26 public static int link_preview_overlay_radius; |
| 27 public static int select_popup_border_width; |
| 28 public static int select_popup_horizontal_margin; |
| 27 } | 29 } |
| 28 /** Drawables */ | 30 /** Drawables */ |
| 29 public static final class drawable { | 31 public static final class drawable { |
| 30 public static int ondemand_overlay; | 32 public static int ondemand_overlay; |
| 31 } | 33 } |
| 32 /** id */ | 34 /** id */ |
| 33 public static final class id { | 35 public static final class id { |
| 34 public static int ampm; | 36 public static int ampm; |
| 35 public static int arrow_image; | 37 public static int arrow_image; |
| 36 public static int date_picker; | 38 public static int date_picker; |
| 37 public static int date_time_suggestion_value; | 39 public static int date_time_suggestion_value; |
| 38 public static int date_time_suggestion_label; | 40 public static int date_time_suggestion_label; |
| 39 public static int hour; | 41 public static int hour; |
| 40 public static int main_text; | 42 public static int main_text; |
| 41 public static int milli; | 43 public static int milli; |
| 42 public static int minute; | 44 public static int minute; |
| 43 public static int pickers; | 45 public static int pickers; |
| 44 public static int position_in_year; | 46 public static int position_in_year; |
| 45 public static int second; | 47 public static int second; |
| 46 public static int second_colon; | 48 public static int second_colon; |
| 47 public static int second_dot; | 49 public static int second_dot; |
| 48 public static int select_action_menu_select_all; | 50 public static int select_action_menu_select_all; |
| 49 public static int select_action_menu_cut; | 51 public static int select_action_menu_cut; |
| 50 public static int select_action_menu_copy; | 52 public static int select_action_menu_copy; |
| 51 public static int select_action_menu_paste; | 53 public static int select_action_menu_paste; |
| 52 public static int select_action_menu_share; | 54 public static int select_action_menu_share; |
| 53 public static int select_action_menu_web_search; | 55 public static int select_action_menu_web_search; |
| 56 public static int select_popup_window; |
| 54 public static int sub_text; | 57 public static int sub_text; |
| 55 public static int time_picker; | 58 public static int time_picker; |
| 56 public static int year; | 59 public static int year; |
| 57 } | 60 } |
| 58 /** layouts */ | 61 /** layouts */ |
| 59 public static final class layout { | 62 public static final class layout { |
| 60 public static int date_time_picker_dialog; | 63 public static int date_time_picker_dialog; |
| 61 public static int date_time_suggestion; | 64 public static int date_time_suggestion; |
| 62 public static int two_field_date_picker; | 65 public static int two_field_date_picker; |
| 63 public static int multi_field_time_picker_dialog; | 66 public static int multi_field_time_picker_dialog; |
| 64 public static int validation_message_bubble; | 67 public static int validation_message_bubble; |
| 68 public static int select_popup_dialog; |
| 65 } | 69 } |
| 66 /** menus */ | 70 /** menus */ |
| 67 public static final class menu { | 71 public static final class menu { |
| 68 public static int select_action_menu; | 72 public static int select_action_menu; |
| 69 } | 73 } |
| 70 /** strings */ | 74 /** strings */ |
| 71 public static final class string { | 75 public static final class string { |
| 72 public static int accessibility_content_view; | 76 public static int accessibility_content_view; |
| 73 public static int accessibility_date_picker_month; | 77 public static int accessibility_date_picker_month; |
| 74 public static int accessibility_date_picker_week; | 78 public static int accessibility_date_picker_week; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 96 public static int time_picker_dialog_hour_minute_separator; | 100 public static int time_picker_dialog_hour_minute_separator; |
| 97 public static int time_picker_dialog_minute_second_separator; | 101 public static int time_picker_dialog_minute_second_separator; |
| 98 public static int time_picker_dialog_second_subsecond_separator; | 102 public static int time_picker_dialog_second_subsecond_separator; |
| 99 public static int time_picker_dialog_pm; | 103 public static int time_picker_dialog_pm; |
| 100 public static int time_picker_dialog_title; | 104 public static int time_picker_dialog_title; |
| 101 public static int week_picker_dialog_title; | 105 public static int week_picker_dialog_title; |
| 102 } | 106 } |
| 103 /** styles */ | 107 /** styles */ |
| 104 public static final class style { | 108 public static final class style { |
| 105 public static int SelectPopupDialog; | 109 public static int SelectPopupDialog; |
| 110 public static int SingleSelectPopupWindow; |
| 106 } | 111 } |
| 107 } | 112 } |
| OLD | NEW |