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.gfx.NativeWindow; |
| 14 |
13 /** | 15 /** |
14 * A version of {@link ContentView} that supports JellyBean features. | 16 * A version of {@link ContentView} that supports JellyBean features. |
15 */ | 17 */ |
16 class JellyBeanContentView extends ContentView { | 18 class JellyBeanContentView extends ContentView { |
17 JellyBeanContentView(Context context, int nativeWebContents, AttributeSet at
trs, int defStyle, | 19 JellyBeanContentView(Context context, int nativeWebContents, NativeWindow na
tiveWindow, |
18 int personality) { | 20 AttributeSet attrs, int defStyle, int personality) { |
19 super(context, nativeWebContents, attrs, defStyle, personality); | 21 super(context, nativeWebContents, nativeWindow, attrs, defStyle, persona
lity); |
20 } | 22 } |
21 | 23 |
22 @Override | 24 @Override |
23 public boolean performAccessibilityAction(int action, Bundle arguments) { | 25 public boolean performAccessibilityAction(int action, Bundle arguments) { |
24 if (getContentViewCore().supportsAccessibilityAction(action)) { | 26 if (getContentViewCore().supportsAccessibilityAction(action)) { |
25 return getContentViewCore().performAccessibilityAction(action, argum
ents); | 27 return getContentViewCore().performAccessibilityAction(action, argum
ents); |
26 } | 28 } |
27 | 29 |
28 return super.performAccessibilityAction(action, arguments); | 30 return super.performAccessibilityAction(action, arguments); |
29 } | 31 } |
30 } | 32 } |
OLD | NEW |