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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenActivity.java

Issue 2636833003: Support "display": "fullscreen" for sites added to the home screen. (Closed)
Patch Set: disable html5 fullscreen Created 3 years, 10 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
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.webapps; 5 package org.chromium.chrome.browser.webapps;
6 6
7 import android.content.Intent; 7 import android.content.Intent;
8 import android.util.Pair; 8 import android.util.Pair;
9 import android.view.View; 9 import android.view.View;
10 import android.view.ViewGroup; 10 import android.view.ViewGroup;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 /** 189 /**
190 * @return {@link File} pointing at a directory specific for this class. 190 * @return {@link File} pointing at a directory specific for this class.
191 */ 191 */
192 protected File getActivityDirectory() { 192 protected File getActivityDirectory() {
193 return null; 193 return null;
194 } 194 }
195 195
196 @Override 196 @Override
197 protected boolean handleBackPressed() { 197 protected boolean handleBackPressed() {
198 if (mTab == null) return false; 198 if (mTab == null) return false;
199
200 if (exitFullscreenIfShowing()) return true;
201
199 if (mTab.canGoBack()) { 202 if (mTab.canGoBack()) {
200 mTab.goBack(); 203 mTab.goBack();
201 return true; 204 return true;
202 } 205 }
203 return false; 206 return false;
204 } 207 }
205 208
206 @Override 209 @Override
207 public void onCheckForUpdate(boolean updateAvailable) { 210 public void onCheckForUpdate(boolean updateAvailable) {
208 } 211 }
209 } 212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698