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

Issue 8479042: UI polish for certificate viewer (Closed)

Created:
9 years, 1 month ago by bshe
Modified:
9 years, 1 month ago
Reviewers:
flackr, Rick Byers
CC:
chromium-reviews, arv (Not doing code reviews)
Base URL:
/usr/local/google/home/bshe/NoTouchChromium/../TouchChromium/src/@trunk
Visibility:
Public.

Description

UI polish for certificate viewer(except chromeos) Deprecated. The base URL is wrong. Created an identical CL to fix the base URL http://codereview.chromium.org/8461015/ This CL makes certificate viewer for chromeos looks like the screen shot posted in issue 102511. It hacks bubble_frame_view.cc to get rid of the body padding and add a x button in the title area. It should not affect the appearance of any other html dialogs. BUG=102511 TEST=Go to https://www.google.com; Click the locker icon on the left side of URL in the omnibox and click "certificate information". For screenshots, see http://code.google.com/p/chromium/issues/detail?id=102511

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add x button and remove padding and close button for certificate viewer. #

Total comments: 20

Patch Set 3 : Unify signature and remove most of default parameters. #

Patch Set 4 : Remove default parameter. #

Patch Set 5 : Remove style parameter in CertificateViewerDialog class. #

Patch Set 6 : Remove unused css rules. #

Patch Set 7 : Merge with trunk. #

Patch Set 8 : Remove body margins of two internal pages(due to the changes in tabs.css file). #

Total comments: 48

Patch Set 9 : Address comments. #

Patch Set 10 : Add period for comments. #

Patch Set 11 : Add period for comments. #

Patch Set 12 : Address more reviews. #

Patch Set 13 : Edit comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -64 lines) Patch
M chrome/browser/automation/testing_automation_provider_chromeos.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/external_protocol_dialog.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/frame/bubble_frame_view.cc View 1 2 3 4 5 6 7 8 9 2 chunks +29 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/background_view.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/native_dialog_window.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/network_login_observer.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/status/network_menu.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_dialog_cloud.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/certificate_viewer.css View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/resources/certificate_viewer.html View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/resources/certificate_viewer.js View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/resources/quota_internals/main.css View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/shared/css/tabs.css View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -4 lines 0 comments Download
A chrome/browser/resources/sync_internals/sync_index.css View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/sync_internals/sync_index.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/dialog_style.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/html_dialog_gtk.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/about_chrome_view.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/html_dialog_view.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/js_modal_dialog_views.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/simple_message_box_views.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/update_recommended_message_box.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/window.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/window.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/certificate_viewer_webui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/cloud_print_signin_dialog.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/edit_search_engine_dialog_webui.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/hung_renderer_dialog.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/input_window_dialog_webui.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/task_manager_dialog.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
bshe
Hey Rick. Could you take a look at this short CL? It includes the UI ...
9 years, 1 month ago (2011-11-07 20:17:55 UTC) #1
Rick Byers
Looks good. Please verify that's there's no other mainline use of tabs.css that you may ...
9 years, 1 month ago (2011-11-07 21:43:47 UTC) #2
bshe
I edited this issue description since it contains all the changes for issue 102511 now. ...
9 years, 1 month ago (2011-11-09 22:36:54 UTC) #3
Rick Byers
On 2011/11/09 22:36:54, bshe wrote: > I edited this issue description since it contains all ...
9 years, 1 month ago (2011-11-10 16:01:00 UTC) #4
flackr
We should definitely not have a different function signature on specific platforms. I think the ...
9 years, 1 month ago (2011-11-10 16:03:16 UTC) #5
bshe
Hi Rob. Could you please take a look at this CL? It addresses all the ...
9 years, 1 month ago (2011-11-21 16:09:37 UTC) #6
flackr
http://codereview.chromium.org/8479042/diff/25001/chrome/browser/chromeos/frame/bubble_frame_view.cc File chrome/browser/chromeos/frame/bubble_frame_view.cc (right): http://codereview.chromium.org/8479042/diff/25001/chrome/browser/chromeos/frame/bubble_frame_view.cc#newcode151 chrome/browser/chromeos/frame/bubble_frame_view.cc:151: kHorizontalPadding); I think the Insets you return here should ...
9 years, 1 month ago (2011-11-21 20:43:30 UTC) #7
bshe
Done. http://codereview.chromium.org/8479042/diff/25001/chrome/browser/chromeos/frame/bubble_frame_view.cc File chrome/browser/chromeos/frame/bubble_frame_view.cc (right): http://codereview.chromium.org/8479042/diff/25001/chrome/browser/chromeos/frame/bubble_frame_view.cc#newcode151 chrome/browser/chromeos/frame/bubble_frame_view.cc:151: kHorizontalPadding); On 2011/11/21 20:43:31, flackr wrote: > I ...
9 years, 1 month ago (2011-11-22 16:26:24 UTC) #8
flackr
This is looking great, very close! http://codereview.chromium.org/8479042/diff/25001/chrome/browser/resources/sync_internals/sync_index.html File chrome/browser/resources/sync_internals/sync_index.html (right): http://codereview.chromium.org/8479042/diff/25001/chrome/browser/resources/sync_internals/sync_index.html#newcode16 chrome/browser/resources/sync_internals/sync_index.html:16: } On 2011/11/22 ...
9 years, 1 month ago (2011-11-22 17:02:59 UTC) #9
bshe
9 years, 1 month ago (2011-11-22 19:20:45 UTC) #10
Done.

