| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebRemoteFrameImpl_h | 5 #ifndef WebRemoteFrameImpl_h |
| 6 #define WebRemoteFrameImpl_h | 6 #define WebRemoteFrameImpl_h |
| 7 | 7 |
| 8 #include "core/frame/RemoteFrame.h" | 8 #include "core/frame/RemoteFrame.h" |
| 9 #include "platform/heap/SelfKeepAlive.h" | 9 #include "platform/heap/SelfKeepAlive.h" |
| 10 #include "public/platform/WebInsecureRequestPolicy.h" | 10 #include "public/platform/WebInsecureRequestPolicy.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 bool replace) override; | 75 bool replace) override; |
| 76 void stopLoading() override; | 76 void stopLoading() override; |
| 77 WebDataSource* provisionalDataSource() const override; | 77 WebDataSource* provisionalDataSource() const override; |
| 78 WebDataSource* dataSource() const override; | 78 WebDataSource* dataSource() const override; |
| 79 void enableViewSourceMode(bool enable) override; | 79 void enableViewSourceMode(bool enable) override; |
| 80 bool isViewSourceModeEnabled() const override; | 80 bool isViewSourceModeEnabled() const override; |
| 81 void setReferrerForRequest(WebURLRequest&, const WebURL& referrer) override; | 81 void setReferrerForRequest(WebURLRequest&, const WebURL& referrer) override; |
| 82 void dispatchWillSendRequest(WebURLRequest&) override; | 82 void dispatchWillSendRequest(WebURLRequest&) override; |
| 83 WebURLLoader* createAssociatedURLLoader(const WebURLLoaderOptions&) override
; | 83 WebURLLoader* createAssociatedURLLoader(const WebURLLoaderOptions&) override
; |
| 84 unsigned unloadListenerCount() const override; | 84 unsigned unloadListenerCount() const override; |
| 85 void insertText(const WebString&) override; | |
| 86 void setMarkedText(const WebString&, unsigned location, unsigned length) ove
rride; | |
| 87 void unmarkText() override; | |
| 88 bool hasMarkedText() const override; | |
| 89 WebRange markedRange() const override; | |
| 90 bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&
) const override; | |
| 91 size_t characterIndexForPoint(const WebPoint&) const override; | |
| 92 bool executeCommand(const WebString&) override; | |
| 93 bool executeCommand(const WebString&, const WebString& value) override; | |
| 94 bool isCommandEnabled(const WebString&) const override; | |
| 95 void enableContinuousSpellChecking(bool) override; | |
| 96 bool isContinuousSpellCheckingEnabled() const override; | |
| 97 void requestTextChecking(const WebElement&) override; | |
| 98 void removeSpellingMarkers() override; | |
| 99 bool hasSelection() const override; | |
| 100 WebRange selectionRange() const override; | |
| 101 WebString selectionAsText() const override; | |
| 102 WebString selectionAsMarkup() const override; | |
| 103 bool selectWordAroundCaret() override; | |
| 104 void selectRange(const WebPoint& base, const WebPoint& extent) override; | |
| 105 void selectRange(const WebRange&) override; | |
| 106 void moveRangeSelection(const WebPoint& base, const WebPoint& extent, WebFra
me::TextGranularity = CharacterGranularity) override; | |
| 107 void moveCaretSelection(const WebPoint&) override; | |
| 108 bool setEditableSelectionOffsets(int start, int end) override; | |
| 109 bool setCompositionFromExistingText(int compositionStart, int compositionEnd
, const WebVector<WebCompositionUnderline>& underlines) override; | |
| 110 void extendSelectionAndDelete(int before, int after) override; | |
| 111 void setCaretVisible(bool) override; | |
| 112 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri
de; | 85 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri
de; |
| 113 float printPage(int pageToPrint, WebCanvas*) override; | 86 float printPage(int pageToPrint, WebCanvas*) override; |
| 114 float getPrintPageShrink(int page) override; | 87 float getPrintPageShrink(int page) override; |
| 115 void printEnd() override; | 88 void printEnd() override; |
| 116 bool isPrintScalingDisabledForPlugin(const WebNode&) override; | 89 bool isPrintScalingDisabledForPlugin(const WebNode&) override; |
| 117 bool hasCustomPageSizeStyle(int pageIndex) override; | 90 bool hasCustomPageSizeStyle(int pageIndex) override; |
| 118 bool isPageBoxVisible(int pageIndex) override; | 91 bool isPageBoxVisible(int pageIndex) override; |
| 119 void pageSizeAndMarginsInPixels( | 92 void pageSizeAndMarginsInPixels( |
| 120 int pageIndex, | 93 int pageIndex, |
| 121 WebSize& pageSize, | 94 WebSize& pageSize, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // Accomplish that by keeping a self-referential Persistent<>. It is | 161 // Accomplish that by keeping a self-referential Persistent<>. It is |
| 189 // cleared upon close(). | 162 // cleared upon close(). |
| 190 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; | 163 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; |
| 191 }; | 164 }; |
| 192 | 165 |
| 193 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 166 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
| 194 | 167 |
| 195 } // namespace blink | 168 } // namespace blink |
| 196 | 169 |
| 197 #endif // WebRemoteFrameImpl_h | 170 #endif // WebRemoteFrameImpl_h |
| OLD | NEW |