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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.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, 7 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 WebInputEventResult HandleGestureEvent(const WebGestureEvent&) override; 182 WebInputEventResult HandleGestureEvent(const WebGestureEvent&) override;
183 WebInputEventResult HandleKeyEvent(const WebKeyboardEvent&) override; 183 WebInputEventResult HandleKeyEvent(const WebKeyboardEvent&) override;
184 WebInputEventResult HandleCharEvent(const WebKeyboardEvent&) override; 184 WebInputEventResult HandleCharEvent(const WebKeyboardEvent&) override;
185 185
186 // This method returns the focused frame belonging to this WebWidget, that 186 // This method returns the focused frame belonging to this WebWidget, that
187 // is, a focused frame with the same local root as the one corresponding 187 // is, a focused frame with the same local root as the one corresponding
188 // to this widget. It will return nullptr if no frame is focused or, the 188 // to this widget. It will return nullptr if no frame is focused or, the
189 // focused frame has a different local root. 189 // focused frame has a different local root.
190 LocalFrame* FocusedLocalFrameInWidget() const; 190 LocalFrame* FocusedLocalFrameInWidget() const;
191 191
192 WebPlugin* FocusedPluginIfInputMethodSupported(LocalFrame*) const;
193
194 LocalFrame* FocusedLocalFrameAvailableForIme() const; 192 LocalFrame* FocusedLocalFrameAvailableForIme() const;
195 193
196 CompositorMutatorImpl& Mutator(); 194 CompositorMutatorImpl& Mutator();
197 195
198 WebWidgetClient* client_; 196 WebWidgetClient* client_;
199 197
200 // WebFrameWidget is associated with a subtree of the frame tree, 198 // WebFrameWidget is associated with a subtree of the frame tree,
201 // corresponding to a maximal connected tree of LocalFrames. This member 199 // corresponding to a maximal connected tree of LocalFrames. This member
202 // points to the root of that subtree. 200 // points to the root of that subtree.
203 Member<WebLocalFrameImpl> local_root_; 201 Member<WebLocalFrameImpl> local_root_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 239
242 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, 240 DEFINE_TYPE_CASTS(WebFrameWidgetImpl,
243 WebFrameWidgetBase, 241 WebFrameWidgetBase,
244 widget, 242 widget,
245 widget->ForSubframe(), 243 widget->ForSubframe(),
246 widget.ForSubframe()); 244 widget.ForSubframe());
247 245
248 } // namespace blink 246 } // namespace blink
249 247
250 #endif 248 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/plugins/PluginView.h ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698