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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int
*, int*) OVERRIDE { } | 259 virtual void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int
*, int*) OVERRIDE { } |
260 virtual void requestCheckingOfString(PassRefPtr<TextCheckingRequest>) OVERRI
DE; | 260 virtual void requestCheckingOfString(PassRefPtr<TextCheckingRequest>) OVERRI
DE; |
261 }; | 261 }; |
262 | 262 |
263 class EmptyEditorClient : public EditorClient { | 263 class EmptyEditorClient : public EditorClient { |
264 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); WTF_MAKE_FAST_ALLOCATED; | 264 WTF_MAKE_NONCOPYABLE(EmptyEditorClient); WTF_MAKE_FAST_ALLOCATED; |
265 public: | 265 public: |
266 EmptyEditorClient() { } | 266 EmptyEditorClient() { } |
267 virtual ~EmptyEditorClient() { } | 267 virtual ~EmptyEditorClient() { } |
268 | 268 |
269 virtual bool shouldDeleteRange(Range*) OVERRIDE { return false; } | |
270 virtual bool smartInsertDeleteEnabled() OVERRIDE { return false; } | 269 virtual bool smartInsertDeleteEnabled() OVERRIDE { return false; } |
271 virtual bool isSelectTrailingWhitespaceEnabled() OVERRIDE { return false; } | 270 virtual bool isSelectTrailingWhitespaceEnabled() OVERRIDE { return false; } |
272 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE { return false; } | 271 virtual bool isContinuousSpellCheckingEnabled() OVERRIDE { return false; } |
273 virtual void toggleContinuousSpellChecking() OVERRIDE { } | 272 virtual void toggleContinuousSpellChecking() OVERRIDE { } |
274 virtual bool isGrammarCheckingEnabled() OVERRIDE { return false; } | 273 virtual bool isGrammarCheckingEnabled() OVERRIDE { return false; } |
275 | 274 |
276 virtual bool shouldBeginEditing(Range*) OVERRIDE { return false; } | |
277 virtual bool shouldEndEditing(Range*) OVERRIDE { return false; } | |
278 virtual bool shouldInsertNode(Node*, Range*, EditorInsertAction) OVERRIDE {
return false; } | |
279 virtual bool shouldInsertText(const String&, Range*, EditorInsertAction) OVE
RRIDE { return false; } | |
280 virtual bool shouldChangeSelectedRange(Range*, Range*, EAffinity, bool) OVER
RIDE { return false; } | |
281 | |
282 virtual bool shouldApplyStyle(StylePropertySet*, Range*) OVERRIDE { return f
alse; } | |
283 | |
284 virtual void didBeginEditing() OVERRIDE { } | |
285 virtual void respondToChangedContents() OVERRIDE { } | 275 virtual void respondToChangedContents() OVERRIDE { } |
286 virtual void respondToChangedSelection(Frame*) OVERRIDE { } | 276 virtual void respondToChangedSelection(Frame*) OVERRIDE { } |
287 virtual void didEndEditing() OVERRIDE { } | |
288 virtual void didCancelCompositionOnSelectionChange() OVERRIDE { } | 277 virtual void didCancelCompositionOnSelectionChange() OVERRIDE { } |
289 | 278 |
290 virtual void registerUndoStep(PassRefPtr<UndoStep>) OVERRIDE; | 279 virtual void registerUndoStep(PassRefPtr<UndoStep>) OVERRIDE; |
291 virtual void registerRedoStep(PassRefPtr<UndoStep>) OVERRIDE; | 280 virtual void registerRedoStep(PassRefPtr<UndoStep>) OVERRIDE; |
292 virtual void clearUndoRedoOperations() OVERRIDE { } | 281 virtual void clearUndoRedoOperations() OVERRIDE { } |
293 | 282 |
294 virtual bool canCopyCut(Frame*, bool defaultValue) const OVERRIDE { return d
efaultValue; } | 283 virtual bool canCopyCut(Frame*, bool defaultValue) const OVERRIDE { return d
efaultValue; } |
295 virtual bool canPaste(Frame*, bool defaultValue) const OVERRIDE { return def
aultValue; } | 284 virtual bool canPaste(Frame*, bool defaultValue) const OVERRIDE { return def
aultValue; } |
296 virtual bool canUndo() const OVERRIDE { return false; } | 285 virtual bool canUndo() const OVERRIDE { return false; } |
297 virtual bool canRedo() const OVERRIDE { return false; } | 286 virtual bool canRedo() const OVERRIDE { return false; } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 virtual void didAddItem() OVERRIDE { } | 339 virtual void didAddItem() OVERRIDE { } |
351 virtual int backListCount() OVERRIDE { return 0; } | 340 virtual int backListCount() OVERRIDE { return 0; } |
352 virtual int forwardListCount() OVERRIDE { return 0; } | 341 virtual int forwardListCount() OVERRIDE { return 0; } |
353 }; | 342 }; |
354 | 343 |
355 void fillWithEmptyClients(Page::PageClients&); | 344 void fillWithEmptyClients(Page::PageClients&); |
356 | 345 |
357 } | 346 } |
358 | 347 |
359 #endif // EmptyClients_h | 348 #endif // EmptyClients_h |
OLD | NEW |