Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 public static final class attr { | 19 public static final class attr { |
| 20 // TODO(benm): remove these once gone downstream. | |
| 20 public static int action_mode_share_drawable; | 21 public static int action_mode_share_drawable; |
| 21 public static int action_mode_web_search_drawable; | 22 public static int action_mode_web_search_drawable; |
| 23 | |
| 22 public static int select_dialog_multichoice; | 24 public static int select_dialog_multichoice; |
| 23 public static int select_dialog_singlechoice; | 25 public static int select_dialog_singlechoice; |
| 24 } | 26 } |
| 25 public static final class dimen { | 27 public static final class dimen { |
| 26 public static int link_preview_overlay_radius; | 28 public static int link_preview_overlay_radius; |
| 27 } | 29 } |
| 28 public static final class drawable { | 30 public static final class drawable { |
| 29 public static int ondemand_overlay; | 31 public static int ondemand_overlay; |
| 30 } | 32 } |
| 31 public static final class id { | 33 public static final class id { |
| 32 public static int ampm; | 34 public static int ampm; |
| 33 public static int date_picker; | 35 public static int date_picker; |
| 34 public static int hour; | 36 public static int hour; |
| 35 public static int milli; | 37 public static int milli; |
| 36 public static int minute; | 38 public static int minute; |
| 37 public static int pickers; | 39 public static int pickers; |
| 38 public static int position_in_year; | 40 public static int position_in_year; |
| 39 public static int second; | 41 public static int second; |
| 40 public static int second_colon; | 42 public static int second_colon; |
| 41 public static int second_dot; | 43 public static int second_dot; |
| 44 public static int select_action_menu_select_all; | |
| 45 public static int select_action_menu_cut; | |
| 46 public static int select_action_menu_copy; | |
| 47 public static int select_action_menu_paste; | |
| 48 public static int select_action_menu_share; | |
| 49 public static int select_action_menu_web_search; | |
| 42 public static int time_picker; | 50 public static int time_picker; |
| 43 public static int year; | 51 public static int year; |
| 44 } | 52 } |
| 45 public static final class layout { | 53 public static final class layout { |
| 46 public static int date_time_picker_dialog; | 54 public static int date_time_picker_dialog; |
| 47 public static int two_field_date_picker; | 55 public static int two_field_date_picker; |
| 48 public static int multi_field_time_picker_dialog; | 56 public static int multi_field_time_picker_dialog; |
| 49 } | 57 } |
| 58 public static final class menu { | |
| 59 public static int select_action_menu; | |
| 60 } | |
| 50 public static final class string { | 61 public static final class string { |
| 51 public static int accessibility_content_view; | 62 public static int accessibility_content_view; |
| 52 public static int accessibility_date_picker_month; | 63 public static int accessibility_date_picker_month; |
| 53 public static int accessibility_date_picker_week; | 64 public static int accessibility_date_picker_week; |
| 54 public static int accessibility_date_picker_year; | 65 public static int accessibility_date_picker_year; |
| 55 public static int accessibility_datetime_picker_date; | 66 public static int accessibility_datetime_picker_date; |
| 56 public static int accessibility_datetime_picker_time; | 67 public static int accessibility_datetime_picker_time; |
| 57 public static int actionbar_share; | 68 public static int actionbar_share; |
| 58 public static int actionbar_web_search; | 69 public static int actionbar_web_search; |
| 59 public static int date_picker_dialog_clear; | 70 public static int date_picker_dialog_clear; |
| 60 public static int date_picker_dialog_set; | 71 public static int date_picker_dialog_set; |
| 61 public static int date_picker_dialog_title; | 72 public static int date_picker_dialog_title; |
| 62 public static int date_time_picker_dialog_title; | 73 public static int date_time_picker_dialog_title; |
| 63 public static int media_player_error_button; | 74 public static int media_player_error_button; |
| 64 public static int media_player_error_text_invalid_progressive_playback; | 75 public static int media_player_error_text_invalid_progressive_playback; |
| 65 public static int media_player_error_text_unknown; | 76 public static int media_player_error_text_unknown; |
| 66 public static int media_player_error_title; | 77 public static int media_player_error_title; |
| 67 public static int media_player_loading_video; | 78 public static int media_player_loading_video; |
| 68 public static int month_picker_dialog_title; | 79 public static int month_picker_dialog_title; |
| 69 public static int time_picker_dialog_am; | 80 public static int time_picker_dialog_am; |
| 70 public static int time_picker_dialog_hour_minute_separator; | 81 public static int time_picker_dialog_hour_minute_separator; |
| 71 public static int time_picker_dialog_minute_second_separator; | 82 public static int time_picker_dialog_minute_second_separator; |
| 72 public static int time_picker_dialog_second_subsecond_separator; | 83 public static int time_picker_dialog_second_subsecond_separator; |
| 73 public static int time_picker_dialog_pm; | 84 public static int time_picker_dialog_pm; |
| 74 public static int week_picker_dialog_title; | 85 public static int week_picker_dialog_title; |
| 75 } | 86 } |
| 76 public static final class style { | 87 public static final class style { |
| 77 public static int ContentActionBar; | 88 public static int ContentActionBar; |
|
newt (away)
2013/09/25 18:18:53
TODO: remove ContentActionBar too
benm (inactive)
2013/09/25 19:31:06
Done.
| |
| 78 public static int SelectPopupDialog; | 89 public static int SelectPopupDialog; |
| 79 } | 90 } |
| 80 } | 91 } |
| OLD | NEW |