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

Side by Side Diff: sky/engine/bindings/core/v8/custom/V8WindowCustom.cpp

Issue 871383002: Merge HTMLDocument into Document (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2011 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "sky/engine/bindings/core/v8/V8HiddenValue.h" 46 #include "sky/engine/bindings/core/v8/V8HiddenValue.h"
47 #include "sky/engine/core/dom/Element.h" 47 #include "sky/engine/core/dom/Element.h"
48 #include "sky/engine/core/dom/ExceptionCode.h" 48 #include "sky/engine/core/dom/ExceptionCode.h"
49 #include "sky/engine/core/dom/Node.h" 49 #include "sky/engine/core/dom/Node.h"
50 #include "sky/engine/core/frame/DOMTimer.h" 50 #include "sky/engine/core/frame/DOMTimer.h"
51 #include "sky/engine/core/frame/DOMWindowTimers.h" 51 #include "sky/engine/core/frame/DOMWindowTimers.h"
52 #include "sky/engine/core/frame/FrameView.h" 52 #include "sky/engine/core/frame/FrameView.h"
53 #include "sky/engine/core/frame/LocalDOMWindow.h" 53 #include "sky/engine/core/frame/LocalDOMWindow.h"
54 #include "sky/engine/core/frame/LocalFrame.h" 54 #include "sky/engine/core/frame/LocalFrame.h"
55 #include "sky/engine/core/frame/Settings.h" 55 #include "sky/engine/core/frame/Settings.h"
56 #include "sky/engine/core/html/HTMLDocument.h"
57 #include "sky/engine/platform/PlatformScreen.h" 56 #include "sky/engine/platform/PlatformScreen.h"
58 #include "sky/engine/core/inspector/ScriptCallStack.h" 57 #include "sky/engine/core/inspector/ScriptCallStack.h"
59 #include "sky/engine/wtf/ArrayBuffer.h" 58 #include "sky/engine/wtf/ArrayBuffer.h"
60 #include "sky/engine/wtf/Assertions.h" 59 #include "sky/engine/wtf/Assertions.h"
61 #include "sky/engine/wtf/OwnPtr.h" 60 #include "sky/engine/wtf/OwnPtr.h"
62 61
63 namespace blink { 62 namespace blink {
64 63
65 // FIXME: There is a lot of duplication with SetTimeoutOrInterval() in V8WorkerG lobalScopeCustom.cpp. 64 // FIXME: There is a lot of duplication with SetTimeoutOrInterval() in V8WorkerG lobalScopeCustom.cpp.
66 // We should refactor this. 65 // We should refactor this.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren t(isolate)); 260 v8::Handle<v8::Context> context = toV8Context(frame, DOMWrapperWorld::curren t(isolate));
262 if (context.IsEmpty()) 261 if (context.IsEmpty())
263 return v8Undefined(); 262 return v8Undefined();
264 263
265 v8::Handle<v8::Object> global = context->Global(); 264 v8::Handle<v8::Object> global = context->Global();
266 ASSERT(!global.IsEmpty()); 265 ASSERT(!global.IsEmpty());
267 return global; 266 return global;
268 } 267 }
269 268
270 } // namespace blink 269 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/WindowProxy.cpp ('k') | sky/engine/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698