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

Issue 269079: Implement new page action API. (Closed)

Created:
11 years, 2 months ago by Matt Perry
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implement new page action API. Still no actual drawing code for badges, though. BUG=24635 TEST=Load the sample test_page_action extension and click the page action to cycle through various states. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29335

Patch Set 1 #

Patch Set 2 : fix linux #

Patch Set 3 : forgot header #

Total comments: 33

Patch Set 4 : feedback #

Total comments: 2

Patch Set 5 : feedback2 #

Total comments: 2

Patch Set 6 : tests #

Patch Set 7 : compile fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2186 lines, -93 lines) Patch
M chrome/browser/extensions/browser_action_apitest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_browser_actions_api.cc View 2 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_page_actions_module.h View 1 2 3 4 5 2 chunks +46 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_page_actions_module.cc View 1 2 3 4 5 chunks +171 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_page_actions_module_constants.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_page_actions_module_constants.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
A chrome/browser/extensions/page_action_apitest.cc View 6 1 chunk +75 lines, -0 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.h View 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.cc View 1 2 3 4 chunks +28 lines, -8 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 2 chunks +17 lines, -6 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 3 chunks +23 lines, -17 lines 0 comments Download
M chrome/browser/views/location_bar_view.cc View 1 2 3 1 chunk +11 lines, -6 lines 0 comments Download
M chrome/chrome.gyp View 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 1 chunk +140 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/pageAction.html View 1 chunk +1476 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_action.h View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_process_bindings.cc View 1 2 3 4 5 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 1 2 3 4 5 5 chunks +19 lines, -13 lines 0 comments Download
M chrome/test/data/extensions/api_test/browser_action/manifest.json View 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/page_action/background.html View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/page_action/icon.png View Binary file 0 comments Download
A chrome/test/data/extensions/api_test/page_action/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/page_action/update.html View 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/page_action/update2.html View 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/samples/test_page_action/background.html View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/samples/test_page_action/manifest.json View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/samples/test_page_action/print_16x16.png View Binary file 0 comments Download

Messages

Total messages: 10 (0 generated)
Matt Perry
11 years, 2 months ago (2009-10-14 19:33:50 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/269079/diff/5001/6002 File chrome/browser/extensions/extension_page_actions_module.cc (right): http://codereview.chromium.org/269079/diff/5001/6002#newcode120 Line 120: EXTENSION_FUNCTION_VALIDATE(args_->GetAsInteger(&tab_id)); I think it would be cleaner to ...
11 years, 2 months ago (2009-10-14 22:25:30 UTC) #2
Matt Perry
http://codereview.chromium.org/269079/diff/5001/6002 File chrome/browser/extensions/extension_page_actions_module.cc (right): http://codereview.chromium.org/269079/diff/5001/6002#newcode120 Line 120: EXTENSION_FUNCTION_VALIDATE(args_->GetAsInteger(&tab_id)); On 2009/10/14 22:25:30, Erik Kay wrote: > ...
11 years, 2 months ago (2009-10-14 22:44:58 UTC) #3
Erik does not do reviews
http://codereview.chromium.org/269079/diff/5001/6002 File chrome/browser/extensions/extension_page_actions_module.cc (right): http://codereview.chromium.org/269079/diff/5001/6002#newcode120 Line 120: EXTENSION_FUNCTION_VALIDATE(args_->GetAsInteger(&tab_id)); On 2009/10/14 22:44:58, Matt Perry wrote: > ...
11 years, 2 months ago (2009-10-14 23:40:46 UTC) #4
Matt Perry
Also adjusted the comment on GetOrCreatePageActionState http://codereview.chromium.org/269079/diff/6018/5014 File chrome/renderer/extensions/extension_process_bindings.cc (right): http://codereview.chromium.org/269079/diff/6018/5014#newcode410 Line 410: // A ...
11 years, 2 months ago (2009-10-15 00:13:35 UTC) #5
Erik does not do reviews
LGTM
11 years, 2 months ago (2009-10-15 00:20:07 UTC) #6
Aaron Boodman
FYI... estade recently refactored the badge-drawing code out (it may not be checked in yet) ...
11 years, 2 months ago (2009-10-15 06:01:21 UTC) #7
Aaron Boodman
Crap, one more thing. Update the static docs. Build test shell and run src/chrome/common/extensions/build/build.bat - ...
11 years, 2 months ago (2009-10-15 06:06:29 UTC) #8
Aaron Boodman
Oh and ... tests? You can probably copy the tests I just added for browser ...
11 years, 2 months ago (2009-10-15 06:07:54 UTC) #9
Matt Perry
11 years, 2 months ago (2009-10-15 21:17:26 UTC) #10
Added tests, and updated the browser_action apitest to the new manifest format.

Powered by Google App Engine
This is Rietveld 408576698