| 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.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.app.Activity; | 8 import android.app.Activity; |
| 9 import android.app.SearchManager; | 9 import android.app.SearchManager; |
| 10 import android.app.assist.AssistContent; | 10 import android.app.assist.AssistContent; |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 @Override | 890 @Override |
| 891 public void processWebSearchIntent(String query) { | 891 public void processWebSearchIntent(String query) { |
| 892 Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH); | 892 Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH); |
| 893 searchIntent.putExtra(SearchManager.QUERY, query); | 893 searchIntent.putExtra(SearchManager.QUERY, query); |
| 894 startActivity(searchIntent); | 894 startActivity(searchIntent); |
| 895 } | 895 } |
| 896 | 896 |
| 897 @Override | 897 @Override |
| 898 public void processUrlViewIntent(String url, String referer, String
headers, | 898 public void processUrlViewIntent(String url, String referer, String
headers, |
| 899 TabOpenType tabOpenType, String externalAppId, int tabIdToBr
ingToFront, | 899 TabOpenType tabOpenType, String externalAppId, int tabIdToBr
ingToFront, |
| 900 Intent intent) { | 900 boolean hasUserGesture, Intent intent) { |
| 901 } | 901 } |
| 902 }; | 902 }; |
| 903 } | 903 } |
| 904 | 904 |
| 905 /** | 905 /** |
| 906 * @return The resource id that contains how large the top controls are. | 906 * @return The resource id that contains how large the top controls are. |
| 907 */ | 907 */ |
| 908 public int getControlContainerHeightResource() { | 908 public int getControlContainerHeightResource() { |
| 909 return R.dimen.control_container_height; | 909 return R.dimen.control_container_height; |
| 910 } | 910 } |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 @Override | 1467 @Override |
| 1468 public void onSceneChange(Layout layout) { } | 1468 public void onSceneChange(Layout layout) { } |
| 1469 | 1469 |
| 1470 private void enableHardwareAcceleration() { | 1470 private void enableHardwareAcceleration() { |
| 1471 // HW acceleration is disabled in the manifest. Enable it only on high-e
nd devices. | 1471 // HW acceleration is disabled in the manifest. Enable it only on high-e
nd devices. |
| 1472 if (!SysUtils.isLowEndDevice()) { | 1472 if (!SysUtils.isLowEndDevice()) { |
| 1473 getWindow().addFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELE
RATED); | 1473 getWindow().addFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELE
RATED); |
| 1474 } | 1474 } |
| 1475 } | 1475 } |
| 1476 } | 1476 } |
| OLD | NEW |