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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/IncognitoNewTabPage.java

Issue 2239453002: [Android] Make it possible to show Infobar in native pages (Second Try) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.ntp; 5 package org.chromium.chrome.browser.ntp;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.graphics.Canvas; 8 import android.graphics.Canvas;
9 import android.view.LayoutInflater; 9 import android.view.LayoutInflater;
10 import android.view.View; 10 import android.view.View;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 */ 76 */
77 @VisibleForTesting 77 @VisibleForTesting
78 public boolean isLoadedForTests() { 78 public boolean isLoadedForTests() {
79 return mIsLoaded; 79 return mIsLoaded;
80 } 80 }
81 81
82 // NativePage overrides 82 // NativePage overrides
83 83
84 @Override 84 @Override
85 public void destroy() { 85 public void destroy() {
86 assert getView().getParent() == null : "Destroy called before removed fr om window"; 86 assert !getView().isAttachedToWindow() : "Destroy called before removed from window";
87 } 87 }
88 88
89 @Override 89 @Override
90 public String getUrl() { 90 public String getUrl() {
91 return UrlConstants.NTP_URL; 91 return UrlConstants.NTP_URL;
92 } 92 }
93 93
94 @Override 94 @Override
95 public String getTitle() { 95 public String getTitle() {
96 return mTitle; 96 return mTitle;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 @Override 130 @Override
131 public boolean shouldCaptureThumbnail() { 131 public boolean shouldCaptureThumbnail() {
132 return mIncognitoNewTabPageView.shouldCaptureThumbnail(); 132 return mIncognitoNewTabPageView.shouldCaptureThumbnail();
133 } 133 }
134 134
135 @Override 135 @Override
136 public void captureThumbnail(Canvas canvas) { 136 public void captureThumbnail(Canvas canvas) {
137 mIncognitoNewTabPageView.captureThumbnail(canvas); 137 mIncognitoNewTabPageView.captureThumbnail(canvas);
138 } 138 }
139 } 139 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698