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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java

Issue 2756813002: Refactor ContentViewClient (5/6) (Closed)
Patch Set: fix bug/tests Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/java/DEPS ('k') | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java b/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java
deleted file mode 100644
index 846722b4d17c0c7c0b1ae59df39843986438b091..0000000000000000000000000000000000000000
--- a/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.android_webview;
-
-import android.view.KeyEvent;
-
-import org.chromium.content.browser.ContentViewClient;
-
-/**
- * ContentViewClient implementation for WebView
- */
-public class AwContentViewClient extends ContentViewClient {
- private static final String TAG = "AwCVC";
-
- private final AwContentsClient mAwContentsClient;
- private final AwSettings mAwSettings;
- private final AwContents mAwContents;
-
- public AwContentViewClient(
- AwContentsClient awContentsClient, AwSettings awSettings, AwContents awContents) {
- mAwContentsClient = awContentsClient;
- mAwSettings = awSettings;
- mAwContents = awContents;
- }
-
- @Override
- public boolean shouldOverrideKeyEvent(KeyEvent event) {
- if (mAwContentsClient.hasWebViewClient()) {
- // The check below is reflecting Chrome's behavior and is a workaround for
- // http://b/7697782.
- if (!shouldPropagateKey(event.getKeyCode())) return true;
- return mAwContentsClient.shouldOverrideKeyEvent(event);
- }
-
- return super.shouldOverrideKeyEvent(event);
- }
-}
« no previous file with comments | « android_webview/java/DEPS ('k') | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698