| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 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 * Copyright (C) 2009 Igalia S.L. | 4 * Copyright (C) 2009 Igalia S.L. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "core/html/HTMLFontElement.h" | 49 #include "core/html/HTMLFontElement.h" |
| 50 #include "core/html/HTMLHRElement.h" | 50 #include "core/html/HTMLHRElement.h" |
| 51 #include "core/html/HTMLImageElement.h" | 51 #include "core/html/HTMLImageElement.h" |
| 52 #include "core/page/Chrome.h" | 52 #include "core/page/Chrome.h" |
| 53 #include "core/page/EditorClient.h" | 53 #include "core/page/EditorClient.h" |
| 54 #include "core/page/EventHandler.h" | 54 #include "core/page/EventHandler.h" |
| 55 #include "core/frame/Frame.h" | 55 #include "core/frame/Frame.h" |
| 56 #include "core/frame/FrameView.h" | 56 #include "core/frame/FrameView.h" |
| 57 #include "core/page/Page.h" | 57 #include "core/page/Page.h" |
| 58 #include "core/page/Settings.h" | 58 #include "core/page/Settings.h" |
| 59 #include "core/platform/KillRing.h" | |
| 60 #include "core/platform/Pasteboard.h" | 59 #include "core/platform/Pasteboard.h" |
| 61 #include "core/platform/Scrollbar.h" | 60 #include "core/platform/Scrollbar.h" |
| 62 #include "core/rendering/RenderBox.h" | 61 #include "core/rendering/RenderBox.h" |
| 62 #include "platform/KillRing.h" |
| 63 #include "wtf/text/AtomicString.h" | 63 #include "wtf/text/AtomicString.h" |
| 64 | 64 |
| 65 namespace WebCore { | 65 namespace WebCore { |
| 66 | 66 |
| 67 using namespace HTMLNames; | 67 using namespace HTMLNames; |
| 68 | 68 |
| 69 class EditorInternalCommand { | 69 class EditorInternalCommand { |
| 70 public: | 70 public: |
| 71 bool (*execute)(Frame&, Event*, EditorCommandSource, const String&); | 71 bool (*execute)(Frame&, Event*, EditorCommandSource, const String&); |
| 72 bool (*isSupportedFromDOM)(Frame*); | 72 bool (*isSupportedFromDOM)(Frame*); |
| (...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1723 return m_command->state(*m_frame, triggeringEvent) == TrueTriState ? "tr
ue" : "false"; | 1723 return m_command->state(*m_frame, triggeringEvent) == TrueTriState ? "tr
ue" : "false"; |
| 1724 return m_command->value(*m_frame, triggeringEvent); | 1724 return m_command->value(*m_frame, triggeringEvent); |
| 1725 } | 1725 } |
| 1726 | 1726 |
| 1727 bool Editor::Command::isTextInsertion() const | 1727 bool Editor::Command::isTextInsertion() const |
| 1728 { | 1728 { |
| 1729 return m_command && m_command->isTextInsertion; | 1729 return m_command && m_command->isTextInsertion; |
| 1730 } | 1730 } |
| 1731 | 1731 |
| 1732 } // namespace WebCore | 1732 } // namespace WebCore |
| OLD | NEW |