| 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 <set> | 8 #include <set> |
| 9 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
| 10 #include "WebFrame.h" | 10 #include "WebFrame.h" |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 virtual void ExtractSmartClipData(WebRect rect_in_viewport, | 381 virtual void ExtractSmartClipData(WebRect rect_in_viewport, |
| 382 WebString& clip_text, | 382 WebString& clip_text, |
| 383 WebString& clip_html) = 0; | 383 WebString& clip_html) = 0; |
| 384 | 384 |
| 385 // Spell-checking support ------------------------------------------------- | 385 // Spell-checking support ------------------------------------------------- |
| 386 virtual void SetTextCheckClient(WebTextCheckClient*) = 0; | 386 virtual void SetTextCheckClient(WebTextCheckClient*) = 0; |
| 387 virtual void ReplaceMisspelledRange(const WebString&) = 0; | 387 virtual void ReplaceMisspelledRange(const WebString&) = 0; |
| 388 virtual void EnableSpellChecking(bool) = 0; | 388 virtual void EnableSpellChecking(bool) = 0; |
| 389 virtual bool IsSpellCheckingEnabled() const = 0; | 389 virtual bool IsSpellCheckingEnabled() const = 0; |
| 390 virtual void RemoveSpellingMarkers() = 0; | 390 virtual void RemoveSpellingMarkers() = 0; |
| 391 | |
| 392 // Retrieves a list of spelling markers. | |
| 393 virtual void SpellingMarkerOffsetsForTest(WebVector<unsigned>* offsets) = 0; | |
| 394 virtual void RemoveSpellingMarkersUnderWords( | 391 virtual void RemoveSpellingMarkersUnderWords( |
| 395 const WebVector<WebString>& words) = 0; | 392 const WebVector<WebString>& words) = 0; |
| 396 | 393 |
| 397 // Content Settings ------------------------------------------------------- | 394 // Content Settings ------------------------------------------------------- |
| 398 | 395 |
| 399 virtual void SetContentSettingsClient(WebContentSettingsClient*) = 0; | 396 virtual void SetContentSettingsClient(WebContentSettingsClient*) = 0; |
| 400 | 397 |
| 401 // Image reload ----------------------------------------------------------- | 398 // Image reload ----------------------------------------------------------- |
| 402 | 399 |
| 403 // If the provided node is an image, reload the image disabling Lo-Fi. | 400 // If the provided node is an image, reload the image disabling Lo-Fi. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 // to call these on a WebLocalFrame. | 547 // to call these on a WebLocalFrame. |
| 551 bool IsWebLocalFrame() const override = 0; | 548 bool IsWebLocalFrame() const override = 0; |
| 552 WebLocalFrame* ToWebLocalFrame() override = 0; | 549 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 553 bool IsWebRemoteFrame() const override = 0; | 550 bool IsWebRemoteFrame() const override = 0; |
| 554 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 551 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 555 }; | 552 }; |
| 556 | 553 |
| 557 } // namespace blink | 554 } // namespace blink |
| 558 | 555 |
| 559 #endif // WebLocalFrame_h | 556 #endif // WebLocalFrame_h |
| OLD | NEW |