OLD | NEW |
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.SuppressLint; | 7 import android.annotation.SuppressLint; |
8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
9 import android.app.assist.AssistStructure.ViewNode; | 9 import android.app.assist.AssistStructure.ViewNode; |
10 import android.content.Context; | 10 import android.content.Context; |
(...skipping 2081 matching lines...) Loading... |
2092 @Override | 2092 @Override |
2093 public void run() { | 2093 public void run() { |
2094 setLayerType(layerType, paint); | 2094 setLayerType(layerType, paint); |
2095 } | 2095 } |
2096 }); | 2096 }); |
2097 return; | 2097 return; |
2098 } | 2098 } |
2099 mAwContents.setLayerType(layerType, paint); | 2099 mAwContents.setLayerType(layerType, paint); |
2100 } | 2100 } |
2101 | 2101 |
| 2102 // Overrides method added to WebViewProvider.ViewDelegate interface |
| 2103 // (not called in M and below) |
| 2104 public Handler getHandler(Handler originalHandler) { |
| 2105 return originalHandler; |
| 2106 } |
| 2107 |
| 2108 // Overrides method added to WebViewProvider.ViewDelegate interface |
| 2109 // (not called in M and below) |
| 2110 public View findFocus(View originalFocusedView) { |
| 2111 return originalFocusedView; |
| 2112 } |
| 2113 |
2102 // Remove from superclass | 2114 // Remove from superclass |
2103 public void preDispatchDraw(Canvas canvas) { | 2115 public void preDispatchDraw(Canvas canvas) { |
2104 // TODO(leandrogracia): remove this method from WebViewProvider if we th
ink | 2116 // TODO(leandrogracia): remove this method from WebViewProvider if we th
ink |
2105 // we won't need it again. | 2117 // we won't need it again. |
2106 } | 2118 } |
2107 | 2119 |
2108 public void onStartTemporaryDetach() { | 2120 public void onStartTemporaryDetach() { |
2109 mAwContents.onStartTemporaryDetach(); | 2121 mAwContents.onStartTemporaryDetach(); |
2110 } | 2122 } |
2111 | 2123 |
(...skipping 218 matching lines...) Loading... |
2330 mAwContents.extractSmartClipData(x, y, width, height); | 2342 mAwContents.extractSmartClipData(x, y, width, height); |
2331 } | 2343 } |
2332 | 2344 |
2333 // Implements SmartClipProvider | 2345 // Implements SmartClipProvider |
2334 @Override | 2346 @Override |
2335 public void setSmartClipResultHandler(final Handler resultHandler) { | 2347 public void setSmartClipResultHandler(final Handler resultHandler) { |
2336 checkThread(); | 2348 checkThread(); |
2337 mAwContents.setSmartClipResultHandler(resultHandler); | 2349 mAwContents.setSmartClipResultHandler(resultHandler); |
2338 } | 2350 } |
2339 } | 2351 } |
OLD | NEW |