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

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

Issue 2896993002: Route OnDragEvent through ViewAndroid tree (Closed)
Patch Set: +ui/base Created 3 years, 7 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 | content/browser/android/content_view_core_impl.h » ('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 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 3170 matching lines...) Expand 10 before | Expand all | Expand 10 after
3181 } 3181 }
3182 3182
3183 @Override 3183 @Override
3184 public InputConnection onCreateInputConnection(EditorInfo outAttrs) { 3184 public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
3185 return isDestroyedOrNoOperation(NO_WARN) ? null 3185 return isDestroyedOrNoOperation(NO_WARN) ? null
3186 : mContentViewCore.onCreateInputConnection(outAttrs); 3186 : mContentViewCore.onCreateInputConnection(outAttrs);
3187 } 3187 }
3188 3188
3189 @Override 3189 @Override
3190 public boolean onDragEvent(DragEvent event) { 3190 public boolean onDragEvent(DragEvent event) {
3191 return mContentViewCore.onDragEvent(event); 3191 return mWebContents.getEventForwarder().onDragEvent(event, mContaine rView);
3192 } 3192 }
3193 3193
3194 @Override 3194 @Override
3195 public boolean onKeyUp(int keyCode, KeyEvent event) { 3195 public boolean onKeyUp(int keyCode, KeyEvent event) {
3196 return isDestroyedOrNoOperation(NO_WARN) ? false 3196 return isDestroyedOrNoOperation(NO_WARN) ? false
3197 : mContentViewCore.onKeyUp(keyCode, event); 3197 : mContentViewCore.onKeyUp(keyCode, event);
3198 } 3198 }
3199 3199
3200 @Override 3200 @Override
3201 public boolean dispatchKeyEvent(KeyEvent event) { 3201 public boolean dispatchKeyEvent(KeyEvent event) {
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
3528 private native void nativeTrimMemory(long nativeAwContents, int level, boole an visible); 3528 private native void nativeTrimMemory(long nativeAwContents, int level, boole an visible);
3529 3529
3530 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); 3530 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter);
3531 3531
3532 private native void nativePreauthorizePermission(long nativeAwContents, Stri ng origin, 3532 private native void nativePreauthorizePermission(long nativeAwContents, Stri ng origin,
3533 long resources); 3533 long resources);
3534 3534
3535 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents); 3535 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents);
3536 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents); 3536 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents);
3537 } 3537 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698