| 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 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1882 if (checkNeedsPost()) { | 1882 if (checkNeedsPost()) { |
| 1883 mRunQueue.addTask(new Runnable() { | 1883 mRunQueue.addTask(new Runnable() { |
| 1884 @Override | 1884 @Override |
| 1885 public void run() { | 1885 public void run() { |
| 1886 onDetachedFromWindow(); | 1886 onDetachedFromWindow(); |
| 1887 } | 1887 } |
| 1888 }); | 1888 }); |
| 1889 return; | 1889 return; |
| 1890 } | 1890 } |
| 1891 | 1891 |
| 1892 if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M && !"N".equals(Build.
VERSION.CODENAME)) { |
| 1893 mAwContents.onDrawGLFunctorDetached(); |
| 1894 } |
| 1892 mAwContents.onDetachedFromWindow(); | 1895 mAwContents.onDetachedFromWindow(); |
| 1893 } | 1896 } |
| 1894 | 1897 |
| 1895 @Override | 1898 @Override |
| 1896 public void onVisibilityChanged(final View changedView, final int visibility
) { | 1899 public void onVisibilityChanged(final View changedView, final int visibility
) { |
| 1897 // The AwContents will find out the container view visibility before the
first draw so we | 1900 // The AwContents will find out the container view visibility before the
first draw so we |
| 1898 // can safely ignore onVisibilityChanged callbacks that happen before in
it(). | 1901 // can safely ignore onVisibilityChanged callbacks that happen before in
it(). |
| 1899 if (mAwContents == null) return; | 1902 if (mAwContents == null) return; |
| 1900 | 1903 |
| 1901 if (checkNeedsPost()) { | 1904 if (checkNeedsPost()) { |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2356 mAwContents.extractSmartClipData(x, y, width, height); | 2359 mAwContents.extractSmartClipData(x, y, width, height); |
| 2357 } | 2360 } |
| 2358 | 2361 |
| 2359 // Implements SmartClipProvider | 2362 // Implements SmartClipProvider |
| 2360 @Override | 2363 @Override |
| 2361 public void setSmartClipResultHandler(final Handler resultHandler) { | 2364 public void setSmartClipResultHandler(final Handler resultHandler) { |
| 2362 checkThread(); | 2365 checkThread(); |
| 2363 mAwContents.setSmartClipResultHandler(resultHandler); | 2366 mAwContents.setSmartClipResultHandler(resultHandler); |
| 2364 } | 2367 } |
| 2365 } | 2368 } |
| OLD | NEW |