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

Issue 1049083002: UI fix for fullscreen permission on single website preference. (Closed)

Created:
5 years, 8 months ago by qinmin
Modified:
5 years, 6 months ago
Reviewers:
Finnur, rolfe
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

UI fix for fullscreen permission on single website preference. Currently for fullscreen permission, user can only change it by reset all the preferences. This change adds a delete button next to the fullscreen permission on single website preference page. When user clicks that button, a confirmation dialog shows up to confirm that user will reset the fullscreen permission. It also fixes the missing fullscreen permission on the single site preference UI. BUG=378412

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Messages

Total messages: 7 (4 generated)
qinmin
PTAL
5 years, 8 months ago (2015-03-30 23:34:35 UTC) #3
Finnur
General comments on the CL description: > This change adds a delete button besides the ...
5 years, 8 months ago (2015-03-31 12:11:34 UTC) #5
qinmin
5 years, 8 months ago (2015-03-31 16:57:49 UTC) #6
Hi, Finnur. Sorry, I am not very familiar with the UI design  workflow so I may
miss a couple things here and there.
I've attached the screenshots on crbug.com/378412 and asked rolfe@ for
suggestions.

https://codereview.chromium.org/1049083002/diff/20001/chrome/android/java/res...
File chrome/android/java/res/xml/single_website_preferences.xml (right):

https://codereview.chromium.org/1049083002/diff/20001/chrome/android/java/res...
chrome/android/java/res/xml/single_website_preferences.xml:45:
android:positiveButtonText="@string/ok"
On 2015/03/31 12:11:34, Finnur wrote:
> OK buttons are not cool. Use a verb that describes the action (Reset/Delete or
> something).

Done.

https://codereview.chromium.org/1049083002/diff/20001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java
(right):

https://codereview.chromium.org/1049083002/diff/20001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java:459:
mSite.setFullscreenPermission(ContentSetting.ASK);
On 2015/03/31 12:11:34, Finnur wrote:
> This is not correct. You should pass in null here to get it to delete the
> permission. We shouldn't be setting it explicitly to ASK.

Done.

https://codereview.chromium.org/1049083002/diff/20001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java:460:
PreferenceScreen preferenceScreen = getPreferenceScreen();
On 2015/03/31 12:11:34, Finnur wrote:
> nit: Use this variable on lines 461 and 462?

Done.

https://codereview.chromium.org/1049083002/diff/20001/chrome/android/java/str...
File chrome/android/java/strings/android_chrome_strings.grd (right):

https://codereview.chromium.org/1049083002/diff/20001/chrome/android/java/str...
chrome/android/java/strings/android_chrome_strings.grd:616: Fullscreen
permission will be revoked for this site
On 2015/03/31 12:11:34, Finnur wrote:
> nit: Missing period at end.

Done.

Powered by Google App Engine
This is Rietveld 408576698