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

Side by Side Diff: third_party/WebKit/WebCore/page/EditorClient.h

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 years, 9 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class String; 54 class String;
55 class VisiblePosition; 55 class VisiblePosition;
56 56
57 struct GrammarDetail { 57 struct GrammarDetail {
58 int location; 58 int location;
59 int length; 59 int length;
60 Vector<String> guesses; 60 Vector<String> guesses;
61 String userDescription; 61 String userDescription;
62 }; 62 };
63 63
64 struct TextCheckingResult {
65 int resultType; // 1 for spelling, 2 for grammar
66 int location;
67 int length;
68 Vector<GrammarDetail> details;
69 };
70
64 class EditorClient { 71 class EditorClient {
65 public: 72 public:
66 virtual ~EditorClient() { } 73 virtual ~EditorClient() { }
67 virtual void pageDestroyed() = 0; 74 virtual void pageDestroyed() = 0;
68 75
69 virtual bool shouldDeleteRange(Range*) = 0; 76 virtual bool shouldDeleteRange(Range*) = 0;
70 virtual bool shouldShowDeleteInterface(HTMLElement*) = 0; 77 virtual bool shouldShowDeleteInterface(HTMLElement*) = 0;
71 virtual bool smartInsertDeleteEnabled() = 0; 78 virtual bool smartInsertDeleteEnabled() = 0;
72 virtual bool isSelectTrailingWhitespaceEnabled() = 0; 79 virtual bool isSelectTrailingWhitespaceEnabled() = 0;
73 virtual bool isContinuousSpellCheckingEnabled() = 0; 80 virtual bool isContinuousSpellCheckingEnabled() = 0;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual NSString* userVisibleString(NSURL*) = 0; 130 virtual NSString* userVisibleString(NSURL*) = 0;
124 #ifdef BUILDING_ON_TIGER 131 #ifdef BUILDING_ON_TIGER
125 virtual NSArray* pasteboardTypesForSelection(Frame*) = 0; 132 virtual NSArray* pasteboardTypesForSelection(Frame*) = 0;
126 #endif 133 #endif
127 #endif 134 #endif
128 135
129 virtual void ignoreWordInSpellDocument(const String&) = 0; 136 virtual void ignoreWordInSpellDocument(const String&) = 0;
130 virtual void learnWord(const String&) = 0; 137 virtual void learnWord(const String&) = 0;
131 virtual void checkSpellingOfString(const UChar*, int length, int* misspellin gLocation, int* misspellingLength) = 0; 138 virtual void checkSpellingOfString(const UChar*, int length, int* misspellin gLocation, int* misspellingLength) = 0;
132 virtual void checkGrammarOfString(const UChar*, int length, Vector<GrammarDe tail>&, int* badGrammarLocation, int* badGrammarLength) = 0; 139 virtual void checkGrammarOfString(const UChar*, int length, Vector<GrammarDe tail>&, int* badGrammarLocation, int* badGrammarLength) = 0;
140 #if PLATFORM(MAC) && !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD )
141 virtual void checkSpellingAndGrammarOfParagraph(const UChar* text, int lengt h, bool checkGrammar, Vector<TextCheckingResult>& results) = 0;
142 #endif
133 virtual void updateSpellingUIWithGrammarString(const String&, const GrammarD etail& detail) = 0; 143 virtual void updateSpellingUIWithGrammarString(const String&, const GrammarD etail& detail) = 0;
134 virtual void updateSpellingUIWithMisspelledWord(const String&) = 0; 144 virtual void updateSpellingUIWithMisspelledWord(const String&) = 0;
135 virtual void showSpellingUI(bool show) = 0; 145 virtual void showSpellingUI(bool show) = 0;
136 virtual bool spellingUIIsShowing() = 0; 146 virtual bool spellingUIIsShowing() = 0;
137 virtual void getGuessesForWord(const String&, Vector<String>& guesses) = 0; 147 virtual void getGuessesForWord(const String&, Vector<String>& guesses) = 0;
138 virtual void setInputMethodState(bool enabled) = 0; 148 virtual void setInputMethodState(bool enabled) = 0;
139 }; 149 };
140 150
141 } 151 }
142 152
143 #endif // EditorClient_h 153 #endif // EditorClient_h
144 154
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/loader/TextResourceDecoder.cpp ('k') | third_party/WebKit/WebCore/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698