Home | History | Annotate | Download | only in ui
      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
      3 // found in the LICENSE file.
      4 
      5 package org.chromium.ui;
      6 
      7 /**
      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.
     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
     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
     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.
     16  */
     17 public final class R {
     18     public static final class string {
     19         public static int copy_to_clipboard_failure_message;
     20         public static int low_memory_error;
     21         public static int opening_file_error;
     22         public static int color_picker_button_more;
     23         public static int color_picker_hue;
     24         public static int color_picker_saturation;
     25         public static int color_picker_value;
     26         public static int color_picker_button_set;
     27         public static int color_picker_button_cancel;
     28         public static int color_picker_dialog_title;
     29         public static int color_picker_button_red;
     30         public static int color_picker_button_cyan;
     31         public static int color_picker_button_blue;
     32         public static int color_picker_button_green;
     33         public static int color_picker_button_magenta;
     34         public static int color_picker_button_yellow;
     35         public static int color_picker_button_black;
     36         public static int color_picker_button_white;
     37     }
     38     public static final class id {
     39         public static int autofill_label;
     40         public static int autofill_popup_window;
     41         public static int autofill_sublabel;
     42         public static int selected_color_view;
     43         public static int title;
     44         public static int more_colors_button;
     45         public static int color_picker_advanced;
     46         public static int color_picker_simple;
     47         public static int color_button_swatch;
     48         public static int more_colors_button_border;
     49         public static int color_picker_simple_border;
     50         public static int gradient;
     51         public static int text;
     52         public static int seek_bar;
     53     }
     54     public static final class layout {
     55         public static int autofill_text;
     56         public static int color_picker_dialog_title;
     57         public static int color_picker_dialog_content;
     58         public static int color_picker_advanced_component;
     59     }
     60     public static final class drawable {
     61         public static int color_button_background;
     62         public static int color_picker_advanced_select_handle;
     63     }
     64     public static final class style {
     65         public static int AutofillPopupWindow;
     66     }
     67     public static final class color {
     68         public static int autofill_dark_divider_color;
     69         public static int autofill_divider_color;
     70         public static int color_picker_border_color;
     71     }
     72     public static final class dimen {
     73         public static int autofill_text_height;
     74         public static int autofill_text_divider_height;
     75         public static int color_button_height;
     76     }
     77 }
     78