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

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

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/events/ApplicationCacheErrorEvent.h » ('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 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 } 1730 }
1731 1731
1732 bool Editor::Command::execute(const String& parameter, Event* triggeringEvent) c onst 1732 bool Editor::Command::execute(const String& parameter, Event* triggeringEvent) c onst
1733 { 1733 {
1734 if (!isEnabled(triggeringEvent)) { 1734 if (!isEnabled(triggeringEvent)) {
1735 // Let certain commands be executed when performed explicitly even if th ey are disabled. 1735 // Let certain commands be executed when performed explicitly even if th ey are disabled.
1736 if (!isSupported() || !m_frame || !m_command->allowExecutionWhenDisabled ) 1736 if (!isSupported() || !m_frame || !m_command->allowExecutionWhenDisabled )
1737 return false; 1737 return false;
1738 } 1738 }
1739 frame().document()->updateLayoutIgnorePendingStylesheets(); 1739 frame().document()->updateLayoutIgnorePendingStylesheets();
1740 blink::Platform::current()->histogramSparse("WebCore.Editing.Commands", m_co mmand->idForUserMetrics); 1740 Platform::current()->histogramSparse("WebCore.Editing.Commands", m_command-> idForUserMetrics);
1741 return m_command->execute(*m_frame, triggeringEvent, m_source, parameter); 1741 return m_command->execute(*m_frame, triggeringEvent, m_source, parameter);
1742 } 1742 }
1743 1743
1744 bool Editor::Command::execute(Event* triggeringEvent) const 1744 bool Editor::Command::execute(Event* triggeringEvent) const
1745 { 1745 {
1746 return execute(String(), triggeringEvent); 1746 return execute(String(), triggeringEvent);
1747 } 1747 }
1748 1748
1749 bool Editor::Command::isSupported() const 1749 bool Editor::Command::isSupported() const
1750 { 1750 {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 { 1787 {
1788 return m_command && m_command->isTextInsertion; 1788 return m_command && m_command->isTextInsertion;
1789 } 1789 }
1790 1790
1791 int Editor::Command::idForHistogram() const 1791 int Editor::Command::idForHistogram() const
1792 { 1792 {
1793 return isSupported() ? m_command->idForUserMetrics : 0; 1793 return isSupported() ? m_command->idForUserMetrics : 0;
1794 } 1794 }
1795 1795
1796 } // namespace blink 1796 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/events/ApplicationCacheErrorEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698