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.graphics.Bitmap; | 8 import android.graphics.Bitmap; |
9 import android.graphics.Color; | 9 import android.graphics.Color; |
10 import android.graphics.drawable.Drawable; | 10 import android.graphics.drawable.Drawable; |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 return null; | 650 return null; |
651 } | 651 } |
652 | 652 |
653 @Override | 653 @Override |
654 protected TabDelegateFactory createTabDelegateFactory() { | 654 protected TabDelegateFactory createTabDelegateFactory() { |
655 return new WebappDelegateFactory(this); | 655 return new WebappDelegateFactory(this); |
656 } | 656 } |
657 | 657 |
658 @Override | 658 @Override |
659 protected TabDelegate createTabDelegate(boolean incognito) { | 659 protected TabDelegate createTabDelegate(boolean incognito) { |
660 return new WebappTabDelegate(incognito); | 660 return new WebappTabDelegate(this, incognito); |
661 } | 661 } |
662 | 662 |
663 // We're temporarily disable CS on webapp since there are some issues. (http
://crbug.com/471950) | 663 // We're temporarily disable CS on webapp since there are some issues. (http
://crbug.com/471950) |
664 // TODO(changwan): re-enable it once the issues are resolved. | 664 // TODO(changwan): re-enable it once the issues are resolved. |
665 @Override | 665 @Override |
666 protected boolean isContextualSearchAllowed() { | 666 protected boolean isContextualSearchAllowed() { |
667 return false; | 667 return false; |
668 } | 668 } |
669 } | 669 } |
OLD | NEW |