https://codereview.chromium.org/11027065/diff/6002/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://codereview.chromium.org/11027065/diff/6002/content/renderer/browser_plugin/browser_plugin.cc#newcode472 content/renderer/browser_plugin/browser_plugin.cc:472: v8::String::New(UTF16ToUTF8(title).c_str(), UTF16ToUTF8(title).size())); On 2012/10/05 19:53:30, Fady Samuel wrote: > ...
8 years, 2 months ago
(2012-10-05 19:59:15 UTC)
#5
https://codereview.chromium.org/11027065/diff/6002/content/renderer/browser_p...
File content/renderer/browser_plugin/browser_plugin.cc (right):
https://codereview.chromium.org/11027065/diff/6002/content/renderer/browser_p...
content/renderer/browser_plugin/browser_plugin.cc:472:
v8::String::New(UTF16ToUTF8(title).c_str(), UTF16ToUTF8(title).size()));
On 2012/10/05 19:53:30, Fady Samuel wrote:
> On 2012/10/05 19:20:48, creis wrote:
> > Can you also give me a sanity check on this conversion? My last version
> didn't
> > compile on Windows.
>
> It looks like v8::String::New can work with UTF16. v8::String::New(const
> uint16_t* data, int length)
Isn't uint16_t an unsigned int? I wouldn't think that's for UTF16.
I was using v8::String::New(title.c_str(), title.size())); before, and I got
this error on Windows:
http://build.chromium.org/p/tryserver.chromium/builders/win_rel/builds/68126/...
error C2665: 'v8::String::New' : none of the 2 overloads could convert all the
argument types
..\v8/include/v8.h(1220): could be 'v8::Local<T> v8::String::New(const
char *,int)'
with
[
T=v8::String
]
..\v8/include/v8.h(1223): or 'v8::Local<T> v8::String::New(const
uint16_t *,int)'
with
[
T=v8::String
]
while trying to match the argument list '(const wchar_t *, unsigned
int)'
I saw a similar pattern to this new one in
chrome/renderer/extensions/app_bindings.cc, though it didn't pass the size.
abarth-chromium
https://codereview.chromium.org/11027065/diff/6002/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (right): https://codereview.chromium.org/11027065/diff/6002/content/renderer/browser_plugin/browser_plugin.cc#newcode464 content/renderer/browser_plugin/browser_plugin.cc:464: v8::Context::Scope context_scope(v8::Context::New()); It's very unlikely that you should create ...
8 years, 2 months ago
(2012-10-05 22:10:39 UTC)
#6
https://codereview.chromium.org/11086025/ has landed. Please see this as an example of how to fire off an ...
8 years, 2 months ago
(2012-10-10 17:37:30 UTC)
#7
https://codereview.chromium.org/11086025/ has landed. Please see this as an
example of how to fire off an event. More changes coming in the near future once
we figure out how we want to do events long-term.
Issue 11027065: Browser plugin: Implement titleChanged event.
(Closed)
Created 8 years, 2 months ago by Charlie Reis
Modified 7 years ago
Reviewers: Fady Samuel, abarth-chromium
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 8