| 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 dimen { | 19 public static final class dimen { |
| 20 public static int link_preview_overlay_radius; | 20 public static int link_preview_overlay_radius; |
| 21 } | 21 } |
| 22 public static final class drawable { | 22 public static final class drawable { |
| 23 public static int ic_menu_search_holo_light; | 23 public static int ic_menu_search_holo_light; |
| 24 public static int ic_menu_share_holo_light; | 24 public static int ic_menu_share_holo_light; |
| 25 public static int ondemand_overlay; | 25 public static int ondemand_overlay; |
| 26 } | 26 } |
| 27 public static final class id { | 27 public static final class id { |
| 28 public static int date_picker; | 28 public static int date_picker; |
| 29 public static int month; | 29 public static int position_in_year; |
| 30 public static int pickers; | 30 public static int pickers; |
| 31 public static int time_picker; | 31 public static int time_picker; |
| 32 public static int year; | 32 public static int year; |
| 33 } | 33 } |
| 34 public static final class layout { | 34 public static final class layout { |
| 35 public static int date_time_picker_dialog; | 35 public static int date_time_picker_dialog; |
| 36 public static int month_picker; | 36 public static int two_field_date_picker; |
| 37 } | 37 } |
| 38 public static final class string { | 38 public static final class string { |
| 39 public static int accessibility_content_view; | 39 public static int accessibility_content_view; |
| 40 public static int accessibility_date_picker_month; | 40 public static int accessibility_date_picker_month; |
| 41 public static int accessibility_date_picker_week; |
| 41 public static int accessibility_date_picker_year; | 42 public static int accessibility_date_picker_year; |
| 42 public static int accessibility_datetime_picker_date; | 43 public static int accessibility_datetime_picker_date; |
| 43 public static int accessibility_datetime_picker_time; | 44 public static int accessibility_datetime_picker_time; |
| 44 public static int actionbar_share; | 45 public static int actionbar_share; |
| 45 public static int actionbar_web_search; | 46 public static int actionbar_web_search; |
| 46 public static int date_picker_dialog_clear; | 47 public static int date_picker_dialog_clear; |
| 47 public static int date_picker_dialog_set; | 48 public static int date_picker_dialog_set; |
| 48 public static int date_picker_dialog_title; | 49 public static int date_picker_dialog_title; |
| 49 public static int date_time_picker_dialog_title; | 50 public static int date_time_picker_dialog_title; |
| 50 public static int media_player_error_button; | 51 public static int media_player_error_button; |
| 51 public static int media_player_error_text_invalid_progressive_playback; | 52 public static int media_player_error_text_invalid_progressive_playback; |
| 52 public static int media_player_error_text_unknown; | 53 public static int media_player_error_text_unknown; |
| 53 public static int media_player_error_title; | 54 public static int media_player_error_title; |
| 54 public static int media_player_loading_video; | 55 public static int media_player_loading_video; |
| 55 public static int month_picker_dialog_title; | 56 public static int month_picker_dialog_title; |
| 57 public static int week_picker_dialog_title; |
| 56 } | 58 } |
| 57 } | 59 } |
| OLD | NEW |