OLD | NEW |
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 /** | 166 /** |
167 * Called when BrowserMediaPlayerManager wants to load a media resource. | 167 * Called when BrowserMediaPlayerManager wants to load a media resource. |
168 * @param url the URL of media resource to load. | 168 * @param url the URL of media resource to load. |
169 * @return true to prevent the resource from being loaded. | 169 * @return true to prevent the resource from being loaded. |
170 */ | 170 */ |
171 public boolean shouldBlockMediaRequest(String url) { | 171 public boolean shouldBlockMediaRequest(String url) { |
172 return false; | 172 return false; |
173 } | 173 } |
174 | 174 |
175 /** | 175 /** |
176 * @return Whether an externally managed (i.e., not compositor-driven) fling | |
177 * of this ContentView is active. | |
178 */ | |
179 public boolean isExternalScrollActive() { | |
180 return false; | |
181 } | |
182 | |
183 /** | |
184 * Check whether a key should be propagated to the embedder or not. | 176 * Check whether a key should be propagated to the embedder or not. |
185 * We need to send almost every key to Blink. However: | 177 * We need to send almost every key to Blink. However: |
186 * 1. We don't want to block the device on the renderer for | 178 * 1. We don't want to block the device on the renderer for |
187 * some keys like menu, home, call. | 179 * some keys like menu, home, call. |
188 * 2. There are no WebKit equivalents for some of these keys | 180 * 2. There are no WebKit equivalents for some of these keys |
189 * (see app/keyboard_codes_win.h) | 181 * (see app/keyboard_codes_win.h) |
190 * Note that these are not the same set as KeyEvent.isSystemKey: | 182 * Note that these are not the same set as KeyEvent.isSystemKey: |
191 * for instance, AKEYCODE_MEDIA_* will be dispatched to webkit*. | 183 * for instance, AKEYCODE_MEDIA_* will be dispatched to webkit*. |
192 */ | 184 */ |
193 public static boolean shouldPropagateKey(int keyCode) { | 185 public static boolean shouldPropagateKey(int keyCode) { |
(...skipping 29 matching lines...) Expand all Loading... |
223 * ContentViewClient users can return a custom value to override the height
of | 215 * ContentViewClient users can return a custom value to override the height
of |
224 * the ContentView. By default, this method returns MeasureSpec.UNSPECIFIED,
which | 216 * the ContentView. By default, this method returns MeasureSpec.UNSPECIFIED,
which |
225 * indicates that the value should not be overridden. | 217 * indicates that the value should not be overridden. |
226 * | 218 * |
227 * @return The desired height of the ContentView. | 219 * @return The desired height of the ContentView. |
228 */ | 220 */ |
229 public int getDesiredHeightMeasureSpec() { | 221 public int getDesiredHeightMeasureSpec() { |
230 return UNSPECIFIED_MEASURE_SPEC; | 222 return UNSPECIFIED_MEASURE_SPEC; |
231 } | 223 } |
232 } | 224 } |
OLD | NEW |