| 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 WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
| 6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
| 7 | 7 |
| 8 #include "WebFrame.h" | 8 #include "WebFrame.h" |
| 9 #include "WebFrameLoadType.h" | 9 #include "WebFrameLoadType.h" |
| 10 | 10 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // location of where the match was found (in window coordinates). | 228 // location of where the match was found (in window coordinates). |
| 229 // | 229 // |
| 230 // If no match is found, this function clears all tickmarks and | 230 // If no match is found, this function clears all tickmarks and |
| 231 // highlighting. | 231 // highlighting. |
| 232 // | 232 // |
| 233 // Returns true if the search string was found, false otherwise. | 233 // Returns true if the search string was found, false otherwise. |
| 234 virtual bool find(int identifier, | 234 virtual bool find(int identifier, |
| 235 const WebString& searchText, | 235 const WebString& searchText, |
| 236 const WebFindOptions&, | 236 const WebFindOptions&, |
| 237 bool wrapWithinFrame, | 237 bool wrapWithinFrame, |
| 238 WebRect* selectionRect) = 0; | 238 WebRect* selectionRect, |
| 239 bool* activeNow = nullptr) = 0; |
| 239 | 240 |
| 240 // Notifies the frame that we are no longer interested in searching. | 241 // Notifies the frame that we are no longer interested in searching. |
| 241 // This will abort any asynchronous scoping effort already under way | 242 // This will abort any asynchronous scoping effort already under way |
| 242 // (see the function scopeStringMatches for details) and erase all | 243 // (see the function scopeStringMatches for details) and erase all |
| 243 // tick-marks and highlighting from the previous search. If | 244 // tick-marks and highlighting from the previous search. If |
| 244 // clearSelection is true, it will also make sure the end state for the | 245 // clearSelection is true, it will also make sure the end state for the |
| 245 // find operation does not leave a selection. This can occur when the | 246 // find operation does not leave a selection. This can occur when the |
| 246 // user clears the search string but does not close the find box. | 247 // user clears the search string but does not close the find box. |
| 247 virtual void stopFinding(bool clearSelection) = 0; | 248 virtual void stopFinding(bool clearSelection) = 0; |
| 248 | 249 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 // to call these on a WebLocalFrame. | 313 // to call these on a WebLocalFrame. |
| 313 bool isWebLocalFrame() const override = 0; | 314 bool isWebLocalFrame() const override = 0; |
| 314 WebLocalFrame* toWebLocalFrame() override = 0; | 315 WebLocalFrame* toWebLocalFrame() override = 0; |
| 315 bool isWebRemoteFrame() const override = 0; | 316 bool isWebRemoteFrame() const override = 0; |
| 316 WebRemoteFrame* toWebRemoteFrame() override = 0; | 317 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 317 }; | 318 }; |
| 318 | 319 |
| 319 } // namespace blink | 320 } // namespace blink |
| 320 | 321 |
| 321 #endif // WebLocalFrame_h | 322 #endif // WebLocalFrame_h |
| OLD | NEW |