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

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

Issue 14018004: [Android] Refactor NativeView to be able to use it for AutofillDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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.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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698