- add sources.
[platform/framework/web/crosswalk.git] / src / android_webview / test / shell / src / org / chromium / android_webview / shell / AwShellResourceProvider.java
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.android_webview.shell;
6
7 import android.content.Context;
8
9 import org.chromium.android_webview.AwResource;
10
11 public class AwShellResourceProvider {
12     private static boolean sInitialized;
13
14     public static void registerResources(Context context) {
15         if (sInitialized) {
16             return;
17         }
18
19         AwResource.setResources(context.getResources());
20
21         AwResource.RAW_LOAD_ERROR = R.raw.blank_html;
22         AwResource.RAW_NO_DOMAIN = R.raw.blank_html;
23
24         AwResource.STRING_DEFAULT_TEXT_ENCODING = R.string.test_string;
25
26         sInitialized = true;
27     }
28 }