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.ui; | 5 package org.chromium.ui; |
6 | 6 |
7 /** | 7 /** |
8 * Provide Android internal resources to Chrome's ui layer. This allows classes | 8 * Provide Android internal resources to Chrome's ui layer. This allows classes |
9 * that access resources via org.chromium.ui.R to function properly in webview. | 9 * that access resources via org.chromium.ui.R to function properly in webview. |
10 * In a normal Chrome build, ui resources live in a res folder in the ui layer | 10 * In a normal Chrome build, ui resources live in a res folder in the ui layer |
11 * and the org.chromium.ui.R class is generated at build time based on these | 11 * and the org.chromium.ui.R class is generated at build time based on these |
12 * resources. In webview, resources live in the Android framework and can't be | 12 * resources. In webview, resources live in the Android framework and can't be |
13 * accessed directly from the ui layer. Instead, we copy resources needed by ui | 13 * accessed directly from the ui layer. Instead, we copy resources needed by ui |
14 * into the Android framework and use this R class to map resources IDs from | 14 * into the Android framework and use this R class to map resources IDs from |
15 * org.chromium.ui.R to com.android.internal.R. | 15 * org.chromium.ui.R to com.android.internal.R. |
16 */ | 16 */ |
17 public final class R { | 17 public final class R { |
18 public static final class string { | 18 public static final class string { |
19 public static int low_memory_error; | 19 public static int low_memory_error; |
20 public static int opening_file_error; | 20 public static int opening_file_error; |
21 public static int color_picker_button_more; | 21 public static int color_picker_button_more; |
22 public static int color_picker_hue; | 22 public static int color_picker_hue; |
23 public static int color_picker_saturation; | 23 public static int color_picker_saturation; |
24 public static int color_picker_value; | 24 public static int color_picker_value; |
25 public static int color_picker_button_set; | 25 public static int color_picker_button_set; |
26 public static int color_picker_button_cancel; | 26 public static int color_picker_button_cancel; |
27 public static int color_picker_dialog_title; | 27 public static int color_picker_dialog_title; |
| 28 public static int color_picker_button_red; |
| 29 public static int color_picker_button_cyan; |
| 30 public static int color_picker_button_blue; |
| 31 public static int color_picker_button_green; |
| 32 public static int color_picker_button_magenta; |
| 33 public static int color_picker_button_yellow; |
| 34 public static int color_picker_button_black; |
| 35 public static int color_picker_button_white; |
28 } | 36 } |
29 public static final class id { | 37 public static final class id { |
30 public static int autofill_label; | 38 public static int autofill_label; |
31 public static int autofill_popup_window; | 39 public static int autofill_popup_window; |
32 public static int autofill_sublabel; | 40 public static int autofill_sublabel; |
33 public static int selected_color_view; | 41 public static int selected_color_view; |
34 public static int title; | 42 public static int title; |
35 public static int more_colors_button; | 43 public static int more_colors_button; |
36 public static int color_picker_advanced; | 44 public static int color_picker_advanced; |
37 public static int color_picker_simple; | 45 public static int color_picker_simple; |
| 46 public static int color_button_swatch; |
38 public static int more_colors_button_border; | 47 public static int more_colors_button_border; |
39 public static int color_picker_simple_border; | 48 public static int color_picker_simple_border; |
40 public static int gradient; | 49 public static int gradient; |
41 public static int text; | 50 public static int text; |
42 public static int seek_bar; | 51 public static int seek_bar; |
43 } | 52 } |
44 public static final class layout { | 53 public static final class layout { |
45 public static int autofill_text; | 54 public static int autofill_text; |
46 public static int color_picker_dialog_title; | 55 public static int color_picker_dialog_title; |
47 public static int color_picker_dialog_content; | 56 public static int color_picker_dialog_content; |
48 public static int color_picker_advanced_component; | 57 public static int color_picker_advanced_component; |
49 } | 58 } |
50 public static final class drawable { | 59 public static final class drawable { |
| 60 public static int color_button_background; |
51 public static int color_picker_advanced_select_handle; | 61 public static int color_picker_advanced_select_handle; |
52 } | 62 } |
53 public static final class style { | 63 public static final class style { |
54 public static int AutofillPopupWindow; | 64 public static int AutofillPopupWindow; |
55 } | 65 } |
56 public static final class color { | 66 public static final class color { |
57 public static int autofill_dark_divider_color; | 67 public static int autofill_dark_divider_color; |
58 public static int autofill_divider_color; | 68 public static int autofill_divider_color; |
59 public static int color_picker_border_color; | 69 public static int color_picker_border_color; |
60 } | 70 } |
61 public static final class dimen { | 71 public static final class dimen { |
62 public static int autofill_text_height; | 72 public static int autofill_text_height; |
63 public static int autofill_text_divider_height; | 73 public static int autofill_text_divider_height; |
| 74 public static int color_button_height; |
64 } | 75 } |
65 } | 76 } |
OLD | NEW |