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

Issue 12634025: Inconsistent use of [x] close panel icon (Closed)

Created:
7 years, 9 months ago by varkha
Modified:
7 years, 9 months ago
Reviewers:
flackr, sky
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, dbeam+watch-options_chromium.org, akalin, Raghu Simha, benjhayden+dwatch_chromium.org, tfarina, asanka, Randy Smith (Not in Mondays), sail+watch_chromium.org, Aaron Boodman, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, estade+watch_chromium.org, haitaol1, stevenjb+watch_chromium.org, markusheintz_, tim (not reviewing), pedrosimonetti+watch_chromium.org, Avi (use Gerrit), Elliot Glaysher
Base URL:
https://chromium.googlesource.com/chromium/src.git@issue_173251
Visibility:
Public.

Description

Inconsistent use of [x] close panel icon The close button in download pane should be the tab close button asset : tab_close_*.png (this was originally reported as part of BUG=173251 ). By the same logic the same smaller bitmap with red hover background should be used for all infobars such as translate bar, save password bar, etc. It should also be used for find-in-page bar on all platforms (Mac was missed with the previous implementation). The close button in the chrome UI and Web UI bubbles was left the same as before (this needs to be regression-tested). Code was rearranged to make explicit the disrepancy between the IDR_CLOSE_BAR and IDR_CLOSE_BUBBLE. IDR_TAB_CLOSE was renamed IDR_CLOSE_1. IDR_CLOSE_BAR was renamed IDR_CLOSE_2. png files were also renamed. BUG=217094 TEST=Open any page that downloads an attachment such as gmail email with an attachment or a page with images. Download an image or an attachment. Verify that the close button in download bar at the bottom of the screen has a red circular background when mouse hovers over it - same as the close tab button. TEST=Open find-in-page (Ctrl+F) box on Mac, Linux and Windows and check that the close button is same as tab close (has a red circular background when mouse hovers over it). TEST=Open any infobar (translate / save password) on both ChromeOS and linux and check that the close button is same as tab close (has a red circular background when mouse hovers over it). Opening a non-English news page is usually the easiest way. TEST=Trigger chrome to show a toolbar bubble such as extension installed bubble that shows when an extension is installed from chrome web store (see bitmaps in comments attached to BUG=217094 ). Confirm that the close buttons in those bubbles are NOT changed from before the change (they should NOT have the red circular background when mouse hovers over). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190431

Patch Set 1 #

Total comments: 3

Patch Set 2 : Renamed button_close_2* to close_2* #

Total comments: 2

Patch Set 3 : Line wrapping in CSS #

Total comments: 2

Patch Set 4 : Wrapped lines should be indented by 4 places #

Patch Set 5 : Merge #

