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

Issue 306044: Refactor implementation of BrowserActions, and add support for (Closed)

Created:
11 years, 2 months ago by Aaron Boodman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Refactor BrowserActions, and add support for tab-specific state. Future changelists will move Page Actions over to ExtensionAction2, then replace ExtensionAction and ExtensionActionState with ExtensionAction2. Also, fix a bug in setIcon({path:...}) where it would work only the first time. BUG=24669, 24472 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29997

Patch Set 1 #

Patch Set 2 : Added test #

Patch Set 3 : Remove docs changes #

Patch Set 4 : Few fixes #

Total comments: 13

Patch Set 5 : review comments #

Total comments: 2

Patch Set 6 : Make it work on linux too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+951 lines, -354 lines) Patch
M chrome/browser/extensions/browser_action_apitest.cc View 3 chunks +50 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_browser_actions_api.h View 1 2 3 1 chunk +29 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_browser_actions_api.cc View 1 2 3 4 2 chunks +31 lines, -80 lines 0 comments Download
M chrome/browser/extensions/extension_file_util.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 2 chunks +9 lines, -28 lines 0 comments Download
M chrome/browser/gtk/browser_actions_toolbar_gtk.h View 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/gtk/browser_actions_toolbar_gtk.cc View 9 chunks +99 lines, -75 lines 0 comments Download
M chrome/browser/gtk/browser_toolbar_gtk.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 2 chunks +21 lines, -5 lines 0 comments Download
M chrome/browser/views/browser_actions_container.h View 1 7 chunks +29 lines, -17 lines 0 comments Download
M chrome/browser/views/browser_actions_container.cc View 1 2 3 4 5 13 chunks +121 lines, -80 lines 0 comments Download
M chrome/browser/views/location_bar_view.cc View 2 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/views/toolbar_view.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 5 chunks +25 lines, -6 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 4 chunks +9 lines, -8 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 3 chunks +93 lines, -8 lines 0 comments Download
M chrome/common/extensions/extension_action.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_action.cc View 3 chunks +12 lines, -4 lines 0 comments Download
A chrome/common/extensions/extension_action2.h View 1 2 3 4 5 1 chunk +163 lines, -0 lines 0 comments Download
A chrome/common/extensions/extension_action2.cc View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/common/extensions/extension_action2_unittest.cc View 1 2 3 4 5 1 chunk +127 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_process_bindings.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/browser_action/update.html View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/browser_action_tab_specific_state/background.html View 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/browser_action_tab_specific_state/icon1.png View Binary file 0 comments Download
A chrome/test/data/extensions/api_test/browser_action_tab_specific_state/icon2.png View Binary file 0 comments Download
A chrome/test/data/extensions/api_test/browser_action_tab_specific_state/icon3.png View Binary file 0 comments Download
A chrome/test/data/extensions/api_test/browser_action_tab_specific_state/icon4.png View Binary file 0 comments Download
A chrome/test/data/extensions/api_test/browser_action_tab_specific_state/icon5.png View Binary file 0 comments Download
A chrome/test/data/extensions/api_test/browser_action_tab_specific_state/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/icon1.png View Binary file 0 comments Download
A chrome/test/data/extensions/icon2.png View Binary file 0 comments Download

Messages

Total messages: 9 (0 generated)
Aaron Boodman
Sorry about the mega CL. Note that this change is relative to http://codereview.chromium.org/293044/show, though that ...
11 years, 2 months ago (2009-10-22 07:39:50 UTC) #1
Matt Perry
mostly lgtm http://codereview.chromium.org/306044/diff/53/1106 File chrome/browser/extensions/extension_browser_actions_api.cc (right): http://codereview.chromium.org/306044/diff/53/1106#newcode66 Line 66: browser_action_->SetDefaultIcon(icon_index); Since the browser action API ...
11 years, 2 months ago (2009-10-22 18:24:28 UTC) #2
asargent_no_longer_on_chrome
lgtm (I only focused on extension_browser_actions_api.{h,cc}) http://codereview.chromium.org/306044/diff/53/1106 File chrome/browser/extensions/extension_browser_actions_api.cc (right): http://codereview.chromium.org/306044/diff/53/1106#newcode65 Line 65: // setIcon({iconIndex:...}); ...
11 years, 2 months ago (2009-10-22 18:53:34 UTC) #3
Aaron Boodman
http://codereview.chromium.org/306044/diff/53/1106 File chrome/browser/extensions/extension_browser_actions_api.cc (right): http://codereview.chromium.org/306044/diff/53/1106#newcode65 Line 65: // setIcon({iconIndex:...}); On 2009/10/22 18:53:34, Antony Sargent wrote: ...
11 years, 2 months ago (2009-10-22 20:27:12 UTC) #4
asargent_no_longer_on_chrome
http://codereview.chromium.org/306044/diff/7003/7015 File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/306044/diff/7003/7015#newcode860 Line 860: "description": "Sets the icon for the page action. ...
11 years, 2 months ago (2009-10-22 20:49:40 UTC) #5
Matt Perry
LGTM
11 years, 2 months ago (2009-10-22 20:50:36 UTC) #6
Aaron Boodman
+estade Evan, can you please review the files that end in _gtk.* ?
11 years, 2 months ago (2009-10-23 05:00:36 UTC) #7
Evan Stade
LGTM. Does this fix bug 24669?
11 years, 2 months ago (2009-10-23 17:39:09 UTC) #8
Aaron Boodman
11 years, 2 months ago (2009-10-23 17:49:33 UTC) #9
On 2009/10/23 17:39:09, Evan Stade wrote:
> Does this fix bug 24669?

Yes! Thanks for the pointer.

Powered by Google App Engine
This is Rietveld 408576698