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_shell; | 5 package org.chromium.content_shell; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.Intent; | 8 import android.content.Intent; |
9 import android.os.Bundle; | 9 import android.os.Bundle; |
10 import android.text.TextUtils; | 10 import android.text.TextUtils; |
11 import android.util.Log; | 11 import android.util.Log; |
12 import android.view.KeyEvent; | 12 import android.view.KeyEvent; |
13 | 13 |
14 import org.chromium.content.browser.CommandLine; | 14 import org.chromium.content.app.LibraryLoader; |
15 import org.chromium.content.browser.ContentView; | 15 import org.chromium.content.browser.ContentView; |
16 import org.chromium.content.browser.LibraryLoader; | 16 import org.chromium.content.common.CommandLine; |
17 | 17 |
18 /** | 18 /** |
19 * Activity for managing the Content Shell. | 19 * Activity for managing the Content Shell. |
20 */ | 20 */ |
21 public class ContentShellActivity extends Activity { | 21 public class ContentShellActivity extends Activity { |
22 | 22 |
23 private static final String COMMAND_LINE_FILE = "/data/local/content-shell-c
ommand-line"; | 23 private static final String COMMAND_LINE_FILE = "/data/local/content-shell-c
ommand-line"; |
24 private static final String TAG = ContentShellActivity.class.getName(); | 24 private static final String TAG = ContentShellActivity.class.getName(); |
25 | 25 |
26 private ShellManager mShellManager; | 26 private ShellManager mShellManager; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 */ | 95 */ |
96 public ShellView getActiveShellView() { | 96 public ShellView getActiveShellView() { |
97 return mShellManager != null ? mShellManager.getActiveShellView() : null
; | 97 return mShellManager != null ? mShellManager.getActiveShellView() : null
; |
98 } | 98 } |
99 | 99 |
100 private void initializeContentViewResources() { | 100 private void initializeContentViewResources() { |
101 ContentView.registerPopupOverlayCornerRadius(0); | 101 ContentView.registerPopupOverlayCornerRadius(0); |
102 ContentView.registerPopupOverlayResourceId(R.drawable.popup_zoomer_overl
ay); | 102 ContentView.registerPopupOverlayResourceId(R.drawable.popup_zoomer_overl
ay); |
103 } | 103 } |
104 } | 104 } |
OLD | NEW |