Chromium Code Reviews| 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) = 0; | |
|
paulmeyer
2016/02/12 13:58:49
nit: Similar to what you did with TestFinder::find
dvadym
2016/02/12 16:46:06
Sure, Done.
| |
| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 305 // default behavior will be restored. | 306 // default behavior will be restored. |
| 306 virtual void setTickmarks(const WebVector<WebRect>&) = 0; | 307 virtual void setTickmarks(const WebVector<WebRect>&) = 0; |
| 307 | 308 |
| 308 protected: | 309 protected: |
| 309 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 310 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
| 310 }; | 311 }; |
| 311 | 312 |
| 312 } // namespace blink | 313 } // namespace blink |
| 313 | 314 |
| 314 #endif // WebLocalFrame_h | 315 #endif // WebLocalFrame_h |
| OLD | NEW |