| 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 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 } else | 950 } else |
| 951 frame->editor()->pasteAsPlainText(); | 951 frame->editor()->pasteAsPlainText(); |
| 952 return true; | 952 return true; |
| 953 } | 953 } |
| 954 | 954 |
| 955 static bool executePrint(Frame* frame, Event*, EditorCommandSource, const String
&) | 955 static bool executePrint(Frame* frame, Event*, EditorCommandSource, const String
&) |
| 956 { | 956 { |
| 957 Page* page = frame->page(); | 957 Page* page = frame->page(); |
| 958 if (!page) | 958 if (!page) |
| 959 return false; | 959 return false; |
| 960 page->chrome()->print(frame); | 960 page->chrome().print(frame); |
| 961 return true; | 961 return true; |
| 962 } | 962 } |
| 963 | 963 |
| 964 static bool executeRedo(Frame* frame, Event*, EditorCommandSource, const String&
) | 964 static bool executeRedo(Frame* frame, Event*, EditorCommandSource, const String&
) |
| 965 { | 965 { |
| 966 frame->editor()->redo(); | 966 frame->editor()->redo(); |
| 967 return true; | 967 return true; |
| 968 } | 968 } |
| 969 | 969 |
| 970 static bool executeRemoveFormat(Frame* frame, Event*, EditorCommandSource, const
String&) | 970 static bool executeRemoveFormat(Frame* frame, Event*, EditorCommandSource, const
String&) |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 return m_command->state(m_frame.get(), triggeringEvent) == TrueTriState
? "true" : "false"; | 1729 return m_command->state(m_frame.get(), triggeringEvent) == TrueTriState
? "true" : "false"; |
| 1730 return m_command->value(m_frame.get(), triggeringEvent); | 1730 return m_command->value(m_frame.get(), triggeringEvent); |
| 1731 } | 1731 } |
| 1732 | 1732 |
| 1733 bool Editor::Command::isTextInsertion() const | 1733 bool Editor::Command::isTextInsertion() const |
| 1734 { | 1734 { |
| 1735 return m_command && m_command->isTextInsertion; | 1735 return m_command && m_command->isTextInsertion; |
| 1736 } | 1736 } |
| 1737 | 1737 |
| 1738 } // namespace WebCore | 1738 } // namespace WebCore |
| OLD | NEW |