| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) | 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) |
| 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 void requestCheckingOfString(TextCheckingRequest*) override; | 286 void requestCheckingOfString(TextCheckingRequest*) override; |
| 287 void cancelAllPendingRequests() override; | 287 void cancelAllPendingRequests() override; |
| 288 }; | 288 }; |
| 289 | 289 |
| 290 class EmptySpellCheckerClient : public SpellCheckerClient { | 290 class EmptySpellCheckerClient : public SpellCheckerClient { |
| 291 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); USING_FAST_MALLOC(EmptySpellC
heckerClient); | 291 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); USING_FAST_MALLOC(EmptySpellC
heckerClient); |
| 292 public: | 292 public: |
| 293 EmptySpellCheckerClient() {} | 293 EmptySpellCheckerClient() {} |
| 294 ~EmptySpellCheckerClient() override {} | 294 ~EmptySpellCheckerClient() override {} |
| 295 | 295 |
| 296 bool isContinuousSpellCheckingEnabled() override { return false; } | 296 bool isSpellCheckingEnabled() override { return false; } |
| 297 void toggleContinuousSpellChecking() override {} | 297 void toggleSpellCheckingEnabled() override {} |
| 298 | 298 |
| 299 TextCheckerClient& textChecker() override { return m_textCheckerClient; } | 299 TextCheckerClient& textChecker() override { return m_textCheckerClient; } |
| 300 | 300 |
| 301 void updateSpellingUIWithMisspelledWord(const String&) override {} | 301 void updateSpellingUIWithMisspelledWord(const String&) override {} |
| 302 void showSpellingUI(bool) override {} | 302 void showSpellingUI(bool) override {} |
| 303 bool spellingUIIsShowing() override { return false; } | 303 bool spellingUIIsShowing() override { return false; } |
| 304 | 304 |
| 305 private: | 305 private: |
| 306 EmptyTextCheckerClient m_textCheckerClient; | 306 EmptyTextCheckerClient m_textCheckerClient; |
| 307 }; | 307 }; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 328 ~EmptyContextMenuClient() override {} | 328 ~EmptyContextMenuClient() override {} |
| 329 bool showContextMenu(const ContextMenu*, bool) override { return false; } | 329 bool showContextMenu(const ContextMenu*, bool) override { return false; } |
| 330 void clearContextMenu() override {} | 330 void clearContextMenu() override {} |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); | 333 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); |
| 334 | 334 |
| 335 } // namespace blink | 335 } // namespace blink |
| 336 | 336 |
| 337 #endif // EmptyClients_h | 337 #endif // EmptyClients_h |
| OLD | NEW |