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

Issue 113893005: [gin] Introduce Wrappable::GetObjectTemplate (Closed)

Created:
7 years ago by jochen (gone - plz use gerrit)
Modified:
7 years ago
CC:
chromium-reviews, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org, abarth-chromium
Visibility:
Public.

Description

[gin] Introduce Wrappable::GetObjectTemplate Instead of explicitly registering object templates for all wrapper infos, add a method on wrappable that returns the template when needed. BUG=none R=aa@chromium.org,abarth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241370

Patch Set 1 #

Patch Set 2 : updates #

Total comments: 6

Patch Set 3 : updates #

Total comments: 1

Patch Set 4 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -140 lines) Patch
M content/renderer/gin_browsertest.cc View 1 2 2 chunks +0 lines, -10 lines 0 comments Download
M content/renderer/stats_collection_controller.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/stats_collection_controller.cc View 1 3 chunks +11 lines, -16 lines 0 comments Download
M gin/function_template.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M gin/function_template.cc View 1 2 1 chunk +3 lines, -14 lines 0 comments Download
M gin/function_template.h.pump View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M gin/isolate_holder.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M gin/object_template_builder.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M gin/wrappable.h View 1 2 3 3 chunks +30 lines, -7 lines 0 comments Download
M gin/wrappable.cc View 1 2 3 chunks +19 lines, -5 lines 0 comments Download
M gin/wrappable_unittest.cc View 1 2 4 chunks +8 lines, -22 lines 0 comments Download
M mojo/apps/js/bindings/gl/context.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/apps/js/bindings/gl/context.cc View 1 2 chunks +7 lines, -15 lines 0 comments Download
M mojo/apps/js/bindings/gl/module.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M mojo/apps/js/bindings/gl/opaque.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M mojo/apps/js/bindings/gl/opaque.cc View 1 2 2 chunks +0 lines, -13 lines 0 comments Download
M mojo/apps/js/bindings/support.cc View 1 1 chunk +4 lines, -6 lines 0 comments Download
M mojo/apps/js/bindings/waiting_callback.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M mojo/apps/js/bindings/waiting_callback.cc View 1 2 2 chunks +0 lines, -11 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jochen (gone - plz use gerrit)
7 years ago (2013-12-13 14:41:21 UTC) #1
Aaron Boodman
This still isn't sitting right with me. There's a minor thing that a method called ...
7 years ago (2013-12-13 18:43:23 UTC) #2
jochen (gone - plz use gerrit)
On 2013/12/13 18:43:23, Aaron Boodman wrote: > This still isn't sitting right with me. > ...
7 years ago (2013-12-13 19:06:22 UTC) #3
Aaron Boodman
On 2013/12/13 19:06:22, jochen wrote: > On 2013/12/13 18:43:23, Aaron Boodman wrote: > > This ...
7 years ago (2013-12-13 19:26:48 UTC) #4
jochen (gone - plz use gerrit)
PTAL
7 years ago (2013-12-16 10:14:31 UTC) #5
Aaron Boodman
https://codereview.chromium.org/113893005/diff/20001/gin/wrappable.h File gin/wrappable.h (right): https://codereview.chromium.org/113893005/diff/20001/gin/wrappable.h#newcode35 gin/wrappable.h:35: // static v8::Local<v8::ObjectTemplate> GetObjectTemplate( It's ok for this to ...
7 years ago (2013-12-16 16:44:26 UTC) #6
Aaron Boodman
https://codereview.chromium.org/113893005/diff/20001/gin/wrappable.h File gin/wrappable.h (right): https://codereview.chromium.org/113893005/diff/20001/gin/wrappable.h#newcode35 gin/wrappable.h:35: // static v8::Local<v8::ObjectTemplate> GetObjectTemplate( Some classes don't want to ...
7 years ago (2013-12-16 16:50:35 UTC) #7
jochen (gone - plz use gerrit)
ptal https://codereview.chromium.org/113893005/diff/20001/gin/wrappable.h File gin/wrappable.h (right): https://codereview.chromium.org/113893005/diff/20001/gin/wrappable.h#newcode35 gin/wrappable.h:35: // static v8::Local<v8::ObjectTemplate> GetObjectTemplate( On 2013/12/16 16:50:35, Aaron ...
7 years ago (2013-12-17 14:32:31 UTC) #8
Aaron Boodman
LGTM Thanks! https://codereview.chromium.org/113893005/diff/160001/gin/wrappable.h File gin/wrappable.h (right): https://codereview.chromium.org/113893005/diff/160001/gin/wrappable.h#newcode44 gin/wrappable.h:44: // return ObjectTemplateBuilder(isolate).Build(); Can you add a ...
7 years ago (2013-12-17 17:58:20 UTC) #9
jochen (gone - plz use gerrit)
I added a SetValue call. SetMethod is a bit confusing unless you also add methods ...
7 years ago (2013-12-17 18:59:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/113893005/170001
7 years ago (2013-12-17 18:59:50 UTC) #11
commit-bot: I haz the power
Change committed as 241370
7 years ago (2013-12-17 21:47:06 UTC) #12
abarth-chromium
7 years ago (2013-12-19 07:51:49 UTC) #13
Message was sent while issue was closed.
Very nice

Powered by Google App Engine
This is Rietveld 408576698