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

Issue 10544195: Show an extension info bubble when a script badge is clicked. (Closed)

Created:
8 years, 6 months ago by Yoyo Zhou
Modified:
8 years, 6 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

Show an extension info bubble when a script badge is clicked. Looks like this: http://dl.dropbox.com/u/27111995/Mocks/info-popup-mac-1.8.png BUG=133140 TEST=Click on a script badge. Should see an informational popup. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143733

Patch Set 1 #

Total comments: 20

Patch Set 2 : AA? WHY NOT AAA+? #

Patch Set 3 : pixels & platforms #

Patch Set 4 : 1px #

Total comments: 7

Patch Set 5 : license #

Patch Set 6 : rename resources #

Total comments: 5

Patch Set 7 : js docs #

Patch Set 8 : loadTimeData #

Patch Set 9 : cleaner #

Total comments: 17

Patch Set 10 : estade #

Total comments: 1

Patch Set 11 : fin #

Patch Set 12 : rebase eh #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -38 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/location_bar_controller.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/script_badge_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/extensions/extension_info.css View 1 2 3 4 5 6 7 8 9 10 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/resources/extensions/extension_info.html View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/resources/extensions/extension_info.js View 1 2 3 4 5 6 7 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm View 1 2 4 chunks +21 lines, -13 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.cc View 1 2 4 chunks +24 lines, -20 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -1 line 0 comments Download
A chrome/browser/ui/webui/extensions/extension_info_ui.h View 1 2 3 4 5 6 7 8 9 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/extensions/extension_info_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +75 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_constants.cc View 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Yoyo Zhou
1. I'm not sure if there's a bug for this feature yet; feel free to ...
8 years, 6 months ago (2012-06-15 23:12:43 UTC) #1
Aaron Boodman
Can you also add some more pixels in the gutter between the icon and the ...
8 years, 6 months ago (2012-06-16 02:21:18 UTC) #2
Aaron Boodman
http://codereview.chromium.org/10544195/diff/1/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): http://codereview.chromium.org/10544195/diff/1/chrome/browser/browser_resources.grd#newcode63 chrome/browser/browser_resources.grd:63: <include name="IDR_EXTENSION_INFO_JS" file="resources\extensions\extension_info.js" flattenhtml="true" type="BINDATA" /> On 2012/06/16 02:21:19, ...
8 years, 6 months ago (2012-06-16 02:22:36 UTC) #3
Yoyo Zhou
http://codereview.chromium.org/10544195/diff/1/chrome/browser/resources/extensions/extension_info.css File chrome/browser/resources/extensions/extension_info.css (right): http://codereview.chromium.org/10544195/diff/1/chrome/browser/resources/extensions/extension_info.css#newcode1 chrome/browser/resources/extensions/extension_info.css:1: body { On 2012/06/16 02:21:19, Aaron Boodman wrote: > ...
8 years, 6 months ago (2012-06-18 19:39:37 UTC) #4
Yoyo Zhou
Oh, I remembered that this is currently a gtk-only change and will break on the ...
8 years, 6 months ago (2012-06-18 19:40:13 UTC) #5
Aaron Boodman
Don't forget about the pixels!
8 years, 6 months ago (2012-06-18 23:33:43 UTC) #6
Yoyo Zhou
On 2012/06/18 23:33:43, Aaron Boodman wrote: > Don't forget about the pixels! I added 2 ...
8 years, 6 months ago (2012-06-19 21:28:31 UTC) #7
Aaron Boodman
lgtm w/ nits http://codereview.chromium.org/10544195/diff/13002/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): http://codereview.chromium.org/10544195/diff/13002/chrome/browser/browser_resources.grd#newcode61 chrome/browser/browser_resources.grd:61: <include name="IDR_EXTENSION_INFO_CSS" file="resources\extensions\extension_info.css" flattenhtml="true" type="BINDATA" /> ...
8 years, 6 months ago (2012-06-19 21:42:43 UTC) #8
Yoyo Zhou
Hmm, it's not popping up on Mac. Will need to investigate. http://codereview.chromium.org/10544195/diff/13002/chrome/browser/resources/extensions/extension_info.css File chrome/browser/resources/extensions/extension_info.css (right): ...
8 years, 6 months ago (2012-06-19 22:03:33 UTC) #9
Yoyo Zhou
On 2012/06/19 22:03:33, Yoyo Zhou wrote: > Hmm, it's not popping up on Mac. Will ...
8 years, 6 months ago (2012-06-19 22:05:09 UTC) #10
Aaron Boodman
That's weird. Whatever. LGTM.
8 years, 6 months ago (2012-06-19 22:23:02 UTC) #11
Yoyo Zhou
estade: please review webui and gtk thakis: please review cocoa sky: please review views
8 years, 6 months ago (2012-06-19 22:54:56 UTC) #12
Nico
cocoa lgtm
8 years, 6 months ago (2012-06-19 22:57:02 UTC) #13
Evan Stade
https://chromiumcodereview.appspot.com/10544195/diff/25001/chrome/browser/resources/extensions/extension_info.js File chrome/browser/resources/extensions/extension_info.js (right): https://chromiumcodereview.appspot.com/10544195/diff/25001/chrome/browser/resources/extensions/extension_info.js#newcode15 chrome/browser/resources/extensions/extension_info.js:15: chrome.send('requestExtensionInfo', [extensionId]); this will cause flicker. Instead of loading ...
8 years, 6 months ago (2012-06-19 23:50:02 UTC) #14
Yoyo Zhou
https://chromiumcodereview.appspot.com/10544195/diff/25001/chrome/browser/resources/extensions/extension_info.js File chrome/browser/resources/extensions/extension_info.js (right): https://chromiumcodereview.appspot.com/10544195/diff/25001/chrome/browser/resources/extensions/extension_info.js#newcode15 chrome/browser/resources/extensions/extension_info.js:15: chrome.send('requestExtensionInfo', [extensionId]); On 2012/06/19 23:50:02, Evan Stade wrote: > ...
8 years, 6 months ago (2012-06-20 00:24:29 UTC) #15
sky
ui/views LGTM
8 years, 6 months ago (2012-06-20 00:55:20 UTC) #16
Evan Stade
https://chromiumcodereview.appspot.com/10544195/diff/25001/chrome/browser/resources/extensions/extension_info.js File chrome/browser/resources/extensions/extension_info.js (right): https://chromiumcodereview.appspot.com/10544195/diff/25001/chrome/browser/resources/extensions/extension_info.js#newcode15 chrome/browser/resources/extensions/extension_info.js:15: chrome.send('requestExtensionInfo', [extensionId]); On 2012/06/20 00:24:29, Yoyo Zhou wrote: > ...
8 years, 6 months ago (2012-06-20 02:00:07 UTC) #17
Yoyo Zhou
On 2012/06/20 02:00:07, Evan Stade wrote: > https://chromiumcodereview.appspot.com/10544195/diff/25001/chrome/browser/resources/extensions/extension_info.js > File chrome/browser/resources/extensions/extension_info.js (right): > > https://chromiumcodereview.appspot.com/10544195/diff/25001/chrome/browser/resources/extensions/extension_info.js#newcode15 ...
8 years, 6 months ago (2012-06-21 00:21:43 UTC) #18
Evan Stade
cool, lgtm http://codereview.chromium.org/10544195/diff/35002/chrome/browser/resources/extensions/extension_info.css File chrome/browser/resources/extensions/extension_info.css (right): http://codereview.chromium.org/10544195/diff/35002/chrome/browser/resources/extensions/extension_info.css#newcode28 chrome/browser/resources/extensions/extension_info.css:28: font-size: 13px; define fonts in em. http://codereview.chromium.org/10544195/diff/35002/chrome/browser/resources/extensions/extension_info.html ...
8 years, 6 months ago (2012-06-21 18:56:22 UTC) #19
Yoyo Zhou
http://codereview.chromium.org/10544195/diff/35002/chrome/browser/resources/extensions/extension_info.css File chrome/browser/resources/extensions/extension_info.css (right): http://codereview.chromium.org/10544195/diff/35002/chrome/browser/resources/extensions/extension_info.css#newcode28 chrome/browser/resources/extensions/extension_info.css:28: font-size: 13px; On 2012/06/21 18:56:22, Evan Stade wrote: > ...
8 years, 6 months ago (2012-06-21 21:38:05 UTC) #20
Evan Stade
http://codereview.chromium.org/10544195/diff/35002/chrome/browser/resources/extensions/extension_info.html File chrome/browser/resources/extensions/extension_info.html (right): http://codereview.chromium.org/10544195/diff/35002/chrome/browser/resources/extensions/extension_info.html#newcode5 chrome/browser/resources/extensions/extension_info.html:5: <link rel="stylesheet" href="extension_info.css"> On 2012/06/21 21:38:05, Yoyo Zhou wrote: ...
8 years, 6 months ago (2012-06-21 21:46:06 UTC) #21
Yoyo Zhou
http://codereview.chromium.org/10544195/diff/35002/chrome/browser/resources/extensions/extension_info.html File chrome/browser/resources/extensions/extension_info.html (right): http://codereview.chromium.org/10544195/diff/35002/chrome/browser/resources/extensions/extension_info.html#newcode5 chrome/browser/resources/extensions/extension_info.html:5: <link rel="stylesheet" href="extension_info.css"> On 2012/06/21 21:46:06, Evan Stade wrote: ...
8 years, 6 months ago (2012-06-22 19:20:53 UTC) #22
Evan Stade
just a reminder -- I think you need to use ChromeURLDataManager::DataSource::SetFontAndTextDirection()
8 years, 6 months ago (2012-06-23 00:56:05 UTC) #23
Yoyo Zhou
On Fri, Jun 22, 2012 at 5:56 PM, <estade@chromium.org> wrote: > just a reminder -- ...
8 years, 6 months ago (2012-06-23 01:08:43 UTC) #24
Evan Stade
8 years, 6 months ago (2012-06-23 01:09:58 UTC) #25
great

-- Evan Stade


On Fri, Jun 22, 2012 at 6:08 PM, Yoyo Zhou <yoz@chromium.org> wrote:

> On Fri, Jun 22, 2012 at 5:56 PM,  <estade@chromium.org> wrote:
> > just a reminder -- I think you need to use
> > ChromeURLDataManager::DataSource::SetFontAndTextDirection()
> >
> > http://codereview.chromium.org/10544195/
>
> It appears to get called in:
>
> #0  ChromeURLDataManager::DataSource::SetFontAndTextDirection
> (localized_strings=0x7fffd8be57f8)
>    at ../../chrome/browser/ui/webui/chrome_url_data_manager.cc:170
> #1  0x00007ffff05e33a8 in
> ChromeWebUIDataSource::SendLocalizedStringsAsJSON
> (this=0x7fffd8be5790,
>    request_id=38) at
> ../../chrome/browser/ui/webui/chrome_web_ui_data_source.cc:78
> #2  0x00007ffff05e327b in ChromeWebUIDataSource::StartDataRequest
> (this=0x7fffd8be5790, path=
>    "strings.js", is_incognito=false, request_id=38)
>

Powered by Google App Engine
This is Rietveld 408576698