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

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

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 BLINK_EXPORT WebPluginContainer* pluginContainer() const; 109 BLINK_EXPORT WebPluginContainer* pluginContainer() const;
110 110
111 BLINK_EXPORT bool isInsideFocusableElementOrARIAWidget() const; 111 BLINK_EXPORT bool isInsideFocusableElementOrARIAWidget() const;
112 BLINK_EXPORT WebAXObject accessibilityObject(); 112 BLINK_EXPORT WebAXObject accessibilityObject();
113 113
114 template<typename T> T to(); 114 template<typename T> T to();
115 template<typename T> const T toConst() const; 115 template<typename T> const T toConst() const;
116 116
117 #if BLINK_IMPLEMENTATION 117 #if BLINK_IMPLEMENTATION
118 BLINK_EXPORT WebNode(const RawPtr<Node>&); 118 BLINK_EXPORT WebNode(Node*);
119 BLINK_EXPORT WebNode& operator=(const RawPtr<Node>&); 119 BLINK_EXPORT WebNode& operator=(Node*);
120 BLINK_EXPORT operator RawPtr<Node>() const; 120 BLINK_EXPORT operator Node*() const;
121 121
122 template<typename T> T* unwrap() 122 template<typename T> T* unwrap()
123 { 123 {
124 return static_cast<T*>(m_private.get()); 124 return static_cast<T*>(m_private.get());
125 } 125 }
126 126
127 template<typename T> const T* constUnwrap() const 127 template<typename T> const T* constUnwrap() const
128 { 128 {
129 return static_cast<const T*>(m_private.get()); 129 return static_cast<const T*>(m_private.get());
130 } 130 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 170
171 inline bool operator<(const WebNode& a, const WebNode& b) 171 inline bool operator<(const WebNode& a, const WebNode& b)
172 { 172 {
173 return a.lessThan(b); 173 return a.lessThan(b);
174 } 174 }
175 175
176 } // namespace blink 176 } // namespace blink
177 177
178 #endif 178 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebMetaElement.h ('k') | third_party/WebKit/public/web/WebOptionElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698