| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 391 |
| 392 // Retrieves a list of spelling markers. |
| 393 virtual void SpellingMarkerOffsetsForTest(WebVector<unsigned>* offsets) = 0; |
| 394 virtual void RemoveSpellingMarkersUnderWords( |
| 395 const WebVector<WebString>& words) = 0; |
| 396 |
| 392 // Content Settings ------------------------------------------------------- | 397 // Content Settings ------------------------------------------------------- |
| 393 | 398 |
| 394 virtual void SetContentSettingsClient(WebContentSettingsClient*) = 0; | 399 virtual void SetContentSettingsClient(WebContentSettingsClient*) = 0; |
| 395 | 400 |
| 396 // Image reload ----------------------------------------------------------- | 401 // Image reload ----------------------------------------------------------- |
| 397 | 402 |
| 398 // If the provided node is an image, reload the image disabling Lo-Fi. | 403 // If the provided node is an image, reload the image disabling Lo-Fi. |
| 399 virtual void ReloadImage(const WebNode&) = 0; | 404 virtual void ReloadImage(const WebNode&) = 0; |
| 400 | 405 |
| 401 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and | 406 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // to call these on a WebLocalFrame. | 550 // to call these on a WebLocalFrame. |
| 546 bool IsWebLocalFrame() const override = 0; | 551 bool IsWebLocalFrame() const override = 0; |
| 547 WebLocalFrame* ToWebLocalFrame() override = 0; | 552 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 548 bool IsWebRemoteFrame() const override = 0; | 553 bool IsWebRemoteFrame() const override = 0; |
| 549 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 554 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 550 }; | 555 }; |
| 551 | 556 |
| 552 } // namespace blink | 557 } // namespace blink |
| 553 | 558 |
| 554 #endif // WebLocalFrame_h | 559 #endif // WebLocalFrame_h |
| OLD | NEW |