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

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

Issue 2888203006: Move the logic to retrieve the WebPluginContainer to LocalFrame and Node. (Closed)
Patch Set: Ensure we have a valid PluginView before using it. Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698