| 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; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import android.app.ActionBar; | 7 import android.app.ActionBar; |
| 8 import android.app.Activity; | 8 import android.app.Activity; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.Intent; | 10 import android.content.Intent; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 } | 79 } |
| 80 | 80 |
| 81 @Override | 81 @Override |
| 82 protected final ChromeFullscreenManager createFullscreenManager() { | 82 protected final ChromeFullscreenManager createFullscreenManager() { |
| 83 return null; | 83 return null; |
| 84 } | 84 } |
| 85 | 85 |
| 86 @Override | 86 @Override |
| 87 public boolean onCreateOptionsMenu(Menu menu) { | 87 public boolean onCreateOptionsMenu(Menu menu) { |
| 88 boolean retVal = super.onCreateOptionsMenu(menu); | 88 boolean retVal = super.onCreateOptionsMenu(menu); |
| 89 if (!FirstRunStatus.getFirstRunFlowComplete()) return retVal; | 89 if (!FirstRunStatus.getFirstRunFlowComplete(this)) return retVal; |
| 90 return true; | 90 return true; |
| 91 } | 91 } |
| 92 | 92 |
| 93 @Override | 93 @Override |
| 94 public boolean onOptionsItemSelected(MenuItem item) { | 94 public boolean onOptionsItemSelected(MenuItem item) { |
| 95 int itemId = item.getItemId(); | 95 int itemId = item.getItemId(); |
| 96 if (itemId == android.R.id.home) { | 96 if (itemId == android.R.id.home) { |
| 97 // Handles up navigation | 97 // Handles up navigation |
| 98 finish(); | 98 finish(); |
| 99 return true; | 99 return true; |
| 100 } | 100 } |
| 101 return super.onOptionsItemSelected(item); | 101 return super.onOptionsItemSelected(item); |
| 102 } | 102 } |
| 103 | 103 |
| 104 @Override | 104 @Override |
| 105 protected boolean isContextualSearchAllowed() { | 105 protected boolean isContextualSearchAllowed() { |
| 106 return false; | 106 return false; |
| 107 } | 107 } |
| 108 | 108 |
| 109 @Override | 109 @Override |
| 110 protected void setStatusBarColor(Tab tab, int color) { | 110 protected void setStatusBarColor(Tab tab, int color) { |
| 111 // Intentionally do nothing as EmbedContentViewActivity does not set sta
tus bar color. | 111 // Intentionally do nothing as EmbedContentViewActivity does not set sta
tus bar color. |
| 112 } | 112 } |
| 113 | 113 |
| 114 @Override | 114 @Override |
| 115 protected TabDelegate createTabDelegate(boolean incognito) { | 115 protected TabDelegate createTabDelegate(boolean incognito) { |
| 116 return new TabDelegate(incognito); | 116 return new TabDelegate(incognito); |
| 117 } | 117 } |
| 118 } | 118 } |
| OLD | NEW |