OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.chrome.browser; | 5 package org.chromium.chrome.browser; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.graphics.Bitmap; | 9 import android.graphics.Bitmap; |
10 import android.graphics.Color; | 10 import android.graphics.Color; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; | 42 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; |
43 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType; | 43 import org.chromium.chrome.browser.tabmodel.TabModel.TabSelectionType; |
44 import org.chromium.chrome.browser.tabmodel.TabModelBase; | 44 import org.chromium.chrome.browser.tabmodel.TabModelBase; |
45 import org.chromium.chrome.browser.toolbar.ToolbarModel; | 45 import org.chromium.chrome.browser.toolbar.ToolbarModel; |
46 import org.chromium.chrome.browser.ui.toolbar.ToolbarModelSecurityLevel; | 46 import org.chromium.chrome.browser.ui.toolbar.ToolbarModelSecurityLevel; |
47 import org.chromium.components.navigation_interception.InterceptNavigationDelega
te; | 47 import org.chromium.components.navigation_interception.InterceptNavigationDelega
te; |
48 import org.chromium.content.browser.ContentView; | 48 import org.chromium.content.browser.ContentView; |
49 import org.chromium.content.browser.ContentViewClient; | 49 import org.chromium.content.browser.ContentViewClient; |
50 import org.chromium.content.browser.ContentViewCore; | 50 import org.chromium.content.browser.ContentViewCore; |
51 import org.chromium.content.browser.WebContentsObserver; | 51 import org.chromium.content.browser.WebContentsObserver; |
| 52 import org.chromium.content_public.browser.InvalidateTypes; |
52 import org.chromium.content_public.browser.LoadUrlParams; | 53 import org.chromium.content_public.browser.LoadUrlParams; |
53 import org.chromium.content_public.browser.WebContents; | 54 import org.chromium.content_public.browser.WebContents; |
54 import org.chromium.content_public.common.Referrer; | 55 import org.chromium.content_public.common.Referrer; |
55 import org.chromium.content_public.common.TopControlsState; | 56 import org.chromium.content_public.common.TopControlsState; |
56 import org.chromium.printing.PrintManagerDelegateImpl; | 57 import org.chromium.printing.PrintManagerDelegateImpl; |
57 import org.chromium.printing.PrintingController; | 58 import org.chromium.printing.PrintingController; |
58 import org.chromium.printing.PrintingControllerImpl; | 59 import org.chromium.printing.PrintingControllerImpl; |
59 import org.chromium.ui.WindowOpenDisposition; | 60 import org.chromium.ui.WindowOpenDisposition; |
60 import org.chromium.ui.base.Clipboard; | 61 import org.chromium.ui.base.Clipboard; |
61 import org.chromium.ui.base.LocalizationUtils; | 62 import org.chromium.ui.base.LocalizationUtils; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 mFullscreenManager.setPersistentFullscreenMode(enableFullscreen)
; | 381 mFullscreenManager.setPersistentFullscreenMode(enableFullscreen)
; |
381 } | 382 } |
382 | 383 |
383 for (TabObserver observer : mObservers) { | 384 for (TabObserver observer : mObservers) { |
384 observer.onToggleFullscreenMode(Tab.this, enableFullscreen); | 385 observer.onToggleFullscreenMode(Tab.this, enableFullscreen); |
385 } | 386 } |
386 } | 387 } |
387 | 388 |
388 @Override | 389 @Override |
389 public void navigationStateChanged(int flags) { | 390 public void navigationStateChanged(int flags) { |
390 if ((flags & INVALIDATE_TYPE_TITLE) != 0) { | 391 if ((flags & InvalidateTypes.TITLE) != 0) { |
391 for (TabObserver observer : mObservers) observer.onTitleUpdated(
Tab.this); | 392 for (TabObserver observer : mObservers) observer.onTitleUpdated(
Tab.this); |
392 } | 393 } |
393 if ((flags & INVALIDATE_TYPE_URL) != 0) { | 394 if ((flags & InvalidateTypes.URL) != 0) { |
394 for (TabObserver observer : mObservers) observer.onUrlUpdated(Ta
b.this); | 395 for (TabObserver observer : mObservers) observer.onUrlUpdated(Ta
b.this); |
395 } | 396 } |
396 } | 397 } |
397 | 398 |
398 @Override | 399 @Override |
399 public void visibleSSLStateChanged() { | 400 public void visibleSSLStateChanged() { |
400 for (TabObserver observer : mObservers) observer.onSSLStateUpdated(T
ab.this); | 401 for (TabObserver observer : mObservers) observer.onSSLStateUpdated(T
ab.this); |
401 } | 402 } |
402 | 403 |
403 @Override | 404 @Override |
(...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2507 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro
id, | 2508 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro
id, |
2508 InterceptNavigationDelegate delegate); | 2509 InterceptNavigationDelegate delegate); |
2509 private native void nativeAttachToTabContentManager(long nativeTabAndroid, | 2510 private native void nativeAttachToTabContentManager(long nativeTabAndroid, |
2510 TabContentManager tabContentManager); | 2511 TabContentManager tabContentManager); |
2511 private native void nativeAttachOverlayContentViewCore(long nativeTabAndroid
, | 2512 private native void nativeAttachOverlayContentViewCore(long nativeTabAndroid
, |
2512 ContentViewCore content, boolean visible); | 2513 ContentViewCore content, boolean visible); |
2513 private native void nativeDetachOverlayContentViewCore(long nativeTabAndroid
, | 2514 private native void nativeDetachOverlayContentViewCore(long nativeTabAndroid
, |
2514 ContentViewCore content); | 2515 ContentViewCore content); |
2515 private static native void nativeRecordStartupToCommitUma(); | 2516 private static native void nativeRecordStartupToCommitUma(); |
2516 } | 2517 } |
OLD | NEW |