| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/renderer/set_icon_natives.h" | 5 #include "extensions/renderer/set_icon_natives.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <limits> | 10 #include <limits> |
| 8 | 11 |
| 12 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/common/common_param_traits.h" | 14 #include "content/public/common/common_param_traits.h" |
| 11 #include "extensions/renderer/request_sender.h" | 15 #include "extensions/renderer/request_sender.h" |
| 12 #include "extensions/renderer/script_context.h" | 16 #include "extensions/renderer/script_context.h" |
| 13 #include "ipc/ipc_message_utils.h" | 17 #include "ipc/ipc_message_utils.h" |
| 14 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" | 18 #include "third_party/WebKit/public/web/WebArrayBufferConverter.h" |
| 15 #include "third_party/skia/include/core/SkBitmap.h" | 19 #include "third_party/skia/include/core/SkBitmap.h" |
| 16 #include "ui/gfx/ipc/gfx_param_traits.h" | 20 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 17 | 21 |
| 18 namespace { | 22 namespace { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 bitmap_set_value); | 145 bitmap_set_value); |
| 142 if (details->Has(v8::String::NewFromUtf8(args.GetIsolate(), "tabId"))) { | 146 if (details->Has(v8::String::NewFromUtf8(args.GetIsolate(), "tabId"))) { |
| 143 dict->Set( | 147 dict->Set( |
| 144 v8::String::NewFromUtf8(args.GetIsolate(), "tabId"), | 148 v8::String::NewFromUtf8(args.GetIsolate(), "tabId"), |
| 145 details->Get(v8::String::NewFromUtf8(args.GetIsolate(), "tabId"))); | 149 details->Get(v8::String::NewFromUtf8(args.GetIsolate(), "tabId"))); |
| 146 } | 150 } |
| 147 args.GetReturnValue().Set(dict); | 151 args.GetReturnValue().Set(dict); |
| 148 } | 152 } |
| 149 | 153 |
| 150 } // namespace extensions | 154 } // namespace extensions |
| OLD | NEW |