Patch Set 6 : Fixed compile on linux, mac and win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -108 lines) Patch
M build/ios/grit_whitelist.txt View 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/app/theme/default_100_percent/common/close_1.png View 1 Binary file 0 comments Download
A + chrome/app/theme/default_100_percent/common/close_1_hover.png View 1 Binary file 0 comments Download
A + chrome/app/theme/default_100_percent/common/close_1_mask.png View 1 Binary file 0 comments Download
A + chrome/app/theme/default_100_percent/common/close_1_pressed.png View 1 Binary file 0 comments Download
D chrome/app/theme/default_100_percent/common/tab_close_hover.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/default_100_percent/common/tab_close_mask.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/default_100_percent/common/tab_close_normal.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/default_100_percent/common/tab_close_pressed.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/app/theme/default_200_percent/common/close_1.png View 1 Binary file 0 comments Download
A + chrome/app/theme/default_200_percent/common/close_1_hover.png View 1 Binary file 0 comments Download
A + chrome/app/theme/default_200_percent/common/close_1_mask.png View 1 Binary file 0 comments Download
A + chrome/app/theme/default_200_percent/common/close_1_pressed.png View 1 Binary file 0 comments Download
D chrome/app/theme/default_200_percent/common/tab_close_hover.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/default_200_percent/common/tab_close_mask.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/default_200_percent/common/tab_close_normal.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/default_200_percent/common/tab_close_pressed.png View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
A + chrome/app/theme/touch_100_percent/common/close_1.png View 1 Binary file 0 comments Download
A + chrome/app/theme/touch_100_percent/common/close_1_hover.png View 1 Binary file 0 comments Download
A + chrome/app/theme/touch_100_percent/common/close_1_mask.png View 1 Binary file 0 comments Download
A + chrome/app/theme/touch_100_percent/common/close_1_pressed.png View 1 Binary file 0 comments Download
D chrome/app/theme/touch_100_percent/common/tab_close_hover.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/touch_100_percent/common/tab_close_mask.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/touch_100_percent/common/tab_close_normal.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/touch_100_percent/common/tab_close_pressed.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/app/theme/touch_140_percent/common/close_1.png View 1 Binary file 0 comments Download
A + chrome/app/theme/touch_140_percent/common/close_1_hover.png View 1 Binary file 0 comments Download
A + chrome/app/theme/touch_140_percent/common/close_1_mask.png View 1 Binary file 0 comments Download
A + chrome/app/theme/touch_140_percent/common/close_1_pressed.png View 1 Binary file 0 comments Download
D chrome/app/theme/touch_140_percent/common/tab_close_hover.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/touch_140_percent/common/tab_close_mask.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/touch_140_percent/common/tab_close_normal.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/touch_140_percent/common/tab_close_pressed.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/app/theme/touch_180_percent/common/close_1.png View 1 Binary file 0 comments Download
A + chrome/app/theme/touch_180_percent/common/close_1_hover.png View 1 Binary file 0 comments Download
A + chrome/app/theme/touch_180_percent/common/close_1_mask.png View 1 Binary file 0 comments Download
A + chrome/app/theme/touch_180_percent/common/close_1_pressed.png View 1 Binary file 0 comments Download
D chrome/app/theme/touch_180_percent/common/tab_close_hover.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/touch_180_percent/common/tab_close_mask.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/touch_180_percent/common/tab_close_normal.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/app/theme/touch_180_percent/common/tab_close_pressed.png View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/first_run/try_chrome_dialog_view.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.css View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/resources/options/chromeos/accounts_options_page.css View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/options_page.css View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/hover_close_button.mm View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.mm View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/confirm_bubble_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/custom_button.h View 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/custom_button.cc View 1 2 3 4 5 2 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/download/download_shelf_gtk.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/bundle_installed_bubble_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/find_bar_gtk.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_shelf_view.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/extensions/bundle_installed_bubble.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_installed_bubble.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/notifications/balloon_view_views.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/renderer/resources/plugin_placeholders.css View 1 2 3 1 chunk +6 lines, -7 lines 0 comments Download
A + ui/resources/default_100_percent/close_2.png View 1 Binary file 0 comments Download
A + ui/resources/default_100_percent/close_2_hover.png View 1 Binary file 0 comments Download
A + ui/resources/default_100_percent/close_2_mask.png View 1 Binary file 0 comments Download
A + ui/resources/default_100_percent/close_2_pressed.png View 1 Binary file 0 comments Download
D ui/resources/default_100_percent/close_bar.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D ui/resources/default_100_percent/close_bar_hover.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D ui/resources/default_100_percent/close_bar_mask.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D ui/resources/default_100_percent/close_bar_pressed.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A + ui/resources/default_200_percent/close_2.png View 1 Binary file 0 comments Download
A + ui/resources/default_200_percent/close_2_hover.png View 1 Binary file 0 comments Download
A + ui/resources/default_200_percent/close_2_mask.png View 1 Binary file 0 comments Download
A + ui/resources/default_200_percent/close_2_pressed.png View 1 Binary file 0 comments Download
D ui/resources/default_200_percent/close_bar.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D ui/resources/default_200_percent/close_bar_hover.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D ui/resources/default_200_percent/close_bar_mask.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D ui/resources/default_200_percent/close_bar_pressed.png View 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/resources/ui_resources.grd View 1 5 1 chunk +4 lines, -4 lines 0 comments Download
M ui/webui/resources/css/bubble.css View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M ui/webui/resources/css/expandable_bubble.css View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
varkha
This resubmit of https://codereview.chromium.org/12966002. The diff got mangled and this is now being submitted as ...
7 years, 9 months ago (2013-03-22 15:50:40 UTC) #1
sky
https://codereview.chromium.org/12634025/diff/1/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/12634025/diff/1/chrome/app/theme/theme_resources.grd#newcode755 chrome/app/theme/theme_resources.grd:755: <structure type="chrome_scaled_image" name="IDR_CLOSE_1" file="common/button_close_1_normal.png" /> File name and IDR ...
7 years, 9 months ago (2013-03-22 18:08:30 UTC) #2
varkha
https://codereview.chromium.org/12634025/diff/1/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/12634025/diff/1/chrome/app/theme/theme_resources.grd#newcode755 chrome/app/theme/theme_resources.grd:755: <structure type="chrome_scaled_image" name="IDR_CLOSE_1" file="common/button_close_1_normal.png" /> So in this case ...
7 years, 9 months ago (2013-03-22 18:12:27 UTC) #3
sky
https://codereview.chromium.org/12634025/diff/1/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/12634025/diff/1/chrome/app/theme/theme_resources.grd#newcode755 chrome/app/theme/theme_resources.grd:755: <structure type="chrome_scaled_image" name="IDR_CLOSE_1" file="common/button_close_1_normal.png" /> On 2013/03/22 18:12:27, varkha ...
7 years, 9 months ago (2013-03-22 19:32:29 UTC) #4
varkha
_normal removed (in both cases - hope that was desirable).
7 years, 9 months ago (2013-03-22 21:14:22 UTC) #5
sky
LGTM
7 years, 9 months ago (2013-03-22 23:07:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/12634025/2002
7 years, 9 months ago (2013-03-22 23:28:19 UTC) #7
commit-bot: I haz the power
Can't process patch for file chrome/app/theme/touch_140_percent/common/close_1.png. Binary file support is temporarilly disabled due to a ...
7 years, 9 months ago (2013-03-22 23:28:23 UTC) #8
flackr
https://chromiumcodereview.appspot.com/12634025/diff/2002/chrome/renderer/resources/plugin_placeholders.css File chrome/renderer/resources/plugin_placeholders.css (right): https://chromiumcodereview.appspot.com/12634025/diff/2002/chrome/renderer/resources/plugin_placeholders.css#newcode64 chrome/renderer/resources/plugin_placeholders.css:64: 1x, nit: These all seem like they should fit ...
7 years, 9 months ago (2013-03-25 00:38:57 UTC) #9
varkha
Fixed wrapped lines in css. https://chromiumcodereview.appspot.com/12634025/diff/2002/chrome/renderer/resources/plugin_placeholders.css File chrome/renderer/resources/plugin_placeholders.css (right): https://chromiumcodereview.appspot.com/12634025/diff/2002/chrome/renderer/resources/plugin_placeholders.css#newcode64 chrome/renderer/resources/plugin_placeholders.css:64: 1x, On 2013/03/25 00:38:57, ...
7 years, 9 months ago (2013-03-25 13:55:58 UTC) #10
flackr
https://chromiumcodereview.appspot.com/12634025/diff/14001/chrome/browser/resources/options/chromeos/accounts_options_page.css File chrome/browser/resources/options/chromeos/accounts_options_page.css (right): https://chromiumcodereview.appspot.com/12634025/diff/14001/chrome/browser/resources/options/chromeos/accounts_options_page.css#newcode47 chrome/browser/resources/options/chromeos/accounts_options_page.css:47: url('../../../../../ui/resources/default_200_percent/close_2.png') 2x); Sorry I missed these earlier. Here and ...
7 years, 9 months ago (2013-03-25 15:00:10 UTC) #11
varkha
Indentation corrected. https://chromiumcodereview.appspot.com/12634025/diff/14001/chrome/browser/resources/options/chromeos/accounts_options_page.css File chrome/browser/resources/options/chromeos/accounts_options_page.css (right): https://chromiumcodereview.appspot.com/12634025/diff/14001/chrome/browser/resources/options/chromeos/accounts_options_page.css#newcode47 chrome/browser/resources/options/chromeos/accounts_options_page.css:47: url('../../../../../ui/resources/default_200_percent/close_2.png') 2x); On 2013/03/25 15:00:10, flackr wrote: ...
7 years, 9 months ago (2013-03-25 15:43:59 UTC) #12
flackr
LGTM, I can land for you.
7 years, 9 months ago (2013-03-25 17:42:01 UTC) #13
flackr
7 years, 9 months ago (2013-03-25 17:42:44 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 manually as r190431 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698