| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |