Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/web/WebBindings.h ('k') | third_party/WebKit/public/web/WebPlugin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // Runs beforeunload handlers for this frame, returning false if a 254 // Runs beforeunload handlers for this frame, returning false if a
255 // handler suppressed unloading. 255 // handler suppressed unloading.
256 virtual bool dispatchBeforeUnloadEvent() = 0; 256 virtual bool dispatchBeforeUnloadEvent() = 0;
257 257
258 // Runs unload handlers for this frame. 258 // Runs unload handlers for this frame.
259 virtual void dispatchUnloadEvent() = 0; 259 virtual void dispatchUnloadEvent() = 0;
260 260
261 261
262 // Scripting ---------------------------------------------------------- 262 // Scripting ----------------------------------------------------------
263 263
264 // Returns a NPObject corresponding to this frame's DOMWindow.
265 virtual NPObject* windowObject() const = 0;
266
267 // Binds a NPObject as a property of this frame's DOMWindow.
268 virtual void bindToWindowObject(const WebString& name, NPObject*) = 0;
269 virtual void bindToWindowObject(
270 const WebString& name, NPObject*, void*) = 0;
271
272 // Executes script in the context of the current page. 264 // Executes script in the context of the current page.
273 virtual void executeScript(const WebScriptSource&) = 0; 265 virtual void executeScript(const WebScriptSource&) = 0;
274 266
275 // Executes JavaScript in a new world associated with the web frame. 267 // Executes JavaScript in a new world associated with the web frame.
276 // The script gets its own global scope and its own prototypes for 268 // The script gets its own global scope and its own prototypes for
277 // intrinsic JavaScript objects (String, Array, and so-on). It also 269 // intrinsic JavaScript objects (String, Array, and so-on). It also
278 // gets its own wrappers for all DOM nodes and DOM constructors. 270 // gets its own wrappers for all DOM nodes and DOM constructors.
279 // extensionGroup is an embedder-provided specifier that controls which 271 // extensionGroup is an embedder-provided specifier that controls which
280 // v8 extensions are loaded into the new context - see 272 // v8 extensions are loaded into the new context - see
281 // blink::registerExtension for the corresponding specifier. 273 // blink::registerExtension for the corresponding specifier.
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 WebFrame* m_firstChild; 604 WebFrame* m_firstChild;
613 WebFrame* m_lastChild; 605 WebFrame* m_lastChild;
614 606
615 WebFrame* m_opener; 607 WebFrame* m_opener;
616 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 608 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
617 }; 609 };
618 610
619 } // namespace blink 611 } // namespace blink
620 612
621 #endif 613 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebBindings.h ('k') | third_party/WebKit/public/web/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698