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

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

Issue 2388103002: reflow comments in public/web (Closed)
Patch Set: Created 4 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
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 28 matching lines...) Expand all
39 namespace blink { 39 namespace blink {
40 40
41 class Node; 41 class Node;
42 class WebAXObject; 42 class WebAXObject;
43 class WebDocument; 43 class WebDocument;
44 class WebElement; 44 class WebElement;
45 class WebElementCollection; 45 class WebElementCollection;
46 class WebPluginContainer; 46 class WebPluginContainer;
47 47
48 // Provides access to some properties of a DOM node. 48 // Provides access to some properties of a DOM node.
49 // Note that the class design requires that neither this class nor any of its su bclasses have any virtual 49 // Note that the class design requires that neither this class nor any of its
50 // methods (other than the destructor), so that it is possible to safely static_ cast an instance of one 50 // subclasses have any virtual methods (other than the destructor), so that it
51 // class to the appropriate subclass based on the actual type of the wrapped bli nk::Node. For the same 51 // is possible to safely static_cast an instance of one class to the appropriate
52 // subclass based on the actual type of the wrapped blink::Node. For the same
52 // reason, subclasses must not add any additional data members. 53 // reason, subclasses must not add any additional data members.
53 class WebNode { 54 class WebNode {
54 public: 55 public:
55 virtual ~WebNode() { reset(); } 56 virtual ~WebNode() { reset(); }
56 57
57 WebNode() {} 58 WebNode() {}
58 WebNode(const WebNode& n) { assign(n); } 59 WebNode(const WebNode& n) { assign(n); }
59 WebNode& operator=(const WebNode& n) { 60 WebNode& operator=(const WebNode& n) {
60 assign(n); 61 assign(n);
61 return *this; 62 return *this;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 return !(a == b); 164 return !(a == b);
164 } 165 }
165 166
166 inline bool operator<(const WebNode& a, const WebNode& b) { 167 inline bool operator<(const WebNode& a, const WebNode& b) {
167 return a.lessThan(b); 168 return a.lessThan(b);
168 } 169 }
169 170
170 } // namespace blink 171 } // namespace blink
171 172
172 #endif 173 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | third_party/WebKit/public/web/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698