http://codereview.chromium.org/8479042/diff/25001/chrome/browser/resources/sy...
File chrome/browser/resources/sync_internals/sync_index.html (right):

http://codereview.chromium.org/8479042/diff/25001/chrome/browser/resources/sy...
chrome/browser/resources/sync_internals/sync_index.html:16: }
On 2011/11/22 17:02:59, flackr wrote:
> On 2011/11/22 16:26:24, bshe wrote:
> > On 2011/11/21 20:43:31, flackr wrote:
> > > Move to CSS file.
> > Should I create a new CSS file for this rule? Or should I put this rule to
> > sync_search.css/sync_node_browser.css file? sync_search.css and
> > sync_node_browser.css dont seem like the right place to put this rule. They
> are
> > for search and node_browser tabs only. Also not sure create a new css file
> with
> > just one rule is good or bad?
> 
> It's okay to create a new file with one rule, if there are more overall rules
> for the page then it can be further used. As you say, both the existing css
> files are specific to one tab, so adding a general file for the overall page
> makes sense :-)

Done.

http://codereview.chromium.org/8479042/diff/25001/chrome/browser/ui/dialog_st...
File chrome/browser/ui/dialog_style.h (right):

http://codereview.chromium.org/8479042/diff/25001/chrome/browser/ui/dialog_st...
chrome/browser/ui/dialog_style.h:30: // Only for certificate viewer. Add close
button to the top right and fluch
On 2011/11/22 17:02:59, flackr wrote:
> On 2011/11/22 16:26:24, bshe wrote:
> > On 2011/11/21 20:43:31, flackr wrote:
> > > The style presumably only makes the content flush to edge, but does not
add
> a
> > > close button. To differentiate it from STYLE_FLUSH above mention that the
> > title
> > > bar will still have the regular padding. Also, remove the Only for
> certificate
> > > viewer comment. We were discussing with rbyers whether we could change
FLUSH
> > to
> > > mean what we wanted. Have you checked if any dialogs that use STYLE_FLUSH
> also
> > > have titles? If not we don't even have to introduce a new style for this.
> > 
> > Done. 
> > 
> > We will keep this style as extension dialog uses STYLE_FLUSH and has title.
> 
> Looks good, change this comment to padding only on title to be extra clear
about
> the difference.

Done.

http://codereview.chromium.org/8479042/diff/25001/chrome/browser/ui/webui/cer...
File chrome/browser/ui/webui/certificate_viewer_webui.cc (right):

http://codereview.chromium.org/8479042/diff/25001/chrome/browser/ui/webui/cer...
chrome/browser/ui/webui/certificate_viewer_webui.cc:86: window_ =
ConstrainedHtmlUI::CreateConstrainedHtmlDialog(
On 2011/11/22 17:02:59, flackr wrote:
> On 2011/11/22 16:26:24, bshe wrote:
> > On 2011/11/21 20:43:31, flackr wrote:
> > > Have you checked how this looks on AURA yet?
> > 
> > Yes I have. Overall, it doesn't look bad. The aura window has a default grey
> > outer border and the title doesn't align with tabbox. We might need some UI
> > tweaks for Aura. 
> 
> Great, thanks! That can of course be done separately, couldn't hurt to leave a
> TODO behind for it though. :-)

Done.

Powered by Google App Engine
This is Rietveld 408576698