OLD | NEW |
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 "content/renderer/pepper/npapi_glue.h" | 5 #include "content/renderer/pepper/npapi_glue.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "content/renderer/pepper/host_array_buffer_var.h" | 10 #include "content/renderer/pepper/host_array_buffer_var.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "third_party/WebKit/public/web/WebDocument.h" | 21 #include "third_party/WebKit/public/web/WebDocument.h" |
22 #include "third_party/WebKit/public/web/WebElement.h" | 22 #include "third_party/WebKit/public/web/WebElement.h" |
23 #include "third_party/WebKit/public/web/WebFrame.h" | 23 #include "third_party/WebKit/public/web/WebFrame.h" |
24 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 24 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
25 #include "v8/include/v8.h" | 25 #include "v8/include/v8.h" |
26 | 26 |
27 using ppapi::NPObjectVar; | 27 using ppapi::NPObjectVar; |
28 using ppapi::PpapiGlobals; | 28 using ppapi::PpapiGlobals; |
29 using ppapi::StringVar; | 29 using ppapi::StringVar; |
30 using ppapi::Var; | 30 using ppapi::Var; |
31 using WebKit::WebArrayBuffer; | 31 using blink::WebArrayBuffer; |
32 using WebKit::WebBindings; | 32 using blink::WebBindings; |
33 using WebKit::WebFrame; | 33 using blink::WebFrame; |
34 using WebKit::WebPluginContainer; | 34 using blink::WebPluginContainer; |
35 | 35 |
36 namespace content { | 36 namespace content { |
37 | 37 |
38 namespace { | 38 namespace { |
39 | 39 |
40 const char kInvalidPluginValue[] = "Error: Plugin returned invalid value."; | 40 const char kInvalidPluginValue[] = "Error: Plugin returned invalid value."; |
41 | 41 |
42 PP_Var NPObjectToPPVarImpl(PepperPluginInstanceImpl* instance, | 42 PP_Var NPObjectToPPVarImpl(PepperPluginInstanceImpl* instance, |
43 NPObject* object, | 43 NPObject* object, |
44 v8::Local<v8::Context> context) { | 44 v8::Local<v8::Context> context) { |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 } | 352 } |
353 } | 353 } |
354 } | 354 } |
355 | 355 |
356 // static | 356 // static |
357 void TryCatch::Catch(void* self, const char* message) { | 357 void TryCatch::Catch(void* self, const char* message) { |
358 static_cast<TryCatch*>(self)->SetException(message); | 358 static_cast<TryCatch*>(self)->SetException(message); |
359 } | 359 } |
360 | 360 |
361 } // namespace content | 361 } // namespace content |
OLD | NEW |