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

Side by Side Diff: webkit/pending/Node.h

Issue 4097: Implement better JS exception handling by abstracting KJS::ExecState into an ... (Closed) Base URL: svn://chrome-svn/chrome/branches/chrome_webkit_merge_branch/
Patch Set: '' Created 12 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 | Annotate | Revision Log
« no previous file with comments | « webkit/pending/NSResolver.h ('k') | webkit/pending/Node.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 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class NodeList; 49 class NodeList;
50 class PlatformKeyboardEvent; 50 class PlatformKeyboardEvent;
51 class PlatformMouseEvent; 51 class PlatformMouseEvent;
52 class PlatformWheelEvent; 52 class PlatformWheelEvent;
53 class QualifiedName; 53 class QualifiedName;
54 class RegisteredEventListener; 54 class RegisteredEventListener;
55 class RenderArena; 55 class RenderArena;
56 class RenderObject; 56 class RenderObject;
57 class RenderStyle; 57 class RenderStyle;
58 class StringBuilder; 58 class StringBuilder;
59 class ExceptionContext;
59 60
60 struct NodeListsNodeData; 61 struct NodeListsNodeData;
61 62
62 typedef int ExceptionCode; 63 typedef int ExceptionCode;
63 64
64 enum StyleChangeType { NoStyleChange, InlineStyleChange, FullStyleChange, Animat ionStyleChange }; 65 enum StyleChangeType { NoStyleChange, InlineStyleChange, FullStyleChange, Animat ionStyleChange };
65 66
66 const unsigned short DOCUMENT_POSITION_EQUIVALENT = 0x00; 67 const unsigned short DOCUMENT_POSITION_EQUIVALENT = 0x00;
67 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; 68 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
68 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; 69 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 void notifyNodeListsChildrenChanged(); 474 void notifyNodeListsChildrenChanged();
474 void notifyLocalNodeListsChildrenChanged(); 475 void notifyLocalNodeListsChildrenChanged();
475 void notifyNodeListsAttributeChanged(); 476 void notifyNodeListsAttributeChanged();
476 void notifyLocalNodeListsAttributeChanged(); 477 void notifyLocalNodeListsAttributeChanged();
477 478
478 PassRefPtr<NodeList> getElementsByTagName(const String&); 479 PassRefPtr<NodeList> getElementsByTagName(const String&);
479 PassRefPtr<NodeList> getElementsByTagNameNS(const String& namespaceURI, cons t String& localName); 480 PassRefPtr<NodeList> getElementsByTagNameNS(const String& namespaceURI, cons t String& localName);
480 PassRefPtr<NodeList> getElementsByName(const String& elementName); 481 PassRefPtr<NodeList> getElementsByName(const String& elementName);
481 PassRefPtr<NodeList> getElementsByClassName(const String& classNames); 482 PassRefPtr<NodeList> getElementsByClassName(const String& classNames);
482 483
483 #if USE(JSC) 484 PassRefPtr<Element> querySelector(const String& selectors, NSResolver*, Exce ptionCode&, ExceptionContext*);
484 PassRefPtr<Element> querySelector(const String& selectors, NSResolver*, Exce ptionCode&, KJS::ExecState*); 485 PassRefPtr<NodeList> querySelectorAll(const String& selectors, NSResolver*, ExceptionCode&, ExceptionContext*);
485 PassRefPtr<NodeList> querySelectorAll(const String& selectors, NSResolver*, ExceptionCode&, KJS::ExecState*);
486
487 // For non-JS bindings. Silently ignores the JavaScript exception if any. 486 // For non-JS bindings. Silently ignores the JavaScript exception if any.
488 // FIXME: We should support the NSResolver interface for non-JS bindings. 487 // FIXME: We should support the NSResolver interface for non-JS bindings.
489 PassRefPtr<Element> querySelector(const String& selectors, ExceptionCode&); 488 PassRefPtr<Element> querySelector(const String& selectors, ExceptionCode&);
490 PassRefPtr<NodeList> querySelectorAll(const String& selectors, ExceptionCode &); 489 PassRefPtr<NodeList> querySelectorAll(const String& selectors, ExceptionCode &);
491 #endif
492 490
493 unsigned short compareDocumentPosition(Node*); 491 unsigned short compareDocumentPosition(Node*);
494 492
495 protected: 493 protected:
496 virtual void willMoveToNewOwnerDocument() { } 494 virtual void willMoveToNewOwnerDocument() { }
497 virtual void didMoveToNewOwnerDocument() { } 495 virtual void didMoveToNewOwnerDocument() { }
498 496
499 virtual void getSubresourceAttributeStrings(Vector<String>&) const { } 497 virtual void getSubresourceAttributeStrings(Vector<String>&) const { }
500 void setTabIndexExplicitly(short i) 498 void setTabIndexExplicitly(short i)
501 { 499 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 }; 540 };
543 541
544 } //namespace 542 } //namespace
545 543
546 #ifndef NDEBUG 544 #ifndef NDEBUG
547 // Outside the WebCore namespace for ease of invocation from gdb. 545 // Outside the WebCore namespace for ease of invocation from gdb.
548 void showTree(const WebCore::Node*); 546 void showTree(const WebCore::Node*);
549 #endif 547 #endif
550 548
551 #endif 549 #endif
OLDNEW
« no previous file with comments | « webkit/pending/NSResolver.h ('k') | webkit/pending/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698