| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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.util.Log; | 10 import android.util.Log; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * Called whenever the background color of the page changes as notified by W
ebKit. | 38 * Called whenever the background color of the page changes as notified by W
ebKit. |
| 39 * @param color The new ARGB color of the page background. | 39 * @param color The new ARGB color of the page background. |
| 40 */ | 40 */ |
| 41 public void onBackgroundColorChanged(int color) { | 41 public void onBackgroundColorChanged(int color) { |
| 42 } | 42 } |
| 43 | 43 |
| 44 /** | 44 /** |
| 45 * Notifies that the content size has changed. | |
| 46 * @param widthCss The width of the content in CSS pixels. | |
| 47 * @param heightCss The height of the content in CSS pixels. | |
| 48 */ | |
| 49 public void onContentSizeChanged(float widthCss, float heightCss) { | |
| 50 } | |
| 51 | |
| 52 /** | |
| 53 * Lets client listen on the scaling changes on delayed, throttled | 45 * Lets client listen on the scaling changes on delayed, throttled |
| 54 * and best-effort basis. Used for WebView.onScaleChanged. | 46 * and best-effort basis. Used for WebView.onScaleChanged. |
| 55 */ | 47 */ |
| 56 public void onScaleChanged(float oldScale, float newScale) { | 48 public void onScaleChanged(float oldScale, float newScale) { |
| 57 } | 49 } |
| 58 | 50 |
| 59 /** | 51 /** |
| 60 * Notifies the client that the position of the top controls has changed. | 52 * Notifies the client that the position of the top controls has changed. |
| 61 * @param topControlsOffsetYPix The Y offset of the top controls in physical
pixels. | 53 * @param topControlsOffsetYPix The Y offset of the top controls in physical
pixels. |
| 62 * @param contentOffsetYPix The Y offset of the content in physical pixels. | 54 * @param contentOffsetYPix The Y offset of the content in physical pixels. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 try { | 160 try { |
| 169 context.startActivity(intent); | 161 context.startActivity(intent); |
| 170 } catch (ActivityNotFoundException ex) { | 162 } catch (ActivityNotFoundException ex) { |
| 171 Log.w(TAG, "No application can handle " + intentUrl); | 163 Log.w(TAG, "No application can handle " + intentUrl); |
| 172 } | 164 } |
| 173 } | 165 } |
| 174 | 166 |
| 175 public void onExternalVideoSurfaceRequested(int playerId) { | 167 public void onExternalVideoSurfaceRequested(int playerId) { |
| 176 } | 168 } |
| 177 } | 169 } |
| OLD | NEW |