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

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

Issue 12567020: [android] Resize the android_webview if it's 0x0 initially. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
54 * and best-effort basis. Used for WebView.onScaleChanged.
55 */
56 public void onScaleChanged(float oldScale, float newScale) {
57 }
58
59 /**
60 * Notifies the client that the position of the top controls has changed. 45 * 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. 46 * @param topControlsOffsetYPix The Y offset of the top controls in physical pixels.
62 * @param contentOffsetYPix The Y offset of the content in physical pixels. 47 * @param contentOffsetYPix The Y offset of the content in physical pixels.
63 * @param overdrawBottomHeightPix The overdraw height. 48 * @param overdrawBottomHeightPix The overdraw height.
64 */ 49 */
65 public void onOffsetsForFullscreenChanged( 50 public void onOffsetsForFullscreenChanged(
66 float topControlsOffsetYPix, float contentOffsetYPix, float overdraw BottomHeightPix) { 51 float topControlsOffsetYPix, float contentOffsetYPix, float overdraw BottomHeightPix) {
67 } 52 }
68 53
69 public void onTabCrash() { 54 public void onTabCrash() {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 try { 153 try {
169 context.startActivity(intent); 154 context.startActivity(intent);
170 } catch (ActivityNotFoundException ex) { 155 } catch (ActivityNotFoundException ex) {
171 Log.w(TAG, "No application can handle " + intentUrl); 156 Log.w(TAG, "No application can handle " + intentUrl);
172 } 157 }
173 } 158 }
174 159
175 public void onExternalVideoSurfaceRequested(int playerId) { 160 public void onExternalVideoSurfaceRequested(int playerId) {
176 } 161 }
177 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698