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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 BLINK_EXPORT bool IsInsideFocusableElementOrARIAWidget() const; | 105 BLINK_EXPORT bool IsInsideFocusableElementOrARIAWidget() const; |
106 BLINK_EXPORT WebAXObject AccessibilityObject(); | 106 BLINK_EXPORT WebAXObject AccessibilityObject(); |
107 | 107 |
108 template <typename T> | 108 template <typename T> |
109 T To(); | 109 T To(); |
110 template <typename T> | 110 template <typename T> |
111 const T ToConst() const; | 111 const T ToConst() const; |
112 | 112 |
113 #if BLINK_IMPLEMENTATION | 113 #if BLINK_IMPLEMENTATION |
114 BLINK_EXPORT static WebPluginContainer* PluginContainerFromNode(const Node*); | |
115 | |
116 BLINK_EXPORT WebNode(Node*); | 114 BLINK_EXPORT WebNode(Node*); |
117 BLINK_EXPORT WebNode& operator=(Node*); | 115 BLINK_EXPORT WebNode& operator=(Node*); |
118 BLINK_EXPORT operator Node*() const; | 116 BLINK_EXPORT operator Node*() const; |
119 | 117 |
120 template <typename T> | 118 template <typename T> |
121 T* Unwrap() { | 119 T* Unwrap() { |
122 return static_cast<T*>(private_.Get()); | 120 return static_cast<T*>(private_.Get()); |
123 } | 121 } |
124 | 122 |
125 template <typename T> | 123 template <typename T> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 return !(a == b); | 162 return !(a == b); |
165 } | 163 } |
166 | 164 |
167 inline bool operator<(const WebNode& a, const WebNode& b) { | 165 inline bool operator<(const WebNode& a, const WebNode& b) { |
168 return a.LessThan(b); | 166 return a.LessThan(b); |
169 } | 167 } |
170 | 168 |
171 } // namespace blink | 169 } // namespace blink |
172 | 170 |
173 #endif | 171 #endif |
OLD | NEW |