| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 void UpdateSpellingUIWithMisspelledWord(const String&) override {} | 405 void UpdateSpellingUIWithMisspelledWord(const String&) override {} |
| 406 void ShowSpellingUI(bool) override {} | 406 void ShowSpellingUI(bool) override {} |
| 407 bool SpellingUIIsShowing() override { return false; } | 407 bool SpellingUIIsShowing() override { return false; } |
| 408 }; | 408 }; |
| 409 | 409 |
| 410 class EmptyEditorClient final : public EditorClient { | 410 class EmptyEditorClient final : public EditorClient { |
| 411 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); | 411 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); |
| 412 USING_FAST_MALLOC(EmptyEditorClient); | 412 USING_FAST_MALLOC(EmptyEditorClient); |
| 413 | 413 |
| 414 public: | 414 public: |
| 415 EmptyEditorClient() {} | 415 EmptyEditorClient() : EditorClient(nullptr) {} |
| 416 ~EmptyEditorClient() override {} | 416 ~EmptyEditorClient() override {} |
| 417 | 417 |
| 418 void RespondToChangedContents() override {} | 418 void RespondToChangedContents() override {} |
| 419 void RespondToChangedSelection(LocalFrame*, SelectionType) override {} | 419 void RespondToChangedSelection(LocalFrame*, SelectionType) override {} |
| 420 | 420 |
| 421 bool CanCopyCut(LocalFrame*, bool default_value) const override { | 421 bool CanCopyCut(LocalFrame*, bool default_value) const override { |
| 422 return default_value; | 422 return default_value; |
| 423 } | 423 } |
| 424 bool CanPaste(LocalFrame*, bool default_value) const override { | 424 bool CanPaste(LocalFrame*, bool default_value) const override { |
| 425 return default_value; | 425 return default_value; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 Frame* NextSibling() const override { return nullptr; } | 471 Frame* NextSibling() const override { return nullptr; } |
| 472 Frame* FirstChild() const override { return nullptr; } | 472 Frame* FirstChild() const override { return nullptr; } |
| 473 void FrameFocused() const override {} | 473 void FrameFocused() const override {} |
| 474 }; | 474 }; |
| 475 | 475 |
| 476 CORE_EXPORT void FillWithEmptyClients(Page::PageClients&); | 476 CORE_EXPORT void FillWithEmptyClients(Page::PageClients&); |
| 477 | 477 |
| 478 } // namespace blink | 478 } // namespace blink |
| 479 | 479 |
| 480 #endif // EmptyClients_h | 480 #endif // EmptyClients_h |
| OLD | NEW |