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

Side by Side Diff: Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix incorrect assumption Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 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 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 #include "bindings/core/v8/V8HTMLDocument.h" 32 #include "bindings/core/v8/V8HTMLDocument.h"
33 33
34 #include "bindings/core/v8/ScriptController.h" 34 #include "bindings/core/v8/ScriptController.h"
35 #include "bindings/core/v8/V8Binding.h" 35 #include "bindings/core/v8/V8Binding.h"
36 #include "bindings/core/v8/V8HTMLAllCollection.h" 36 #include "bindings/core/v8/V8HTMLAllCollection.h"
37 #include "bindings/core/v8/V8HTMLCollection.h" 37 #include "bindings/core/v8/V8HTMLCollection.h"
38 #include "bindings/core/v8/V8Node.h" 38 #include "bindings/core/v8/V8Node.h"
39 #include "bindings/core/v8/V8Window.h" 39 #include "bindings/core/v8/V8Window.h"
40 #include "core/HTMLNames.h" 40 #include "core/HTMLNames.h"
41 #include "core/frame/LocalDOMWindow.h"
41 #include "core/frame/LocalFrame.h" 42 #include "core/frame/LocalFrame.h"
42 #include "core/html/HTMLAllCollection.h" 43 #include "core/html/HTMLAllCollection.h"
43 #include "core/html/HTMLCollection.h" 44 #include "core/html/HTMLCollection.h"
44 #include "core/html/HTMLDocument.h" 45 #include "core/html/HTMLDocument.h"
45 #include "core/html/HTMLIFrameElement.h" 46 #include "core/html/HTMLIFrameElement.h"
46 #include "wtf/OwnPtr.h" 47 #include "wtf/OwnPtr.h"
47 #include "wtf/RefPtr.h" 48 #include "wtf/RefPtr.h"
48 #include "wtf/StdLibExtras.h" 49 #include "wtf/StdLibExtras.h"
49 50
50 namespace blink { 51 namespace blink {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 86
86 ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "Doc ument", info.Holder(), info.GetIsolate()); 87 ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "Doc ument", info.Holder(), info.GetIsolate());
87 htmlDocument->open(callingDOMWindow(info.GetIsolate())->document(), exceptio nState); 88 htmlDocument->open(callingDOMWindow(info.GetIsolate())->document(), exceptio nState);
88 if (exceptionState.throwIfNeeded()) 89 if (exceptionState.throwIfNeeded())
89 return; 90 return;
90 91
91 v8SetReturnValue(info, info.Holder()); 92 v8SetReturnValue(info, info.Holder());
92 } 93 }
93 94
94 } // namespace blink 95 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698