| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 bool canPaste(LocalFrame*, bool defaultValue) const override { return defaul
tValue; } | 317 bool canPaste(LocalFrame*, bool defaultValue) const override { return defaul
tValue; } |
| 318 | 318 |
| 319 bool handleKeyboardEvent() override { return false; } | 319 bool handleKeyboardEvent() override { return false; } |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 class EmptyContextMenuClient final : public ContextMenuClient { | 322 class EmptyContextMenuClient final : public ContextMenuClient { |
| 323 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); USING_FAST_MALLOC(EmptyContext
MenuClient); | 323 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); USING_FAST_MALLOC(EmptyContext
MenuClient); |
| 324 public: | 324 public: |
| 325 EmptyContextMenuClient() {} | 325 EmptyContextMenuClient() {} |
| 326 ~EmptyContextMenuClient() override {} | 326 ~EmptyContextMenuClient() override {} |
| 327 void showContextMenu(const ContextMenu*) override {} | 327 bool showContextMenu(const ContextMenu*, bool) override { return false; } |
| 328 void clearContextMenu() override {} | 328 void clearContextMenu() override {} |
| 329 }; | 329 }; |
| 330 | 330 |
| 331 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); | 331 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); |
| 332 | 332 |
| 333 } // namespace blink | 333 } // namespace blink |
| 334 | 334 |
| 335 #endif // EmptyClients_h | 335 #endif // EmptyClients_h |
| OLD | NEW |