Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewDelegateFactory.java

Issue 2298093008: android webview: Upstream android 7 glue layer (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 com.android.webview.chromium; 5 package com.android.webview.chromium;
6 6
7 import android.annotation.TargetApi; 7 import android.annotation.TargetApi;
8 import android.app.Application; 8 import android.app.Application;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.ContextWrapper; 10 import android.content.ContextWrapper;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 @Override 147 @Override
148 public void callDrawGlFunction(Canvas canvas, long nativeDrawGLFunctor) { 148 public void callDrawGlFunction(Canvas canvas, long nativeDrawGLFunctor) {
149 mDelegate.callDrawGlFunction(canvas, nativeDrawGLFunctor); 149 mDelegate.callDrawGlFunction(canvas, nativeDrawGLFunctor);
150 } 150 }
151 151
152 @Override 152 @Override
153 public void callDrawGlFunction( 153 public void callDrawGlFunction(
154 Canvas canvas, long nativeDrawGLFunctor, Runnable releasedRunnab le) { 154 Canvas canvas, long nativeDrawGLFunctor, Runnable releasedRunnab le) {
155 throw new RuntimeException("Call not supported"); 155 mDelegate.callDrawGlFunction(canvas, nativeDrawGLFunctor, releasedRu nnable);
156 } 156 }
157 157
158 @Override 158 @Override
159 public void detachDrawGlFunctor(View containerView, long nativeDrawGLFun ctor) { 159 public void detachDrawGlFunctor(View containerView, long nativeDrawGLFun ctor) {
160 mDelegate.detachDrawGlFunctor(containerView, nativeDrawGLFunctor); 160 mDelegate.detachDrawGlFunctor(containerView, nativeDrawGLFunctor);
161 } 161 }
162 162
163 @Override 163 @Override
164 public int getPackageId(Resources resources, String packageName) { 164 public int getPackageId(Resources resources, String packageName) {
165 return mDelegate.getPackageId(resources, packageName); 165 return mDelegate.getPackageId(resources, packageName);
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Avoid calling the ContextWrapper.getAssets() proxy 378 // Avoid calling the ContextWrapper.getAssets() proxy
379 // chain, which can return an unexpected AssetManager. 379 // chain, which can return an unexpected AssetManager.
380 mAddAssetPathMethod.invoke( 380 mAddAssetPathMethod.invoke(
381 context.getResources().getAssets(), info.applicationInfo .sourceDir); 381 context.getResources().getAssets(), info.applicationInfo .sourceDir);
382 } catch (Exception e) { 382 } catch (Exception e) {
383 throw new RuntimeException("Invalid reflection", e); 383 throw new RuntimeException("Invalid reflection", e);
384 } 384 }
385 } 385 }
386 } 386 }
387 } 387 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698