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; | |
53 import org.chromium.content_public.browser.LoadUrlParams; | 52 import org.chromium.content_public.browser.LoadUrlParams; |
54 import org.chromium.content_public.browser.WebContents; | 53 import org.chromium.content_public.browser.WebContents; |
55 import org.chromium.content_public.common.Referrer; | 54 import org.chromium.content_public.common.Referrer; |
56 import org.chromium.content_public.common.TopControlsState; | 55 import org.chromium.content_public.common.TopControlsState; |
57 import org.chromium.printing.PrintManagerDelegateImpl; | 56 import org.chromium.printing.PrintManagerDelegateImpl; |
58 import org.chromium.printing.PrintingController; | 57 import org.chromium.printing.PrintingController; |
59 import org.chromium.printing.PrintingControllerImpl; | 58 import org.chromium.printing.PrintingControllerImpl; |
60 import org.chromium.ui.WindowOpenDisposition; | 59 import org.chromium.ui.WindowOpenDisposition; |
61 import org.chromium.ui.base.Clipboard; | 60 import org.chromium.ui.base.Clipboard; |
62 import org.chromium.ui.base.LocalizationUtils; | 61 import org.chromium.ui.base.LocalizationUtils; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 mFullscreenManager.setPersistentFullscreenMode(enableFullscreen)
; | 380 mFullscreenManager.setPersistentFullscreenMode(enableFullscreen)
; |
382 } | 381 } |
383 | 382 |
384 for (TabObserver observer : mObservers) { | 383 for (TabObserver observer : mObservers) { |
385 observer.onToggleFullscreenMode(Tab.this, enableFullscreen); | 384 observer.onToggleFullscreenMode(Tab.this, enableFullscreen); |
386 } | 385 } |
387 } | 386 } |
388 | 387 |
389 @Override | 388 @Override |
390 public void navigationStateChanged(int flags) { | 389 public void navigationStateChanged(int flags) { |
391 if ((flags & InvalidateTypes.TITLE) != 0) { | 390 if ((flags & INVALIDATE_TYPE_TITLE) != 0) { |
392 for (TabObserver observer : mObservers) observer.onTitleUpdated(
Tab.this); | 391 for (TabObserver observer : mObservers) observer.onTitleUpdated(
Tab.this); |
393 } | 392 } |
394 if ((flags & InvalidateTypes.URL) != 0) { | 393 if ((flags & INVALIDATE_TYPE_URL) != 0) { |
395 for (TabObserver observer : mObservers) observer.onUrlUpdated(Ta
b.this); | 394 for (TabObserver observer : mObservers) observer.onUrlUpdated(Ta
b.this); |
396 } | 395 } |
397 } | 396 } |
398 | 397 |
399 @Override | 398 @Override |
400 public void visibleSSLStateChanged() { | 399 public void visibleSSLStateChanged() { |
401 for (TabObserver observer : mObservers) observer.onSSLStateUpdated(T
ab.this); | 400 for (TabObserver observer : mObservers) observer.onSSLStateUpdated(T
ab.this); |
402 } | 401 } |
403 | 402 |
404 @Override | 403 @Override |
(...skipping 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2508 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro
id, | 2507 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro
id, |
2509 InterceptNavigationDelegate delegate); | 2508 InterceptNavigationDelegate delegate); |
2510 private native void nativeAttachToTabContentManager(long nativeTabAndroid, | 2509 private native void nativeAttachToTabContentManager(long nativeTabAndroid, |
2511 TabContentManager tabContentManager); | 2510 TabContentManager tabContentManager); |
2512 private native void nativeAttachOverlayContentViewCore(long nativeTabAndroid
, | 2511 private native void nativeAttachOverlayContentViewCore(long nativeTabAndroid
, |
2513 ContentViewCore content, boolean visible); | 2512 ContentViewCore content, boolean visible); |
2514 private native void nativeDetachOverlayContentViewCore(long nativeTabAndroid
, | 2513 private native void nativeDetachOverlayContentViewCore(long nativeTabAndroid
, |
2515 ContentViewCore content); | 2514 ContentViewCore content); |
2516 private static native void nativeRecordStartupToCommitUma(); | 2515 private static native void nativeRecordStartupToCommitUma(); |
2517 } | 2516 } |
OLD | NEW |