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

Side by Side Diff: chrome/renderer/extensions/extension_process_bindings.cc

Issue 7550026: base: Remove using declaration of BinaryValue as it's no longer necessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/policy/user_policy_cache.cc ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/extensions/extension_process_bindings.h" 5 #include "chrome/renderer/extensions/extension_process_bindings.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 pixels[t] = SkPreMultiplyColor( 508 pixels[t] = SkPreMultiplyColor(
509 ((data->Get(v8::Integer::New(4*t + 3))->Int32Value() & 0xFF) << 24) | 509 ((data->Get(v8::Integer::New(4*t + 3))->Int32Value() & 0xFF) << 24) |
510 ((data->Get(v8::Integer::New(4*t + 0))->Int32Value() & 0xFF) << 16) | 510 ((data->Get(v8::Integer::New(4*t + 0))->Int32Value() & 0xFF) << 16) |
511 ((data->Get(v8::Integer::New(4*t + 1))->Int32Value() & 0xFF) << 8) | 511 ((data->Get(v8::Integer::New(4*t + 1))->Int32Value() & 0xFF) << 8) |
512 ((data->Get(v8::Integer::New(4*t + 2))->Int32Value() & 0xFF) << 0)); 512 ((data->Get(v8::Integer::New(4*t + 2))->Int32Value() & 0xFF) << 0));
513 } 513 }
514 514
515 // Construct the Value object. 515 // Construct the Value object.
516 IPC::Message bitmap_pickle; 516 IPC::Message bitmap_pickle;
517 IPC::WriteParam(&bitmap_pickle, bitmap); 517 IPC::WriteParam(&bitmap_pickle, bitmap);
518 *bitmap_value = BinaryValue::CreateWithCopiedBuffer( 518 *bitmap_value = base::BinaryValue::CreateWithCopiedBuffer(
519 static_cast<const char*>(bitmap_pickle.data()), bitmap_pickle.size()); 519 static_cast<const char*>(bitmap_pickle.data()), bitmap_pickle.size());
520 520
521 return true; 521 return true;
522 } 522 }
523 523
524 // A special request for setting the extension action icon and the sidebar 524 // A special request for setting the extension action icon and the sidebar
525 // mini tab icon. This function accepts a canvas ImageData object, so it needs 525 // mini tab icon. This function accepts a canvas ImageData object, so it needs
526 // to do extra processing before sending the request to the browser. 526 // to do extra processing before sending the request to the browser.
527 static v8::Handle<v8::Value> SetIconCommon( 527 static v8::Handle<v8::Value> SetIconCommon(
528 const v8::Arguments& args) { 528 const v8::Arguments& args) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 if (!retval.IsEmpty() && !retval->IsUndefined()) { 599 if (!retval.IsEmpty() && !retval->IsUndefined()) {
600 std::string error = *v8::String::AsciiValue(retval); 600 std::string error = *v8::String::AsciiValue(retval);
601 DCHECK(false) << error; 601 DCHECK(false) << error;
602 } 602 }
603 #endif 603 #endif
604 604
605 request->second->context.Dispose(); 605 request->second->context.Dispose();
606 request->second->context.Clear(); 606 request->second->context.Clear();
607 pending_requests.erase(request); 607 pending_requests.erase(request);
608 } 608 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/user_policy_cache.cc ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698