diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 00:00:27 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 00:00:27 +0000 |
commit | 7e786822892d2e10c75c3ddc47df057d5fc275c2 (patch) | |
tree | b7070640aad0435443aff2c97c7c47cd37f1ebce /chrome/browser/tab_contents/tab_contents.cc | |
parent | e4746616d32540d81d3fcd2fb404418cfcc06110 (diff) | |
download | chromium_src-7e786822892d2e10c75c3ddc47df057d5fc275c2.zip chromium_src-7e786822892d2e10c75c3ddc47df057d5fc275c2.tar.gz chromium_src-7e786822892d2e10c75c3ddc47df057d5fc275c2.tar.bz2 |
[mac] Add "Paste and Match Style" to edit menu
xib change: Added "^IDS_PASTE_MATCH_STYLE_MAC" to edit menu below paste with key equiv cmd-opt-shift-v, hooked up to pasteAsPlainText: on first responder.
BUG=25205
TEST=Cmd-shift-v no longer pastes. Cmd-shift-opt-v does paste, _and_ blinks the menu.
Review URL: http://codereview.chromium.org/371034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31330 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index c4651d9..3a34459 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -757,6 +757,12 @@ void TabContents::Paste() { render_view_host()->Paste(); } +#if defined(OS_MACOSX) +void TabContents::PasteAndMatchStyle() { + render_view_host()->ForwardEditCommand("PasteAndMatchStyle", ""); +} +#endif + void TabContents::DisassociateFromPopupCount() { render_view_host()->DisassociateFromPopupCount(); } |