OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_apk; | 5 package org.chromium.content_shell_apk; |
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; | |
12 import android.view.KeyEvent; | 11 import android.view.KeyEvent; |
13 import android.widget.Toast; | 12 import android.widget.Toast; |
14 | 13 |
15 import org.chromium.base.BaseSwitches; | 14 import org.chromium.base.BaseSwitches; |
16 import org.chromium.base.CommandLine; | 15 import org.chromium.base.CommandLine; |
| 16 import org.chromium.base.Log; |
17 import org.chromium.base.MemoryPressureListener; | 17 import org.chromium.base.MemoryPressureListener; |
18 import org.chromium.base.annotations.SuppressFBWarnings; | 18 import org.chromium.base.annotations.SuppressFBWarnings; |
19 import org.chromium.base.library_loader.LibraryLoader; | 19 import org.chromium.base.library_loader.LibraryLoader; |
20 import org.chromium.base.library_loader.LibraryProcessType; | 20 import org.chromium.base.library_loader.LibraryProcessType; |
21 import org.chromium.base.library_loader.ProcessInitException; | 21 import org.chromium.base.library_loader.ProcessInitException; |
22 import org.chromium.content.app.ContentApplication; | 22 import org.chromium.content.app.ContentApplication; |
23 import org.chromium.content.browser.BrowserStartupController; | 23 import org.chromium.content.browser.BrowserStartupController; |
24 import org.chromium.content.browser.ContentViewCore; | 24 import org.chromium.content.browser.ContentViewCore; |
25 import org.chromium.content.browser.DeviceUtils; | 25 import org.chromium.content.browser.DeviceUtils; |
26 import org.chromium.content.common.ContentSwitches; | 26 import org.chromium.content.common.ContentSwitches; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 /** | 256 /** |
257 * @return The {@link WebContents} owned by the currently visible {@link She
ll} or null if | 257 * @return The {@link WebContents} owned by the currently visible {@link She
ll} or null if |
258 * one is not showing. | 258 * one is not showing. |
259 */ | 259 */ |
260 public WebContents getActiveWebContents() { | 260 public WebContents getActiveWebContents() { |
261 Shell shell = getActiveShell(); | 261 Shell shell = getActiveShell(); |
262 return shell != null ? shell.getWebContents() : null; | 262 return shell != null ? shell.getWebContents() : null; |
263 } | 263 } |
264 | 264 |
265 } | 265 } |
OLD | NEW |