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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java

Issue 1063853005: Unify Android Webview and Chrome's fling (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Created 5 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
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.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.content.ActivityNotFoundException; 7 import android.content.ActivityNotFoundException;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.view.ActionMode; 10 import android.view.ActionMode;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 * @return true to prevent the resource from being loaded. 165 * @return true to prevent the resource from being loaded.
166 */ 166 */
167 public boolean shouldBlockMediaRequest(String url) { 167 public boolean shouldBlockMediaRequest(String url) {
168 return false; 168 return false;
169 } 169 }
170 170
171 /** 171 /**
172 * @return Whether an externally managed (i.e., not compositor-driven) fling 172 * @return Whether an externally managed (i.e., not compositor-driven) fling
173 * of this ContentView is active. 173 * of this ContentView is active.
174 */ 174 */
175 public boolean isExternalFlingActive() { 175 public boolean isExternalScrollActive() {
176 return false; 176 return false;
177 } 177 }
178 178
179 /** 179 /**
180 * Check whether a key should be propagated to the embedder or not. 180 * Check whether a key should be propagated to the embedder or not.
181 * We need to send almost every key to Blink. However: 181 * We need to send almost every key to Blink. However:
182 * 1. We don't want to block the device on the renderer for 182 * 1. We don't want to block the device on the renderer for
183 * some keys like menu, home, call. 183 * some keys like menu, home, call.
184 * 2. There are no WebKit equivalents for some of these keys 184 * 2. There are no WebKit equivalents for some of these keys
185 * (see app/keyboard_codes_win.h) 185 * (see app/keyboard_codes_win.h)
(...skipping 11 matching lines...) Expand all
197 || keyCode == KeyEvent.KEYCODE_CAMERA 197 || keyCode == KeyEvent.KEYCODE_CAMERA
198 || keyCode == KeyEvent.KEYCODE_FOCUS 198 || keyCode == KeyEvent.KEYCODE_FOCUS
199 || keyCode == KeyEvent.KEYCODE_VOLUME_DOWN 199 || keyCode == KeyEvent.KEYCODE_VOLUME_DOWN
200 || keyCode == KeyEvent.KEYCODE_VOLUME_MUTE 200 || keyCode == KeyEvent.KEYCODE_VOLUME_MUTE
201 || keyCode == KeyEvent.KEYCODE_VOLUME_UP) { 201 || keyCode == KeyEvent.KEYCODE_VOLUME_UP) {
202 return false; 202 return false;
203 } 203 }
204 return true; 204 return true;
205 } 205 }
206 } 206 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698