JellyBeanContentView.java revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
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 3// found in the LICENSE file. 4 5package org.chromium.content.browser; 6 7import android.content.Context; 8import android.os.Bundle; 9import android.util.AttributeSet; 10import android.view.View; 11import android.view.accessibility.AccessibilityNodeInfo; 12 13import org.chromium.ui.WindowAndroid; 14 15/** 16 * A version of {@link ContentView} that supports JellyBean features. 17 */ 18class JellyBeanContentView extends ContentView { 19 JellyBeanContentView(Context context, int nativeWebContents, WindowAndroid windowAndroid, 20 AttributeSet attrs, int defStyle, int personality) { 21 super(context, nativeWebContents, windowAndroid, attrs, defStyle, personality); 22 } 23 24 @Override 25 public boolean performAccessibilityAction(int action, Bundle arguments) { 26 if (getContentViewCore().supportsAccessibilityAction(action)) { 27 return getContentViewCore().performAccessibilityAction(action, arguments); 28 } 29 30 return super.performAccessibilityAction(action, arguments); 31 } 32}