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

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

Issue 1243253004: Pass user gesture bit when chrome handles an intent fired by itself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix findbugs warning Created 5 years, 4 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698