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

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

Issue 1432573002: Adding <keygen> Content Setting (Android UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keygen_ui
Patch Set: Trying tested code. Created 4 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.pageinfo; 5 package org.chromium.chrome.browser.pageinfo;
6 6
7 import android.animation.Animator; 7 import android.animation.Animator;
8 import android.animation.AnimatorListenerAdapter; 8 import android.animation.AnimatorListenerAdapter;
9 import android.animation.AnimatorSet; 9 import android.animation.AnimatorSet;
10 import android.animation.ObjectAnimator; 10 import android.animation.ObjectAnimator;
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 684
685 @Override 685 @Override
686 public void onClick(View view) { 686 public void onClick(View view) {
687 if (view == mSiteSettingsButton) { 687 if (view == mSiteSettingsButton) {
688 // Delay while the WebsiteSettingsPopup closes. 688 // Delay while the WebsiteSettingsPopup closes.
689 runAfterDismiss(new Runnable() { 689 runAfterDismiss(new Runnable() {
690 @Override 690 @Override
691 public void run() { 691 public void run() {
692 Bundle fragmentArguments = 692 Bundle fragmentArguments =
693 SingleWebsitePreferences.createFragmentArgsForSite(m FullUrl); 693 SingleWebsitePreferences.createFragmentArgsForSite(m FullUrl);
694 fragmentArguments.putParcelable(SingleWebsitePreferences.EXT RA_WEB_CONTENTS,
695 mWebContents);
694 Intent preferencesIntent = PreferencesLauncher.createIntentF orSettingsPage( 696 Intent preferencesIntent = PreferencesLauncher.createIntentF orSettingsPage(
695 mContext, SingleWebsitePreferences.class.getName()); 697 mContext, SingleWebsitePreferences.class.getName());
696 preferencesIntent.putExtra( 698 preferencesIntent.putExtra(
697 Preferences.EXTRA_SHOW_FRAGMENT_ARGUMENTS, fragmentA rguments); 699 Preferences.EXTRA_SHOW_FRAGMENT_ARGUMENTS, fragmentA rguments);
698 mContext.startActivity(preferencesIntent); 700 mContext.startActivity(preferencesIntent);
699 } 701 }
700 }); 702 });
701 } else if (view == mUrlTitle) { 703 } else if (view == mUrlTitle) {
702 // Expand/collapse the displayed URL title. 704 // Expand/collapse the displayed URL title.
703 mUrlTitle.toggleTruncation(); 705 mUrlTitle.toggleTruncation();
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 new WebsiteSettingsPopup(activity, profile, webContents); 855 new WebsiteSettingsPopup(activity, profile, webContents);
854 } 856 }
855 857
856 private static native long nativeInit(WebsiteSettingsPopup popup, WebContent s webContents); 858 private static native long nativeInit(WebsiteSettingsPopup popup, WebContent s webContents);
857 859
858 private native void nativeDestroy(long nativeWebsiteSettingsPopupAndroid); 860 private native void nativeDestroy(long nativeWebsiteSettingsPopupAndroid);
859 861
860 private native void nativeOnPermissionSettingChanged(long nativeWebsiteSetti ngsPopupAndroid, 862 private native void nativeOnPermissionSettingChanged(long nativeWebsiteSetti ngsPopupAndroid,
861 int type, int setting); 863 int type, int setting);
862 } 864 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698