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

Issue 8682013: Moving the MHTML API out of experimental and renaming it. (Closed)

Created:
9 years, 1 month ago by Jay Civelli
Modified:
9 years ago
CC:
chromium-reviews, Erik does not do reviews, Paweł Hajdan Jr., mihaip+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Moving the MHTML API out of experimental and renaming it. Moving the savePageAsMTML API out of experimental and renaming it per Kathy suggestion to pageCapture.saveAsMhtml. BUG=None TEST=The API should still work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111678

Patch Set 1 #

Total comments: 2

Patch Set 2 : Renamed saveAsMhtml to saveAsMHTML #

Patch Set 3 : Synced #

Patch Set 4 : One more sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -1330 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/extensions/extension_page_capture_api.h View 1 4 chunks +7 lines, -7 lines 0 comments Download
A + chrome/browser/extensions/extension_page_capture_api.cc View 8 chunks +19 lines, -17 lines 0 comments Download
A + chrome/browser/extensions/extension_page_capture_apitest.cc View 1 3 chunks +13 lines, -15 lines 0 comments Download
D chrome/browser/extensions/extension_save_page_api.h View 1 chunk +0 lines, -61 lines 0 comments Download
D chrome/browser/extensions/extension_save_page_api.cc View 1 chunk +0 lines, -176 lines 0 comments Download
D chrome/browser/extensions/extension_save_page_apitest.cc View 1 chunk +0 lines, -63 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/api_index.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/experimental.html View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D chrome/common/extensions/docs/experimental.savePage.html View 1 chunk +0 lines, -864 lines 0 comments Download
A + chrome/common/extensions/docs/pageCapture.html View 1 6 chunks +21 lines, -12 lines 0 comments Download
M chrome/common/extensions/docs/samples.html View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
D chrome/common/extensions/docs/static/experimental.savePage.html View 1 chunk +0 lines, -24 lines 0 comments Download
A + chrome/common/extensions/docs/static/pageCapture.html View 2 chunks +14 lines, -5 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/schema_generated_bindings.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/page_capture/background.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/page_capture/google.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/page_capture/logo.png View Binary file 0 comments Download
A chrome/test/data/extensions/api_test/page_capture/manifest.json View 1 chunk +7 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/page_capture/test.js View 1 2 chunks +5 lines, -5 lines 0 comments Download
D chrome/test/data/extensions/api_test/save_page/background.html View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/test/data/extensions/api_test/save_page/google.html View 1 chunk +0 lines, -9 lines 0 comments Download
D chrome/test/data/extensions/api_test/save_page/logo.png View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/extensions/api_test/save_page/manifest.json View 1 chunk +0 lines, -7 lines 0 comments Download
D chrome/test/data/extensions/api_test/save_page/test.js View 1 chunk +0 lines, -55 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jcivelli
9 years, 1 month ago (2011-11-23 17:49:22 UTC) #1
asargent_no_longer_on_chrome
lgtm
9 years, 1 month ago (2011-11-23 19:57:34 UTC) #2
Aaron Boodman
http://codereview.chromium.org/8682013/diff/1/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/8682013/diff/1/chrome/common/extensions/api/extension_api.json#newcode9063 chrome/common/extensions/api/extension_api.json:9063: "name": "saveAsMhtml", I think it is better all caps. ...
9 years, 1 month ago (2011-11-23 22:24:48 UTC) #3
jcivelli
http://codereview.chromium.org/8682013/diff/1/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/8682013/diff/1/chrome/common/extensions/api/extension_api.json#newcode9063 chrome/common/extensions/api/extension_api.json:9063: "name": "saveAsMhtml", On 2011/11/23 22:24:49, Aaron Boodman wrote: > ...
9 years, 1 month ago (2011-11-23 22:41:30 UTC) #4
Aaron Boodman
On 2011/11/23 22:41:30, jcivelli wrote: > http://codereview.chromium.org/8682013/diff/1/chrome/common/extensions/api/extension_api.json > File chrome/common/extensions/api/extension_api.json (right): > > http://codereview.chromium.org/8682013/diff/1/chrome/common/extensions/api/extension_api.json#newcode9063 > ...
9 years, 1 month ago (2011-11-23 22:45:23 UTC) #5
Aaron Boodman
+kathy
9 years, 1 month ago (2011-11-23 22:45:49 UTC) #6
kathyw
I'm not religious about this... saveAsMHTML looks ugly/shouty to me, but as long as we're ...
9 years, 1 month ago (2011-11-24 00:40:13 UTC) #7
Aaron Boodman
On Wed, Nov 23, 2011 at 4:40 PM, Kathy Walrath <kathyw@chromium.org> wrote: > I'm not ...
9 years, 1 month ago (2011-11-24 03:16:50 UTC) #8
Jay Civelli
On 2011/11/24 03:16:50, Aaron Boodman wrote: > On Wed, Nov 23, 2011 at 4:40 PM, ...
9 years ago (2011-11-25 18:53:11 UTC) #9
Aaron Boodman
Thanks, LGTM
9 years ago (2011-11-27 06:17:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/8682013/8001
9 years ago (2011-11-27 23:43:04 UTC) #11
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary filesare still unsupported at ...
9 years ago (2011-11-27 23:43:09 UTC) #12
kathyw
9 years ago (2011-11-28 19:11:23 UTC) #13
Just to give a little historical background...

The reason Xml and Url are capitalized that way in many APIs probably
has its roots in the Java style guidelines.
http://en.wikipedia.org/wiki/Naming_convention_(programming) lists
some of the important naming rules, such as "Initialisms of three or
more letters are CamelCase instead of upper case (e.g.,
"parseDbmXmlFromIPAddress" instead of "parseDBMXMLFromIPAddress"). One
may also set the boundary at two or more letters (e.g.,
"parseDbmXmlFromIpAddress")."

I think we decided on that convention for readability's sake. Mixed
case is just easier to read. Plus upper case tends to make things look
like constants.

JavaScript usually follows the Java naming guidelines, but not always
(e.g. getElementById, getElementsByTagNameNS, and the bipolar
XMLHttpRequest).

-k-

On Wed, Nov 23, 2011 at 7:16 PM, Aaron Boodman <aa@chromium.org> wrote:
>
> On Wed, Nov 23, 2011 at 4:40 PM, Kathy Walrath <kathyw@chromium.org> wrote:
> > I'm not religious about this... saveAsMHTML looks ugly/shouty to me,
> > but as long as we're consistent from here on out, I think we're fine.
>
> I can see that, especially for this case. But things like Xml and Url
> look really unprofessional to me because they are well-known acronyms
> that are never written in mixed case.
>
> Please go with MHTML. I'll try and find time to make aliases for the
> old bad examples sometime soon.
>
> Thanks,
>
> - a

Powered by Google App Engine
This is Rietveld 408576698