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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 664573004: Live the dream (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: DEPS Created 6 years, 2 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 | « sky/engine/core/dom/DecodedDataDocumentParser.cpp ('k') | sky/engine/core/dom/Document.cpp » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 virtual void detach(const AttachContext& = AttachContext()) override; 321 virtual void detach(const AttachContext& = AttachContext()) override;
322 void prepareForDestruction(); 322 void prepareForDestruction();
323 323
324 // If you have a Document, use renderView() instead which is faster. 324 // If you have a Document, use renderView() instead which is faster.
325 void renderer() const WTF_DELETED_FUNCTION; 325 void renderer() const WTF_DELETED_FUNCTION;
326 326
327 RenderView* renderView() const { return m_renderView; } 327 RenderView* renderView() const { return m_renderView; }
328 328
329 DocumentLoadTiming* timing() const; 329 DocumentLoadTiming* timing() const;
330 330
331 PassRefPtrWillBeRawPtr<DocumentParser> startParsing(); 331 void startParsing();
332 void cancelParsing();
332 333
333 // close() is the DOM API document.close() 334 // close() is the DOM API document.close()
334 void close(ExceptionState& = ASSERT_NO_EXCEPTION); 335 void close(ExceptionState& = ASSERT_NO_EXCEPTION);
335 // In some situations (see the code), we ignore document.close(). 336 // In some situations (see the code), we ignore document.close().
336 // explicitClose() bypass these checks and actually tries to close the 337 // explicitClose() bypass these checks and actually tries to close the
337 // input stream. 338 // input stream.
338 void explicitClose(); 339 void explicitClose();
339 // implicitClose() actually does the work of closing the input stream. 340 // implicitClose() actually does the work of closing the input stream.
340 void implicitClose(); 341 void implicitClose();
341 void checkCompleted(); 342 void checkCompleted();
342 343
343 void dispatchUnloadEvents(); 344 void dispatchUnloadEvents();
344 345
345 enum PageDismissalType { 346 enum PageDismissalType {
346 NoDismissal = 0, 347 NoDismissal = 0,
347 PageHideDismissal = 2, 348 PageHideDismissal = 2,
348 UnloadDismissal = 3 349 UnloadDismissal = 3
349 }; 350 };
350 PageDismissalType pageDismissalEventBeingDispatched() const; 351 PageDismissalType pageDismissalEventBeingDispatched() const;
351 352
352 void cancelParsing();
353
354 const KURL& url() const { return m_url; } 353 const KURL& url() const { return m_url; }
355 void setURL(const KURL&); 354 void setURL(const KURL&);
356 355
357 ScriptValue exports() const { return m_exports; } 356 ScriptValue exports() const { return m_exports; }
358 void setExports(ScriptValue exports) { m_exports = exports; } 357 void setExports(ScriptValue exports) { m_exports = exports; }
359 358
360 // To understand how these concepts relate to one another, please see the 359 // To understand how these concepts relate to one another, please see the
361 // comments surrounding their declaration. 360 // comments surrounding their declaration.
362 const KURL& baseURL() const { return m_baseURL; } 361 const KURL& baseURL() const { return m_baseURL; }
363 362
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 Node* eventTargetNodeForDocument(Document*); 929 Node* eventTargetNodeForDocument(Document*);
931 930
932 } // namespace blink 931 } // namespace blink
933 932
934 #ifndef NDEBUG 933 #ifndef NDEBUG
935 // Outside the WebCore namespace for ease of invocation from gdb. 934 // Outside the WebCore namespace for ease of invocation from gdb.
936 void showLiveDocumentInstances(); 935 void showLiveDocumentInstances();
937 #endif 936 #endif
938 937
939 #endif // Document_h 938 #endif // Document_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DecodedDataDocumentParser.cpp ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698