| 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.Context; | 7 import android.content.Context; |
| 8 import android.os.Bundle; | 8 import android.os.Bundle; |
| 9 import android.util.AttributeSet; | 9 import android.util.AttributeSet; |
| 10 import android.view.View; | 10 import android.view.View; |
| 11 import android.view.accessibility.AccessibilityNodeInfo; | 11 import android.view.accessibility.AccessibilityNodeInfo; |
| 12 | 12 |
| 13 import org.chromium.ui.WindowAndroid; | 13 import org.chromium.ui.WindowAndroid; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * A version of {@link ContentView} that supports JellyBean features. | 16 * A version of {@link ContentView} that supports JellyBean features. |
| 17 */ | 17 */ |
| 18 class JellyBeanContentView extends ContentView { | 18 class JellyBeanContentView extends ContentView { |
| 19 JellyBeanContentView(Context context, int nativeWebContents, WindowAndroid n
ativeWindow, | 19 JellyBeanContentView(Context context, int nativeWebContents, WindowAndroid w
indowAndroid, |
| 20 AttributeSet attrs, int defStyle, int personality) { | 20 AttributeSet attrs, int defStyle, int personality) { |
| 21 super(context, nativeWebContents, nativeWindow, attrs, defStyle, persona
lity); | 21 super(context, nativeWebContents, windowAndroid, attrs, defStyle, person
ality); |
| 22 } | 22 } |
| 23 | 23 |
| 24 @Override | 24 @Override |
| 25 public boolean performAccessibilityAction(int action, Bundle arguments) { | 25 public boolean performAccessibilityAction(int action, Bundle arguments) { |
| 26 if (getContentViewCore().supportsAccessibilityAction(action)) { | 26 if (getContentViewCore().supportsAccessibilityAction(action)) { |
| 27 return getContentViewCore().performAccessibilityAction(action, argum
ents); | 27 return getContentViewCore().performAccessibilityAction(action, argum
ents); |
| 28 } | 28 } |
| 29 | 29 |
| 30 return super.performAccessibilityAction(action, arguments); | 30 return super.performAccessibilityAction(action, arguments); |
| 31 } | 31 } |
| 32 } | 32 } |
| OLD | NEW |