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.graphics.RectF; | |
11 import android.util.Log; | 10 import android.util.Log; |
12 import android.view.ActionMode; | 11 import android.view.ActionMode; |
13 import android.view.KeyEvent; | 12 import android.view.KeyEvent; |
14 | 13 |
15 import org.chromium.content.browser.SelectActionModeCallback.ActionHandler; | 14 import org.chromium.content.browser.SelectActionModeCallback.ActionHandler; |
16 | 15 |
17 import java.net.URISyntaxException; | 16 import java.net.URISyntaxException; |
18 | 17 |
19 /** | 18 /** |
20 * Main callback class used by ContentView. | 19 * Main callback class used by ContentView. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 return; | 153 return; |
155 } | 154 } |
156 | 155 |
157 try { | 156 try { |
158 context.startActivity(intent); | 157 context.startActivity(intent); |
159 } catch (ActivityNotFoundException ex) { | 158 } catch (ActivityNotFoundException ex) { |
160 Log.w(TAG, "No application can handle " + intentUrl); | 159 Log.w(TAG, "No application can handle " + intentUrl); |
161 } | 160 } |
162 } | 161 } |
163 | 162 |
164 public void onExternalVideoSurfaceRequested(int playerId) { | |
165 } | |
166 | |
167 public void onGeometryChanged(int playerId, RectF rect) { | |
168 } | |
169 | |
170 public ContentVideoViewClient getContentVideoViewClient() { | 163 public ContentVideoViewClient getContentVideoViewClient() { |
171 return null; | 164 return null; |
172 } | 165 } |
173 | 166 |
174 /** | 167 /** |
175 * Called when BrowserMediaPlayerManager wants to load a media resource. | 168 * Called when BrowserMediaPlayerManager wants to load a media resource. |
176 * @param url the URL of media resource to load. | 169 * @param url the URL of media resource to load. |
177 * @return true to prevent the resource from being loaded. | 170 * @return true to prevent the resource from being loaded. |
178 */ | 171 */ |
179 public boolean shouldBlockMediaRequest(String url) { | 172 public boolean shouldBlockMediaRequest(String url) { |
180 return false; | 173 return false; |
181 } | 174 } |
182 | 175 |
183 } | 176 } |
OLD | NEW |