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

Side by Side Diff: Source/web/EditorClientImpl.h

Issue 72543005: Get rid of explict editor dependency from text field (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-11-18T17:22:32 Created 7 years, 1 month 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/web/ChromeClientImpl.cpp ('k') | Source/web/EditorClientImpl.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual void registerUndoStep(PassRefPtr<WebCore::UndoStep>) OVERRIDE; 53 virtual void registerUndoStep(PassRefPtr<WebCore::UndoStep>) OVERRIDE;
54 virtual void registerRedoStep(PassRefPtr<WebCore::UndoStep>) OVERRIDE; 54 virtual void registerRedoStep(PassRefPtr<WebCore::UndoStep>) OVERRIDE;
55 virtual void clearUndoRedoOperations() OVERRIDE; 55 virtual void clearUndoRedoOperations() OVERRIDE;
56 virtual bool canCopyCut(WebCore::Frame*, bool defaultValue) const OVERRIDE; 56 virtual bool canCopyCut(WebCore::Frame*, bool defaultValue) const OVERRIDE;
57 virtual bool canPaste(WebCore::Frame*, bool defaultValue) const OVERRIDE; 57 virtual bool canPaste(WebCore::Frame*, bool defaultValue) const OVERRIDE;
58 virtual bool canUndo() const OVERRIDE; 58 virtual bool canUndo() const OVERRIDE;
59 virtual bool canRedo() const OVERRIDE; 59 virtual bool canRedo() const OVERRIDE;
60 virtual void undo() OVERRIDE; 60 virtual void undo() OVERRIDE;
61 virtual void redo() OVERRIDE; 61 virtual void redo() OVERRIDE;
62 virtual void handleKeyboardEvent(WebCore::KeyboardEvent*) OVERRIDE; 62 virtual void handleKeyboardEvent(WebCore::KeyboardEvent*) OVERRIDE;
63 virtual void textFieldDidEndEditing(WebCore::Element*) OVERRIDE;
64 virtual void textDidChangeInTextField(WebCore::Element*) OVERRIDE;
65 virtual bool doTextFieldCommandFromEvent(WebCore::Element*, WebCore::Keyboar dEvent*) OVERRIDE;
66 63
67 const char* interpretKeyEvent(const WebCore::KeyboardEvent*); 64 const char* interpretKeyEvent(const WebCore::KeyboardEvent*);
68 65
69 private: 66 private:
70 bool handleEditingKeyboardEvent(WebCore::KeyboardEvent*); 67 bool handleEditingKeyboardEvent(WebCore::KeyboardEvent*);
71 void modifySelection(WebCore::Frame*, WebCore::KeyboardEvent*); 68 void modifySelection(WebCore::Frame*, WebCore::KeyboardEvent*);
72 69
73 WebViewImpl* m_webView; 70 WebViewImpl* m_webView;
74 bool m_inRedo; 71 bool m_inRedo;
75 72
76 typedef Deque<RefPtr<WebCore::UndoStep> > UndoManagerStack; 73 typedef Deque<RefPtr<WebCore::UndoStep> > UndoManagerStack;
77 UndoManagerStack m_undoStack; 74 UndoManagerStack m_undoStack;
78 UndoManagerStack m_redoStack; 75 UndoManagerStack m_redoStack;
79 }; 76 };
80 77
81 } // namespace blink 78 } // namespace blink
82 79
83 #endif 80 #endif
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | Source/web/EditorClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698