| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 bool replace) override; | 76 bool replace) override; |
| 77 void stopLoading() override; | 77 void stopLoading() override; |
| 78 WebDataSource* provisionalDataSource() const override; | 78 WebDataSource* provisionalDataSource() const override; |
| 79 WebDataSource* dataSource() const override; | 79 WebDataSource* dataSource() const override; |
| 80 void enableViewSourceMode(bool enable) override; | 80 void enableViewSourceMode(bool enable) override; |
| 81 bool isViewSourceModeEnabled() const override; | 81 bool isViewSourceModeEnabled() const override; |
| 82 void setReferrerForRequest(WebURLRequest&, const WebURL& referrer) override; | 82 void setReferrerForRequest(WebURLRequest&, const WebURL& referrer) override; |
| 83 void dispatchWillSendRequest(WebURLRequest&) override; | 83 void dispatchWillSendRequest(WebURLRequest&) override; |
| 84 WebURLLoader* createAssociatedURLLoader(const WebURLLoaderOptions&) override
; | 84 WebURLLoader* createAssociatedURLLoader(const WebURLLoaderOptions&) override
; |
| 85 unsigned unloadListenerCount() const override; | 85 unsigned unloadListenerCount() const override; |
| 86 void insertText(const WebString&) override; | |
| 87 void setMarkedText(const WebString&, unsigned location, unsigned length) ove
rride; | |
| 88 void unmarkText() override; | |
| 89 bool hasMarkedText() const override; | |
| 90 WebRange markedRange() const override; | |
| 91 bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&
) const override; | |
| 92 size_t characterIndexForPoint(const WebPoint&) const override; | |
| 93 bool executeCommand(const WebString&) override; | |
| 94 bool executeCommand(const WebString&, const WebString& value) override; | |
| 95 bool isCommandEnabled(const WebString&) const override; | |
| 96 void enableContinuousSpellChecking(bool) override; | |
| 97 bool isContinuousSpellCheckingEnabled() const override; | |
| 98 void requestTextChecking(const WebElement&) override; | |
| 99 void removeSpellingMarkers() override; | |
| 100 bool hasSelection() const override; | |
| 101 WebRange selectionRange() const override; | |
| 102 WebString selectionAsText() const override; | |
| 103 WebString selectionAsMarkup() const override; | |
| 104 bool selectWordAroundCaret() override; | |
| 105 void selectRange(const WebPoint& base, const WebPoint& extent) override; | |
| 106 void selectRange(const WebRange&) override; | |
| 107 void moveRangeSelection(const WebPoint& base, const WebPoint& extent, WebFra
me::TextGranularity = CharacterGranularity) override; | |
| 108 void moveCaretSelection(const WebPoint&) override; | |
| 109 bool setEditableSelectionOffsets(int start, int end) override; | |
| 110 bool setCompositionFromExistingText(int compositionStart, int compositionEnd
, const WebVector<WebCompositionUnderline>& underlines) override; | |
| 111 void extendSelectionAndDelete(int before, int after) override; | |
| 112 void setCaretVisible(bool) override; | |
| 113 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri
de; | 86 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri
de; |
| 114 float printPage(int pageToPrint, WebCanvas*) override; | 87 float printPage(int pageToPrint, WebCanvas*) override; |
| 115 float getPrintPageShrink(int page) override; | 88 float getPrintPageShrink(int page) override; |
| 116 void printEnd() override; | 89 void printEnd() override; |
| 117 bool isPrintScalingDisabledForPlugin(const WebNode&) override; | 90 bool isPrintScalingDisabledForPlugin(const WebNode&) override; |
| 118 bool hasCustomPageSizeStyle(int pageIndex) override; | 91 bool hasCustomPageSizeStyle(int pageIndex) override; |
| 119 bool isPageBoxVisible(int pageIndex) override; | 92 bool isPageBoxVisible(int pageIndex) override; |
| 120 void pageSizeAndMarginsInPixels( | 93 void pageSizeAndMarginsInPixels( |
| 121 int pageIndex, | 94 int pageIndex, |
| 122 WebSize& pageSize, | 95 WebSize& pageSize, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // Accomplish that by keeping a self-referential Persistent<>. It is | 162 // Accomplish that by keeping a self-referential Persistent<>. It is |
| 190 // cleared upon close(). | 163 // cleared upon close(). |
| 191 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; | 164 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; |
| 192 }; | 165 }; |
| 193 | 166 |
| 194 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); | 167 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame()
, frame.isWebRemoteFrame()); |
| 195 | 168 |
| 196 } // namespace blink | 169 } // namespace blink |
| 197 | 170 |
| 198 #endif // WebRemoteFrameImpl_h | 171 #endif // WebRemoteFrameImpl_h |
| OLD | NEW |