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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 EmptyTextCheckerClient m_textCheckerClient; | 282 EmptyTextCheckerClient m_textCheckerClient; |
283 }; | 283 }; |
284 | 284 |
285 class EmptyEditorClient FINAL : public EditorClient { | 285 class EmptyEditorClient FINAL : public EditorClient { |
286 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); WTF_MAKE_FAST_ALLOCATED; | 286 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); WTF_MAKE_FAST_ALLOCATED; |
287 public: | 287 public: |
288 EmptyEditorClient() { } | 288 EmptyEditorClient() { } |
289 virtual ~EmptyEditorClient() { } | 289 virtual ~EmptyEditorClient() { } |
290 | 290 |
291 virtual void respondToChangedContents() OVERRIDE { } | 291 virtual void respondToChangedContents() OVERRIDE { } |
292 virtual void respondToChangedSelection(SelectionType) OVERRIDE { } | 292 virtual void respondToChangedSelection(LocalFrame*, SelectionType) OVERRIDE
{ } |
293 | 293 |
294 virtual bool canCopyCut(LocalFrame*, bool defaultValue) const OVERRIDE { ret
urn defaultValue; } | 294 virtual bool canCopyCut(LocalFrame*, bool defaultValue) const OVERRIDE { ret
urn defaultValue; } |
295 virtual bool canPaste(LocalFrame*, bool defaultValue) const OVERRIDE { retur
n defaultValue; } | 295 virtual bool canPaste(LocalFrame*, bool defaultValue) const OVERRIDE { retur
n defaultValue; } |
296 | 296 |
297 virtual void didExecuteCommand(String) OVERRIDE { } | 297 virtual void didExecuteCommand(String) OVERRIDE { } |
298 virtual bool handleKeyboardEvent() OVERRIDE { return false; } | 298 virtual bool handleKeyboardEvent() OVERRIDE { return false; } |
299 }; | 299 }; |
300 | 300 |
301 class EmptyContextMenuClient FINAL : public ContextMenuClient { | 301 class EmptyContextMenuClient FINAL : public ContextMenuClient { |
302 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); WTF_MAKE_FAST_ALLOCATED; | 302 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); WTF_MAKE_FAST_ALLOCATED; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 public: | 337 public: |
338 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID
E; | 338 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() OVERRID
E; |
339 virtual bool canAccessStorage(LocalFrame*, StorageType) const OVERRIDE { ret
urn false; } | 339 virtual bool canAccessStorage(LocalFrame*, StorageType) const OVERRIDE { ret
urn false; } |
340 }; | 340 }; |
341 | 341 |
342 void fillWithEmptyClients(Page::PageClients&); | 342 void fillWithEmptyClients(Page::PageClients&); |
343 | 343 |
344 } | 344 } |
345 | 345 |
346 #endif // EmptyClients_h | 346 #endif // EmptyClients_h |
OLD | NEW |