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

Unified Diff: android_webview/test/shell/src/org/chromium/android_webview/test/AndroidWebViewTestRunnerActivity.java

Issue 12880022: [android_webview] Rename AndroidWebView* -> Aw*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: android_webview/test/shell/src/org/chromium/android_webview/test/AndroidWebViewTestRunnerActivity.java
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/AndroidWebViewTestRunnerActivity.java b/android_webview/test/shell/src/org/chromium/android_webview/test/AndroidWebViewTestRunnerActivity.java
deleted file mode 100644
index 5abf5249c90647c1f0a7748af1efa9ae6e56f2d5..0000000000000000000000000000000000000000
--- a/android_webview/test/shell/src/org/chromium/android_webview/test/AndroidWebViewTestRunnerActivity.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2012 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.test;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.util.Log;
-import android.view.View;
-import android.view.ViewGroup.LayoutParams;
-import android.view.WindowManager;
-import android.widget.LinearLayout;
-
-/*
- * This is a lightweight activity for tests that only require WebView functionality.
- */
-public class AndroidWebViewTestRunnerActivity extends Activity {
-
- private LinearLayout mLinearLayout;
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- // TODO(joth): When SW-renderer is available, we'll want to enable this on a per-test
- // basis.
- boolean hardwareAccelerated = true;
- Log.i("AndroidWebViewTestRunnerActivity", "Is " + (hardwareAccelerated ? "" : "NOT ")
- + "hardware accelerated");
-
- if (hardwareAccelerated) {
- getWindow().setFlags(
- WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
- WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
- }
-
- mLinearLayout = new LinearLayout(this);
- mLinearLayout.setOrientation(LinearLayout.VERTICAL);
- mLinearLayout.setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);
- mLinearLayout.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
- LayoutParams.WRAP_CONTENT));
-
- setContentView(mLinearLayout);
- }
-
- /**
- * Adds a view to the main linear layout.
- */
- public void addView(View view) {
- view.setLayoutParams(new LinearLayout.LayoutParams(
- LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, 1f));
- mLinearLayout.addView(view);
- }
-
- /**
- * Clears the main linear layout.
- */
- public void removeAllViews() {
- mLinearLayout.removeAllViews();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698