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

Side by Side Diff: Source/core/editing/EditorCommand.cpp

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 7 months 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/core/dom/Document.cpp ('k') | Source/core/html/BaseChooserOnlyDateAndTimeInputType.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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/BaseChooserOnlyDateAndTimeInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698