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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 1977633003: Remove RenderFrameImpl::GetFocusedElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes the right click + blur + copy case. Created 4 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) 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void dispatchWillSendRequest(WebURLRequest&) override; 139 void dispatchWillSendRequest(WebURLRequest&) override;
140 WebURLLoader* createAssociatedURLLoader(const WebURLLoaderOptions&) override ; 140 WebURLLoader* createAssociatedURLLoader(const WebURLLoaderOptions&) override ;
141 unsigned unloadListenerCount() const override; 141 unsigned unloadListenerCount() const override;
142 void insertText(const WebString&) override; 142 void insertText(const WebString&) override;
143 void setMarkedText(const WebString&, unsigned location, unsigned length) ove rride; 143 void setMarkedText(const WebString&, unsigned location, unsigned length) ove rride;
144 void unmarkText() override; 144 void unmarkText() override;
145 bool hasMarkedText() const override; 145 bool hasMarkedText() const override;
146 WebRange markedRange() const override; 146 WebRange markedRange() const override;
147 bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect& ) const override; 147 bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect& ) const override;
148 size_t characterIndexForPoint(const WebPoint&) const override; 148 size_t characterIndexForPoint(const WebPoint&) const override;
149 bool executeCommand(const WebString&, const WebNode& = WebNode()) override; 149 bool executeCommand(const WebString&) override;
150 bool executeCommand(const WebString&, const WebString& value, const WebNode& = WebNode()) override; 150 bool executeCommand(const WebString&, const WebString& value) override;
151 bool isCommandEnabled(const WebString&) const override; 151 bool isCommandEnabled(const WebString&) const override;
152 void enableContinuousSpellChecking(bool) override; 152 void enableContinuousSpellChecking(bool) override;
153 bool isContinuousSpellCheckingEnabled() const override; 153 bool isContinuousSpellCheckingEnabled() const override;
154 void requestTextChecking(const WebElement&) override; 154 void requestTextChecking(const WebElement&) override;
155 void replaceMisspelledRange(const WebString&) override; 155 void replaceMisspelledRange(const WebString&) override;
156 void removeSpellingMarkers() override; 156 void removeSpellingMarkers() override;
157 bool hasSelection() const override; 157 bool hasSelection() const override;
158 WebRange selectionRange() const override; 158 WebRange selectionRange() const override;
159 WebString selectionAsText() const override; 159 WebString selectionAsText() const override;
160 WebString selectionAsMarkup() const override; 160 WebString selectionAsMarkup() const override;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 static WebLocalFrameImpl* fromFrame(LocalFrame*); 263 static WebLocalFrameImpl* fromFrame(LocalFrame*);
264 static WebLocalFrameImpl* fromFrame(LocalFrame&); 264 static WebLocalFrameImpl* fromFrame(LocalFrame&);
265 static WebLocalFrameImpl* fromFrameOwnerElement(Element*); 265 static WebLocalFrameImpl* fromFrameOwnerElement(Element*);
266 266
267 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl 267 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl
268 // that hosts the plugin. 268 // that hosts the plugin.
269 static WebPluginContainerImpl* pluginContainerFromFrame(LocalFrame*); 269 static WebPluginContainerImpl* pluginContainerFromFrame(LocalFrame*);
270 270
271 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl 271 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl
272 // that hosts the plugin. If the provided node is a plugin, then it runs its 272 // that hosts the plugin. If the provided node is a plugin, then it runs its
273 // WebPluginContainerImpl. 273 // WebPluginContainerImpl. Otherwise, uses the currently focused element (if any).
274 static WebPluginContainerImpl* pluginContainerFromNode(LocalFrame*, const We bNode&); 274 static WebPluginContainerImpl* currentPluginContainer(LocalFrame*, Node* = n ullptr);
275 275
276 WebViewImpl* viewImpl() const; 276 WebViewImpl* viewImpl() const;
277 277
278 FrameView* frameView() const { return frame() ? frame()->view() : 0; } 278 FrameView* frameView() const { return frame() ? frame()->view() : 0; }
279 279
280 WebDevToolsAgentImpl* devToolsAgentImpl() const { return m_devToolsAgent.get (); } 280 WebDevToolsAgentImpl* devToolsAgentImpl() const { return m_devToolsAgent.get (); }
281 281
282 // Getters for the impls corresponding to Get(Provisional)DataSource. They 282 // Getters for the impls corresponding to Get(Provisional)DataSource. They
283 // may return 0 if there is no corresponding data source. 283 // may return 0 if there is no corresponding data source.
284 WebDataSourceImpl* dataSourceImpl() const; 284 WebDataSourceImpl* dataSourceImpl() const;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // Accomplish that by keeping a self-referential Persistent<>. It is 389 // Accomplish that by keeping a self-referential Persistent<>. It is
390 // cleared upon close(). 390 // cleared upon close().
391 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 391 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
392 }; 392 };
393 393
394 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 394 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
395 395
396 } // namespace blink 396 } // namespace blink
397 397
398 #endif 398 #endif
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698