| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 if (value.IsEmpty()) | 80 if (value.IsEmpty()) |
| 81 return v8::Object::New(script_state->GetIsolate()); | 81 return v8::Object::New(script_state->GetIsolate()); |
| 82 return v8::Local<v8::Object>::New(script_state->GetIsolate(), | 82 return v8::Local<v8::Object>::New(script_state->GetIsolate(), |
| 83 value.As<v8::Object>()); | 83 value.As<v8::Object>()); |
| 84 } | 84 } |
| 85 | 85 |
| 86 v8::Local<v8::Value> V8LazyEventListener::CallListenerFunction( | 86 v8::Local<v8::Value> V8LazyEventListener::CallListenerFunction( |
| 87 ScriptState* script_state, | 87 ScriptState* script_state, |
| 88 v8::Local<v8::Value> js_event, | 88 v8::Local<v8::Value> js_event, |
| 89 Event* event) { | 89 Event* event) { |
| 90 ASSERT(!js_event.IsEmpty()); | 90 DCHECK(!js_event.IsEmpty()); |
| 91 v8::Local<v8::Object> listener_object = | 91 v8::Local<v8::Object> listener_object = |
| 92 GetListenerObject(ExecutionContext::From(script_state)); | 92 GetListenerObject(ExecutionContext::From(script_state)); |
| 93 if (listener_object.IsEmpty()) | 93 if (listener_object.IsEmpty()) |
| 94 return v8::Local<v8::Value>(); | 94 return v8::Local<v8::Value>(); |
| 95 | 95 |
| 96 v8::Local<v8::Function> handler_function = listener_object.As<v8::Function>(); | 96 v8::Local<v8::Function> handler_function = listener_object.As<v8::Function>(); |
| 97 v8::Local<v8::Object> receiver = GetReceiverObject(script_state, event); | 97 v8::Local<v8::Object> receiver = GetReceiverObject(script_state, event); |
| 98 if (handler_function.IsEmpty() || receiver.IsEmpty()) | 98 if (handler_function.IsEmpty() || receiver.IsEmpty()) |
| 99 return v8::Local<v8::Value>(); | 99 return v8::Local<v8::Value>(); |
| 100 | 100 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 AccessControlStatus access_control_status = kNotSharableCrossOrigin; | 247 AccessControlStatus access_control_status = kNotSharableCrossOrigin; |
| 248 if (message->IsOpaque()) | 248 if (message->IsOpaque()) |
| 249 access_control_status = kOpaqueResource; | 249 access_control_status = kOpaqueResource; |
| 250 else if (message->IsSharedCrossOrigin()) | 250 else if (message->IsSharedCrossOrigin()) |
| 251 access_control_status = kSharableCrossOrigin; | 251 access_control_status = kSharableCrossOrigin; |
| 252 | 252 |
| 253 execution_context->DispatchErrorEvent(event, access_control_status); | 253 execution_context->DispatchErrorEvent(event, access_control_status); |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace blink | 256 } // namespace blink |
| OLD | NEW |