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.KeyEvent; | 10 import android.view.KeyEvent; |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 /** | 206 /** |
207 * ContentViewClient users can return a custom value to override the height
of | 207 * ContentViewClient users can return a custom value to override the height
of |
208 * the ContentView. By default, this method returns MeasureSpec.UNSPECIFIED,
which | 208 * the ContentView. By default, this method returns MeasureSpec.UNSPECIFIED,
which |
209 * indicates that the value should not be overridden. | 209 * indicates that the value should not be overridden. |
210 * | 210 * |
211 * @return The desired height of the ContentView. | 211 * @return The desired height of the ContentView. |
212 */ | 212 */ |
213 public int getDesiredHeightMeasureSpec() { | 213 public int getDesiredHeightMeasureSpec() { |
214 return UNSPECIFIED_MEASURE_SPEC; | 214 return UNSPECIFIED_MEASURE_SPEC; |
215 } | 215 } |
| 216 |
| 217 /** |
| 218 * Returns the left system window inset in pixels. The system window inset r
epresents the area |
| 219 * of a full-screen window that is partially or fully obscured by the status
bar, navigation |
| 220 * bar, IME or other system windows. |
| 221 * @return The left system window inset. |
| 222 */ |
| 223 public int getSystemWindowInsetLeft() { |
| 224 return 0; |
| 225 } |
| 226 |
| 227 /** |
| 228 * Returns the top system window inset in pixels. The system window inset re
presents the area of |
| 229 * a full-screen window that is partially or fully obscured by the status ba
r, navigation bar, |
| 230 * IME or other system windows. |
| 231 * @return The top system window inset. |
| 232 */ |
| 233 public int getSystemWindowInsetTop() { |
| 234 return 0; |
| 235 } |
| 236 |
| 237 /** |
| 238 * Returns the right system window inset in pixels. The system window inset
represents the area |
| 239 * of a full-screen window that is partially or fully obscured by the status
bar, navigation |
| 240 * bar, IME or other system windows. |
| 241 * @return The right system window inset. |
| 242 */ |
| 243 public int getSystemWindowInsetRight() { |
| 244 return 0; |
| 245 } |
| 246 |
| 247 /** |
| 248 * Returns the bottom system window inset in pixels. The system window inset
represents the area |
| 249 * of a full-screen window that is partially or fully obscured by the status
bar, navigation |
| 250 * bar, IME or other system windows. |
| 251 * @return The bottom system window inset. |
| 252 */ |
| 253 public int getSystemWindowInsetBottom() { |
| 254 return 0; |
| 255 } |
216 } | 256 } |
OLD | NEW |