Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: Source/core/page/EditorClient.h

Issue 26237004: Remove unused editing related member functions from WebViewClient (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-10-09T17:59:14 Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class TextCheckerClient; 51 class TextCheckerClient;
52 class VisibleSelection; 52 class VisibleSelection;
53 class VisiblePosition; 53 class VisiblePosition;
54 54
55 struct GrammarDetail; 55 struct GrammarDetail;
56 56
57 class EditorClient { 57 class EditorClient {
58 public: 58 public:
59 virtual ~EditorClient() { } 59 virtual ~EditorClient() { }
60 60
61 virtual bool shouldDeleteRange(Range*) = 0;
62 virtual bool smartInsertDeleteEnabled() = 0; 61 virtual bool smartInsertDeleteEnabled() = 0;
63 virtual bool isSelectTrailingWhitespaceEnabled() = 0; 62 virtual bool isSelectTrailingWhitespaceEnabled() = 0;
64 virtual bool isContinuousSpellCheckingEnabled() = 0; 63 virtual bool isContinuousSpellCheckingEnabled() = 0;
65 virtual void toggleContinuousSpellChecking() = 0; 64 virtual void toggleContinuousSpellChecking() = 0;
66 virtual bool isGrammarCheckingEnabled() = 0; 65 virtual bool isGrammarCheckingEnabled() = 0;
67 66
68 virtual bool shouldBeginEditing(Range*) = 0;
69 virtual bool shouldEndEditing(Range*) = 0;
70 virtual bool shouldInsertNode(Node*, Range*, EditorInsertAction) = 0;
71 virtual bool shouldInsertText(const String&, Range*, EditorInsertAction) = 0 ;
72 virtual bool shouldChangeSelectedRange(Range* fromRange, Range* toRange, EAf finity, bool stillSelecting) = 0;
73
74 virtual bool shouldApplyStyle(StylePropertySet*, Range*) = 0;
75
76 virtual void didBeginEditing() = 0;
77 virtual void respondToChangedContents() = 0; 67 virtual void respondToChangedContents() = 0;
78 virtual void respondToChangedSelection(Frame*) = 0; 68 virtual void respondToChangedSelection(Frame*) = 0;
79 virtual void didEndEditing() = 0;
80 virtual void didCancelCompositionOnSelectionChange() = 0; 69 virtual void didCancelCompositionOnSelectionChange() = 0;
81 70
82 virtual void registerUndoStep(PassRefPtr<UndoStep>) = 0; 71 virtual void registerUndoStep(PassRefPtr<UndoStep>) = 0;
83 virtual void registerRedoStep(PassRefPtr<UndoStep>) = 0; 72 virtual void registerRedoStep(PassRefPtr<UndoStep>) = 0;
84 virtual void clearUndoRedoOperations() = 0; 73 virtual void clearUndoRedoOperations() = 0;
85 74
86 virtual bool canCopyCut(Frame*, bool defaultValue) const = 0; 75 virtual bool canCopyCut(Frame*, bool defaultValue) const = 0;
87 virtual bool canPaste(Frame*, bool defaultValue) const = 0; 76 virtual bool canPaste(Frame*, bool defaultValue) const = 0;
88 virtual bool canUndo() const = 0; 77 virtual bool canUndo() const = 0;
89 virtual bool canRedo() const = 0; 78 virtual bool canRedo() const = 0;
(...skipping 15 matching lines...) Expand all
105 virtual void willSetInputMethodState() = 0; 94 virtual void willSetInputMethodState() = 0;
106 95
107 // Support for global selections, used on platforms like the X Window System that treat 96 // Support for global selections, used on platforms like the X Window System that treat
108 // selection as a type of clipboard. 97 // selection as a type of clipboard.
109 virtual bool supportsGlobalSelection() { return false; } 98 virtual bool supportsGlobalSelection() { return false; }
110 }; 99 };
111 100
112 } 101 }
113 102
114 #endif // EditorClient_h 103 #endif // EditorClient_h
OLDNEW
« no previous file with comments | « Source/core/page/DragController.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698