~davidc3/+junk/js-scopes-misc

« back to all changes in this revision

Viewing changes to src/bindings/src/search-query.cc

  • Committer: Alexandre Abreu
  • Date: 2015-07-20 21:05:06 UTC
  • mfrom: (12.1.3 latest)
  • Revision ID: alexandre.abreu@canonical.com-20150720210506-sb68o2lasi8gqu12
Fix launcher scope_id; updated JS api; start porting to better v8cpp bindings; fix scope_id

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
 
89
89
  v8::Isolate *isolate = v8::Isolate::GetCurrent();
90
90
 
91
 
  auto wrapped_q = v8cpp::export_object<CannedQuery>(isolate, q);
92
 
 
93
 
  return wrapped_q;
 
91
  return v8cpp::to_v8(isolate, q);
94
92
}
95
93
 
96
94
void SearchQuery::run(unity::scopes::SearchReplyProxy const& reply) {
103
101
 
104
102
  v8::Isolate *isolate = v8::Isolate::GetCurrent();
105
103
 
106
 
  auto wrapped_sr = v8cpp::export_object<SearchReply>(isolate, sr);
 
104
  auto wrapped_sr = v8cpp::to_v8(isolate, sr);
107
105
 
108
106
  v8::Local<v8::Function> run_callback =
109
107
    v8cpp::to_local<v8::Function>(isolate, run_callback_);