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

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

Issue 660137: Allow users to close the find session and activate the current link via ctrl-... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 WEBKIT_API WebNode lastChild() const; 99 WEBKIT_API WebNode lastChild() const;
100 WEBKIT_API WebNode previousSibling() const; 100 WEBKIT_API WebNode previousSibling() const;
101 WEBKIT_API WebNode nextSibling() const; 101 WEBKIT_API WebNode nextSibling() const;
102 WEBKIT_API bool hasChildNodes() const; 102 WEBKIT_API bool hasChildNodes() const;
103 WEBKIT_API WebNodeList childNodes(); 103 WEBKIT_API WebNodeList childNodes();
104 WEBKIT_API WebString createMarkup() const; 104 WEBKIT_API WebString createMarkup() const;
105 WEBKIT_API bool isTextNode() const; 105 WEBKIT_API bool isTextNode() const;
106 WEBKIT_API bool isElementNode() const; 106 WEBKIT_API bool isElementNode() const;
107 WEBKIT_API void addEventListener(const WebString& eventType, WebEventListene r* listener, bool useCapture); 107 WEBKIT_API void addEventListener(const WebString& eventType, WebEventListene r* listener, bool useCapture);
108 WEBKIT_API void removeEventListener(const WebString& eventType, WebEventList ener* listener, bool useCapture); 108 WEBKIT_API void removeEventListener(const WebString& eventType, WebEventList ener* listener, bool useCapture);
109 WEBKIT_API void simulateClick();
109 110
110 template<typename T> T toElement() 111 template<typename T> T toElement()
111 { 112 {
112 T res; 113 T res;
113 res.WebNode::assign(*this); 114 res.WebNode::assign(*this);
114 return res; 115 return res;
115 } 116 }
116 117
117 template<typename T> const T toConstElement() const 118 template<typename T> const T toConstElement() const
118 { 119 {
(...skipping 24 matching lines...) Expand all
143 } 144 }
144 145
145 inline bool operator!=(const WebNode& a, const WebNode& b) 146 inline bool operator!=(const WebNode& a, const WebNode& b)
146 { 147 {
147 return !(a == b); 148 return !(a == b);
148 } 149 }
149 150
150 } // namespace WebKit 151 } // namespace WebKit
151 152
152 #endif 153 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/WebKit/chromium/public/WebDocument.h ('k') | third_party/WebKit/WebKit/chromium/src/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698