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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 2585643002: Always show 'WEB SEARCH' item in action mode on Chrome (Closed)
Patch Set: Created 4 years 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 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.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.app.Activity; 9 import android.app.Activity;
10 import android.content.ComponentCallbacks2; 10 import android.content.ComponentCallbacks2;
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 } 822 }
823 823
824 private void initializeContentViewCore(ContentViewCore contentViewCore, 824 private void initializeContentViewCore(ContentViewCore contentViewCore,
825 Context context, ViewAndroidDelegate viewDelegate, 825 Context context, ViewAndroidDelegate viewDelegate,
826 InternalAccessDelegate internalDispatcher, WebContents webContents, 826 InternalAccessDelegate internalDispatcher, WebContents webContents,
827 GestureStateListener gestureStateListener, ContentViewClient content ViewClient, 827 GestureStateListener gestureStateListener, ContentViewClient content ViewClient,
828 ContentViewCore.ZoomControlsDelegate zoomControlsDelegate, 828 ContentViewCore.ZoomControlsDelegate zoomControlsDelegate,
829 WindowAndroid windowAndroid) { 829 WindowAndroid windowAndroid) {
830 contentViewCore.initialize(viewDelegate, internalDispatcher, webContents , windowAndroid); 830 contentViewCore.initialize(viewDelegate, internalDispatcher, webContents , windowAndroid);
831 contentViewCore.setActionModeCallback( 831 contentViewCore.setActionModeCallback(
832 new AwActionModeCallback(this, contentViewCore.getActionModeCall backHelper())); 832 new AwActionModeCallback(mContext, this,
833 contentViewCore.getActionModeCallbackHelper()));
833 contentViewCore.addGestureStateListener(gestureStateListener); 834 contentViewCore.addGestureStateListener(gestureStateListener);
834 contentViewCore.setContentViewClient(contentViewClient); 835 contentViewCore.setContentViewClient(contentViewClient);
835 contentViewCore.setZoomControlsDelegate(zoomControlsDelegate); 836 contentViewCore.setZoomControlsDelegate(zoomControlsDelegate);
836 } 837 }
837 838
838 boolean isFullScreen() { 839 boolean isFullScreen() {
839 return mFullScreenTransitionsState.isFullScreen(); 840 return mFullScreenTransitionsState.isFullScreen();
840 } 841 }
841 842
842 /** 843 /**
(...skipping 2549 matching lines...) Expand 10 before | Expand all | Expand 10 after
3392 3393
3393 private native void nativePostMessageToFrame(long nativeAwContents, String f rameId, 3394 private native void nativePostMessageToFrame(long nativeAwContents, String f rameId,
3394 String message, String targetOrigin, int[] msgPorts); 3395 String message, String targetOrigin, int[] msgPorts);
3395 3396
3396 private native void nativeCreateMessageChannel( 3397 private native void nativeCreateMessageChannel(
3397 long nativeAwContents, AppWebMessagePort[] ports); 3398 long nativeAwContents, AppWebMessagePort[] ports);
3398 3399
3399 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents); 3400 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents);
3400 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents); 3401 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents);
3401 } 3402 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698