| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override {} | 362 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override {} |
| 363 bool allowScriptExtensions() override { return false; } | 363 bool allowScriptExtensions() override { return false; } |
| 364 | 364 |
| 365 WebCookieJar* cookieJar() const override { return 0; } | 365 WebCookieJar* cookieJar() const override { return 0; } |
| 366 | 366 |
| 367 std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider() | 367 std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider() |
| 368 override; | 368 override; |
| 369 std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( | 369 std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( |
| 370 WebApplicationCacheHostClient*) override; | 370 WebApplicationCacheHostClient*) override; |
| 371 | 371 |
| 372 TextCheckerClient& textCheckerClient() const override; |
| 373 |
| 372 protected: | 374 protected: |
| 373 EmptyLocalFrameClient() {} | 375 EmptyLocalFrameClient() {} |
| 374 }; | 376 }; |
| 375 | 377 |
| 376 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient { | 378 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient { |
| 377 DISALLOW_NEW(); | 379 WTF_MAKE_NONCOPYABLE(EmptyTextCheckerClient); |
| 380 USING_FAST_MALLOC(EmptyTextCheckerClient); |
| 378 | 381 |
| 379 public: | 382 public: |
| 380 ~EmptyTextCheckerClient() {} | 383 EmptyTextCheckerClient() {} |
| 381 | 384 |
| 382 void checkSpellingOfString(const String&, int*, int*) override {} | 385 void checkSpellingOfString(const String&, int*, int*) override {} |
| 383 void requestCheckingOfString(TextCheckingRequest*) override; | 386 void requestCheckingOfString(TextCheckingRequest*) override; |
| 384 void cancelAllPendingRequests() override; | 387 void cancelAllPendingRequests() override; |
| 385 }; | 388 }; |
| 386 | 389 |
| 387 class EmptySpellCheckerClient : public SpellCheckerClient { | 390 class EmptySpellCheckerClient : public SpellCheckerClient { |
| 388 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); | 391 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); |
| 389 USING_FAST_MALLOC(EmptySpellCheckerClient); | 392 USING_FAST_MALLOC(EmptySpellCheckerClient); |
| 390 | 393 |
| 391 public: | 394 public: |
| 392 EmptySpellCheckerClient() {} | 395 EmptySpellCheckerClient() {} |
| 393 ~EmptySpellCheckerClient() override {} | 396 ~EmptySpellCheckerClient() override {} |
| 394 | 397 |
| 395 bool isSpellCheckingEnabled() override { return false; } | 398 bool isSpellCheckingEnabled() override { return false; } |
| 396 void toggleSpellCheckingEnabled() override {} | 399 void toggleSpellCheckingEnabled() override {} |
| 397 | |
| 398 TextCheckerClient& textChecker() override { return m_textCheckerClient; } | |
| 399 | |
| 400 void updateSpellingUIWithMisspelledWord(const String&) override {} | 400 void updateSpellingUIWithMisspelledWord(const String&) override {} |
| 401 void showSpellingUI(bool) override {} | 401 void showSpellingUI(bool) override {} |
| 402 bool spellingUIIsShowing() override { return false; } | 402 bool spellingUIIsShowing() override { return false; } |
| 403 | |
| 404 private: | |
| 405 EmptyTextCheckerClient m_textCheckerClient; | |
| 406 }; | 403 }; |
| 407 | 404 |
| 408 class EmptyEditorClient final : public EditorClient { | 405 class EmptyEditorClient final : public EditorClient { |
| 409 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); | 406 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); |
| 410 USING_FAST_MALLOC(EmptyEditorClient); | 407 USING_FAST_MALLOC(EmptyEditorClient); |
| 411 | 408 |
| 412 public: | 409 public: |
| 413 EmptyEditorClient() {} | 410 EmptyEditorClient() {} |
| 414 ~EmptyEditorClient() override {} | 411 ~EmptyEditorClient() override {} |
| 415 | 412 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 Frame* nextSibling() const override { return nullptr; } | 466 Frame* nextSibling() const override { return nullptr; } |
| 470 Frame* firstChild() const override { return nullptr; } | 467 Frame* firstChild() const override { return nullptr; } |
| 471 void frameFocused() const override {} | 468 void frameFocused() const override {} |
| 472 }; | 469 }; |
| 473 | 470 |
| 474 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); | 471 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); |
| 475 | 472 |
| 476 } // namespace blink | 473 } // namespace blink |
| 477 | 474 |
| 478 #endif // EmptyClients_h | 475 #endif // EmptyClients_h |
| OLD | NEW |