| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 }; | 421 }; |
| 422 | 422 |
| 423 #if ENABLE(CONTEXT_MENUS) | 423 #if ENABLE(CONTEXT_MENUS) |
| 424 class EmptyContextMenuClient : public ContextMenuClient { | 424 class EmptyContextMenuClient : public ContextMenuClient { |
| 425 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); WTF_MAKE_FAST_ALLOCATED; | 425 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); WTF_MAKE_FAST_ALLOCATED; |
| 426 public: | 426 public: |
| 427 EmptyContextMenuClient() { } | 427 EmptyContextMenuClient() { } |
| 428 virtual ~EmptyContextMenuClient() { } | 428 virtual ~EmptyContextMenuClient() { } |
| 429 virtual void contextMenuDestroyed() { } | 429 virtual void contextMenuDestroyed() { } |
| 430 | 430 |
| 431 #if USE(CROSS_PLATFORM_CONTEXT_MENUS) | |
| 432 virtual PassOwnPtr<ContextMenu> customizeMenu(PassOwnPtr<ContextMenu>) OVERR
IDE; | 431 virtual PassOwnPtr<ContextMenu> customizeMenu(PassOwnPtr<ContextMenu>) OVERR
IDE; |
| 433 #else | 432 virtual void contextMenuItemSelected(const ContextMenuItem*, const ContextMe
nu*) { } |
| 434 virtual PlatformMenuDescription getCustomMenuFromDefaultItems(ContextMenu*)
{ return 0; } | |
| 435 #endif | |
| 436 virtual void contextMenuItemSelected(ContextMenuItem*, const ContextMenu*) {
} | |
| 437 | 433 |
| 438 virtual void downloadURL(const KURL&) { } | 434 virtual void downloadURL(const KURL&) { } |
| 439 virtual void copyImageToClipboard(const HitTestResult&) { } | 435 virtual void copyImageToClipboard(const HitTestResult&) { } |
| 440 virtual void searchWithGoogle(const Frame*) { } | 436 virtual void searchWithGoogle(const Frame*) { } |
| 441 virtual void lookUpInDictionary(Frame*) { } | 437 virtual void lookUpInDictionary(Frame*) { } |
| 442 virtual bool isSpeaking() { return false; } | 438 virtual bool isSpeaking() { return false; } |
| 443 virtual void speak(const String&) { } | 439 virtual void speak(const String&) { } |
| 444 virtual void stopSpeaking() { } | 440 virtual void stopSpeaking() { } |
| 445 | 441 |
| 446 #if USE(ACCESSIBILITY_CONTEXT_MENUS) | 442 #if USE(ACCESSIBILITY_CONTEXT_MENUS) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 virtual void setController(DeviceOrientationController*) { } | 486 virtual void setController(DeviceOrientationController*) { } |
| 491 virtual DeviceOrientationData* lastOrientation() const { return 0; } | 487 virtual DeviceOrientationData* lastOrientation() const { return 0; } |
| 492 virtual void deviceOrientationControllerDestroyed() { } | 488 virtual void deviceOrientationControllerDestroyed() { } |
| 493 }; | 489 }; |
| 494 | 490 |
| 495 void fillWithEmptyClients(Page::PageClients&); | 491 void fillWithEmptyClients(Page::PageClients&); |
| 496 | 492 |
| 497 } | 493 } |
| 498 | 494 |
| 499 #endif // EmptyClients_h | 495 #endif // EmptyClients_h |
| OLD | NEW |