OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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.android_webview; | 5 package org.chromium.android_webview; |
6 | 6 |
| 7 import android.content.res.Resources; |
| 8 |
7 import org.chromium.base.CalledByNative; | 9 import org.chromium.base.CalledByNative; |
8 import org.chromium.base.JNINamespace; | 10 import org.chromium.base.JNINamespace; |
9 | 11 |
10 import android.content.res.Resources; | |
11 | |
12 import java.io.IOException; | 12 import java.io.IOException; |
13 import java.io.InputStream; | |
14 import java.io.InputStreamReader; | 13 import java.io.InputStreamReader; |
15 import java.lang.ref.SoftReference; | 14 import java.lang.ref.SoftReference; |
16 import java.util.HashMap; | 15 import java.util.HashMap; |
17 import java.util.Map; | 16 import java.util.Map; |
18 import java.util.NoSuchElementException; | 17 import java.util.NoSuchElementException; |
19 import java.util.Scanner; | 18 import java.util.Scanner; |
20 | 19 |
21 @JNINamespace("android_webview::AwResource") | 20 @JNINamespace("android_webview::AwResource") |
22 public class AwResource { | 21 public class AwResource { |
23 // The following resource ID's must be initialized by the embedder. | 22 // The following resource ID's must be initialized by the embedder. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 try { | 107 try { |
109 if (isr != null) { | 108 if (isr != null) { |
110 isr.close(); | 109 isr.close(); |
111 } | 110 } |
112 } catch (IOException e) { | 111 } catch (IOException e) { |
113 } | 112 } |
114 } | 113 } |
115 return result; | 114 return result; |
116 } | 115 } |
117 } | 116 } |
OLD | NEW |