| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 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 23 matching lines...) Expand all Loading... |
| 34 #include <memory> | 34 #include <memory> |
| 35 #include "WebIconURL.h" | 35 #include "WebIconURL.h" |
| 36 #include "WebNode.h" | 36 #include "WebNode.h" |
| 37 #include "public/platform/WebCanvas.h" | 37 #include "public/platform/WebCanvas.h" |
| 38 #include "public/platform/WebFeaturePolicy.h" | 38 #include "public/platform/WebFeaturePolicy.h" |
| 39 #include "public/platform/WebInsecureRequestPolicy.h" | 39 #include "public/platform/WebInsecureRequestPolicy.h" |
| 40 #include "public/web/WebFrameLoadType.h" | 40 #include "public/web/WebFrameLoadType.h" |
| 41 #include "public/web/WebTreeScopeType.h" | 41 #include "public/web/WebTreeScopeType.h" |
| 42 | 42 |
| 43 namespace v8 { | 43 namespace v8 { |
| 44 class Context; | |
| 45 class Function; | 44 class Function; |
| 46 class Value; | 45 class Value; |
| 47 template <class T> | 46 template <class T> |
| 48 class Local; | 47 class Local; |
| 49 } | 48 } |
| 50 | 49 |
| 51 namespace blink { | 50 namespace blink { |
| 52 | 51 |
| 53 class Frame; | 52 class Frame; |
| 54 class OpenedFrameTracker; | 53 class OpenedFrameTracker; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 WebVector<v8::Local<v8::Value>>* results) = 0; | 269 WebVector<v8::Local<v8::Value>>* results) = 0; |
| 271 | 270 |
| 272 // Call the function with the given receiver and arguments, bypassing | 271 // Call the function with the given receiver and arguments, bypassing |
| 273 // canExecute(). | 272 // canExecute(). |
| 274 virtual v8::Local<v8::Value> CallFunctionEvenIfScriptDisabled( | 273 virtual v8::Local<v8::Value> CallFunctionEvenIfScriptDisabled( |
| 275 v8::Local<v8::Function>, | 274 v8::Local<v8::Function>, |
| 276 v8::Local<v8::Value>, | 275 v8::Local<v8::Value>, |
| 277 int argc, | 276 int argc, |
| 278 v8::Local<v8::Value> argv[]) = 0; | 277 v8::Local<v8::Value> argv[]) = 0; |
| 279 | 278 |
| 280 // Returns the V8 context for associated with the main world and this | |
| 281 // frame. There can be many V8 contexts associated with this frame, one for | |
| 282 // each isolated world and one for the main world. If you don't know what | |
| 283 // the "main world" or an "isolated world" is, then you probably shouldn't | |
| 284 // be calling this API. | |
| 285 virtual v8::Local<v8::Context> MainWorldScriptContext() const = 0; | |
| 286 | |
| 287 // Returns true if the WebFrame currently executing JavaScript has access | 279 // Returns true if the WebFrame currently executing JavaScript has access |
| 288 // to the given WebFrame, or false otherwise. | 280 // to the given WebFrame, or false otherwise. |
| 289 BLINK_EXPORT static bool ScriptCanAccess(WebFrame*); | 281 BLINK_EXPORT static bool ScriptCanAccess(WebFrame*); |
| 290 | 282 |
| 291 // Navigation ---------------------------------------------------------- | 283 // Navigation ---------------------------------------------------------- |
| 292 // TODO(clamy): Remove the reload, reloadWithOverrideURL, and loadRequest | 284 // TODO(clamy): Remove the reload, reloadWithOverrideURL, and loadRequest |
| 293 // functions once RenderFrame only calls WebLoadFrame::load. | 285 // functions once RenderFrame only calls WebLoadFrame::load. |
| 294 | 286 |
| 295 // Reload the current document. | 287 // Reload the current document. |
| 296 // Note: reload() and reloadWithOverrideURL() will be deprecated. | 288 // Note: reload() and reloadWithOverrideURL() will be deprecated. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 WebFrame* first_child_; | 447 WebFrame* first_child_; |
| 456 WebFrame* last_child_; | 448 WebFrame* last_child_; |
| 457 | 449 |
| 458 WebFrame* opener_; | 450 WebFrame* opener_; |
| 459 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; | 451 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; |
| 460 }; | 452 }; |
| 461 | 453 |
| 462 } // namespace blink | 454 } // namespace blink |
| 463 | 455 |
| 464 #endif | 456 #endif |
| OLD | NEW |