| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "platform/wtf/Vector.h" | 37 #include "platform/wtf/Vector.h" |
| 38 #include "platform/wtf/text/WTFString.h" | 38 #include "platform/wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class LocalFrame; | 42 class LocalFrame; |
| 43 class SpellCheckRequester; | 43 class SpellCheckRequester; |
| 44 class TextCheckerClient; | 44 class TextCheckerClient; |
| 45 | 45 |
| 46 // TODO(xiaochengh): Move this class to dedicated files. | 46 // TODO(xiaochengh): Move this class to dedicated files. |
| 47 class SpellCheckRequest final : public TextCheckingRequest { | 47 class CORE_EXPORT SpellCheckRequest final : public TextCheckingRequest { |
| 48 public: | 48 public: |
| 49 static SpellCheckRequest* Create(const EphemeralRange& checking_range, | 49 static SpellCheckRequest* Create(const EphemeralRange& checking_range, |
| 50 int request_number); | 50 int request_number); |
| 51 | 51 |
| 52 ~SpellCheckRequest() override; | 52 ~SpellCheckRequest() override; |
| 53 void Dispose(); | 53 void Dispose(); |
| 54 | 54 |
| 55 Range* CheckingRange() const { return checking_range_; } | 55 Range* CheckingRange() const { return checking_range_; } |
| 56 Element* RootEditableElement() const { return root_editable_element_; } | 56 Element* RootEditableElement() const { return root_editable_element_; } |
| 57 | 57 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 Member<SpellCheckRequest> processing_request_; | 130 Member<SpellCheckRequest> processing_request_; |
| 131 | 131 |
| 132 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; | 132 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; |
| 133 RequestQueue request_queue_; | 133 RequestQueue request_queue_; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace blink | 136 } // namespace blink |
| 137 | 137 |
| 138 #endif // SpellCheckRequester_h | 138 #endif // SpellCheckRequester_h |
| OLD | NEW |