| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |