Commit eb17f4c2 authored by Dave Tapuska's avatar Dave Tapuska Committed by Commit Bot

Prune more unused blink public APIs that are unused.

Change-Id: If8f9eb4c780d9dabc486315b9593c62ea34edd7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2013260Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734007}
parent 39770b73
......@@ -137,10 +137,6 @@ class WebLocalFrame : public WebFrame {
// correspond to a frame (e.g., workers).
BLINK_EXPORT static WebLocalFrame* FrameForContext(v8::Local<v8::Context>);
// Returns the frame inside a given frame or iframe element. Returns 0 if
// the given element is not a frame, iframe or if the frame is empty.
BLINK_EXPORT static WebLocalFrame* FromFrameOwnerElement(const WebElement&);
virtual WebLocalFrameClient* Client() const = 0;
// Initialization ---------------------------------------------------------
......@@ -484,8 +480,6 @@ class WebLocalFrame : public WebFrame {
const WebVector<WebImeTextSpan>& ime_text_spans) = 0;
virtual void ExtendSelectionAndDelete(int before, int after) = 0;
virtual void SetCaretVisible(bool) = 0;
// Moves the selection extent point. This function does not allow the
// selection to collapse. If the new extent is set to the same position as
// the current base, this function will do nothing.
......
......@@ -93,7 +93,6 @@ class AssociatedInterfaceProvider;
class BrowserInterfaceBrokerProxy;
class WebComputedAXTree;
class WebContentDecryptionModule;
class WebCookieJar;
class WebDedicatedWorkerHostFactoryClient;
class WebDocumentLoader;
class WebEncryptedMediaClient;
......@@ -192,9 +191,6 @@ class BLINK_EXPORT WebLocalFrameClient {
// Services ------------------------------------------------------------
// A frame specific cookie jar. May return null.
virtual WebCookieJar* CookieJar() { return nullptr; }
// Returns a blame context for attributing work belonging to this frame.
virtual BlameContext* GetFrameBlameContext() { return nullptr; }
......
......@@ -604,10 +604,6 @@ WebLocalFrame* WebLocalFrame::FrameForContext(v8::Local<v8::Context> context) {
return WebLocalFrameImpl::FromFrame(ToLocalFrameIfNotDetached(context));
}
WebLocalFrame* WebLocalFrame::FromFrameOwnerElement(const WebElement& element) {
return WebLocalFrameImpl::FromFrameOwnerElement(element);
}
bool WebLocalFrameImpl::IsWebLocalFrame() const {
return true;
}
......@@ -1486,10 +1482,6 @@ void WebLocalFrameImpl::DeleteSurroundingTextInCodePoints(int before,
before, after);
}
void WebLocalFrameImpl::SetCaretVisible(bool visible) {
GetFrame()->Selection().SetCaretVisible(visible);
}
WebPlugin* WebLocalFrameImpl::FocusedPluginIfInputMethodSupported() {
WebPluginContainerImpl* container = GetFrame()->GetWebPluginContainer();
if (container && container->SupportsInputMethod())
......@@ -1972,13 +1964,6 @@ WebLocalFrameImpl* WebLocalFrameImpl::FromFrame(LocalFrame& frame) {
return To<WebLocalFrameImpl>(client->GetWebFrame());
}
WebLocalFrameImpl* WebLocalFrameImpl::FromFrameOwnerElement(Element* element) {
auto* frame_owner_element = DynamicTo<HTMLFrameOwnerElement>(element);
if (!frame_owner_element)
return nullptr;
return FromFrame(To<LocalFrame>(frame_owner_element->ContentFrame()));
}
WebViewImpl* WebLocalFrameImpl::ViewImpl() const {
if (!GetFrame())
return nullptr;
......
......@@ -226,7 +226,6 @@ class CORE_EXPORT WebLocalFrameImpl final
int composition_end,
const WebVector<WebImeTextSpan>& ime_text_spans) override;
void ExtendSelectionAndDelete(int before, int after) override;
void SetCaretVisible(bool) override;
void MoveRangeSelectionExtent(const gfx::Point&) override;
void ReplaceSelection(const WebString&) override;
void DeleteSurroundingText(int before, int after) override;
......@@ -388,7 +387,6 @@ class CORE_EXPORT WebLocalFrameImpl final
static WebLocalFrameImpl* FromFrame(LocalFrame*);
static WebLocalFrameImpl* FromFrame(LocalFrame&);
static WebLocalFrameImpl* FromFrameOwnerElement(Element*);
WebViewImpl* ViewImpl() const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment