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

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

Issue 1865313003: aw: Add empty functor detach callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698