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

Issue 8207005: [print preview] Improve appearance of select control separators. (Closed)

Created:
9 years, 2 months ago by csilv
Modified:
9 years, 2 months ago
Reviewers:
dpapad, kmadhusu
CC:
chromium-reviews, arv (Not doing code reviews), Lei Zhang
Visibility:
Public.

Description

[print preview] Improve appearance of select control separators. Separators were implemented as options with blank name/values. These appear as blank spaces in the select menu. By using an HR, WebKit will render a menu separator which looks visually nicer. BUG=99534 TEST=Verify printer destination menu in print preview window shows platform separators. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104813

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : code review updates. #

Patch Set 4 : add print_preview_cloud.js. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -25 lines) Patch
M chrome/browser/resources/print_preview/print_preview.js View 1 2 5 chunks +21 lines, -23 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview_cloud.js View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
csilv
+kmadhusu for review
9 years, 2 months ago (2011-10-07 21:53:23 UTC) #1
kmadhusu
+dpapad http://codereview.chromium.org/8207005/diff/1002/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/8207005/diff/1002/chrome/browser/resources/print_preview/print_preview.js#newcode539 chrome/browser/resources/print_preview/print_preview.js:539: addDestinationListOption('', '', true, true, false); dpapad: I am ...
9 years, 2 months ago (2011-10-07 22:11:25 UTC) #2
csilv
http://codereview.chromium.org/8207005/diff/1002/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/8207005/diff/1002/chrome/browser/resources/print_preview/print_preview.js#newcode621 chrome/browser/resources/print_preview/print_preview.js:621: return document.createElement('hr'); On 2011/10/07 22:11:26, kmadhusu wrote: > Can ...
9 years, 2 months ago (2011-10-07 22:40:34 UTC) #3
kmadhusu
lgtm Please commit after we get a reply from dpapad@ regarding my comment. Thanks for ...
9 years, 2 months ago (2011-10-07 23:06:33 UTC) #4
dpapad
9 years, 2 months ago (2011-10-10 21:54:27 UTC) #5
http://codereview.chromium.org/8207005/diff/1002/chrome/browser/resources/pri...
File chrome/browser/resources/print_preview/print_preview.js (right):

http://codereview.chromium.org/8207005/diff/1002/chrome/browser/resources/pri...
chrome/browser/resources/print_preview/print_preview.js:539:
addDestinationListOption('', '', true, true, false);
On 2011/10/07 22:11:26, kmadhusu wrote:
> dpapad: I am not sure why we have a placeholder here. If this is not a
separator
> we need to add aria label to this after this change. 

Briefly spoke with thestig about why we have this placeholder. It is needed
because otherwise when we try to get the initial print preview we will fail some
checks. So I suggest to leave it as is, and I dont think there is a need to add
aria label since the placeholder is removed and the list is populated before the
user has any chance (normally) to interact with the drop down list.

Powered by Google App Engine
This is Rietveld 408576698