OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |