| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/inspector/InspectorHistory.h" | 32 #include "core/inspector/InspectorHistory.h" |
| 33 | 33 |
| 34 #include "bindings/v8/ExceptionState.h" | 34 #include "bindings/v8/ExceptionState.h" |
| 35 #include "bindings/v8/ExceptionStatePlaceholder.h" | 35 #include "bindings/v8/ExceptionStatePlaceholder.h" |
| 36 #include "core/dom/Node.h" | 36 #include "core/dom/Node.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 class UndoableStateMark : public InspectorHistory::Action { | 42 class UndoableStateMark FINAL : public InspectorHistory::Action { |
| 43 public: | 43 public: |
| 44 UndoableStateMark() : InspectorHistory::Action("[UndoableState]") { } | 44 UndoableStateMark() : InspectorHistory::Action("[UndoableState]") { } |
| 45 | 45 |
| 46 virtual bool perform(ExceptionState&) { return true; } | 46 virtual bool perform(ExceptionState&) OVERRIDE { return true; } |
| 47 | 47 |
| 48 virtual bool undo(ExceptionState&) { return true; } | 48 virtual bool undo(ExceptionState&) OVERRIDE { return true; } |
| 49 | 49 |
| 50 virtual bool redo(ExceptionState&) { return true; } | 50 virtual bool redo(ExceptionState&) OVERRIDE { return true; } |
| 51 | 51 |
| 52 virtual bool isUndoableStateMark() { return true; } | 52 virtual bool isUndoableStateMark() OVERRIDE { return true; } |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } | 55 } |
| 56 | 56 |
| 57 InspectorHistory::Action::Action(const String& name) : m_name(name) | 57 InspectorHistory::Action::Action(const String& name) : m_name(name) |
| 58 { | 58 { |
| 59 } | 59 } |
| 60 | 60 |
| 61 InspectorHistory::Action::~Action() | 61 InspectorHistory::Action::~Action() |
| 62 { | 62 { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 } | 141 } |
| 142 | 142 |
| 143 void InspectorHistory::reset() | 143 void InspectorHistory::reset() |
| 144 { | 144 { |
| 145 m_afterLastActionIndex = 0; | 145 m_afterLastActionIndex = 0; |
| 146 m_history.clear(); | 146 m_history.clear(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 } // namespace WebCore | 149 } // namespace WebCore |
| 150 | 150 |
| OLD | NEW |