| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
| 8 * met: | 8 * met: |
| 9 * | 9 * |
| 10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 #include "core/inspector/ConsoleMessage.h" | 61 #include "core/inspector/ConsoleMessage.h" |
| 62 #include "core/inspector/InspectorInstrumentation.h" | 62 #include "core/inspector/InspectorInstrumentation.h" |
| 63 #include "core/inspector/InspectorTraceEvents.h" | 63 #include "core/inspector/InspectorTraceEvents.h" |
| 64 #include "core/loader/DocumentLoader.h" | 64 #include "core/loader/DocumentLoader.h" |
| 65 #include "core/loader/FrameLoader.h" | 65 #include "core/loader/FrameLoader.h" |
| 66 #include "core/loader/FrameLoaderClient.h" | 66 #include "core/loader/FrameLoaderClient.h" |
| 67 #include "core/loader/NavigationScheduler.h" | 67 #include "core/loader/NavigationScheduler.h" |
| 68 #include "core/loader/ProgressTracker.h" | 68 #include "core/loader/ProgressTracker.h" |
| 69 #include "core/plugins/PluginView.h" | 69 #include "core/plugins/PluginView.h" |
| 70 #include "platform/Histogram.h" | 70 #include "platform/Histogram.h" |
| 71 #include "platform/NotImplemented.h" | |
| 72 #include "platform/TraceEvent.h" | 71 #include "platform/TraceEvent.h" |
| 73 #include "platform/UserGestureIndicator.h" | 72 #include "platform/UserGestureIndicator.h" |
| 74 #include "platform/Widget.h" | 73 #include "platform/Widget.h" |
| 75 #include "platform/v8_inspector/public/V8StackTrace.h" | 74 #include "platform/v8_inspector/public/V8StackTrace.h" |
| 76 #include "platform/weborigin/SecurityOrigin.h" | 75 #include "platform/weborigin/SecurityOrigin.h" |
| 77 #include "public/platform/Platform.h" | 76 #include "public/platform/Platform.h" |
| 78 #include "wtf/CurrentTime.h" | 77 #include "wtf/CurrentTime.h" |
| 79 #include "wtf/StdLibExtras.h" | 78 #include "wtf/StdLibExtras.h" |
| 80 #include "wtf/StringExtras.h" | 79 #include "wtf/StringExtras.h" |
| 81 #include "wtf/text/CString.h" | 80 #include "wtf/text/CString.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 for (size_t i = 0; i < extensions.size(); ++i) { | 336 for (size_t i = 0; i < extensions.size(); ++i) { |
| 338 if (extensions[i] == extension) | 337 if (extensions[i] == extension) |
| 339 return; | 338 return; |
| 340 } | 339 } |
| 341 v8::RegisterExtension(extension); | 340 v8::RegisterExtension(extension); |
| 342 registeredExtensions().append(extension); | 341 registeredExtensions().append(extension); |
| 343 } | 342 } |
| 344 | 343 |
| 345 static NPObject* createNoScriptObject() | 344 static NPObject* createNoScriptObject() |
| 346 { | 345 { |
| 347 notImplemented(); | 346 NOTIMPLEMENTED(); |
| 348 return 0; | 347 return nullptr; |
| 349 } | 348 } |
| 350 | 349 |
| 351 static NPObject* createScriptObject(LocalFrame* frame, v8::Isolate* isolate) | 350 static NPObject* createScriptObject(LocalFrame* frame, v8::Isolate* isolate) |
| 352 { | 351 { |
| 353 ScriptState* scriptState = ScriptState::forMainWorld(frame); | 352 ScriptState* scriptState = ScriptState::forMainWorld(frame); |
| 354 if (!scriptState) | 353 if (!scriptState) |
| 355 return createNoScriptObject(); | 354 return createNoScriptObject(); |
| 356 | 355 |
| 357 ScriptState::Scope scope(scriptState); | 356 ScriptState::Scope scope(scriptState); |
| 358 LocalDOMWindow* window = frame->localDOMWindow(); | 357 LocalDOMWindow* window = frame->localDOMWindow(); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 for (size_t i = 0; i < resultArray->Length(); ++i) { | 600 for (size_t i = 0; i < resultArray->Length(); ++i) { |
| 602 v8::Local<v8::Value> value; | 601 v8::Local<v8::Value> value; |
| 603 if (!resultArray->Get(scriptState->context(), i).ToLocal(&value)) | 602 if (!resultArray->Get(scriptState->context(), i).ToLocal(&value)) |
| 604 return; | 603 return; |
| 605 results->append(value); | 604 results->append(value); |
| 606 } | 605 } |
| 607 } | 606 } |
| 608 } | 607 } |
| 609 | 608 |
| 610 } // namespace blink | 609 } // namespace blink |
| OLD | NEW |