summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 15:17:16 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 15:17:16 +0000
commita5d28334fcea7a34558d3c2afe6155dcd8379edc (patch)
tree6e1b2847280c063c7540a3ab8015f53c90ee4c5e /chrome/browser
parent1a23de4b231696732f497bbdabea6929aaff4d21 (diff)
downloadchromium_src-a5d28334fcea7a34558d3c2afe6155dcd8379edc.zip
chromium_src-a5d28334fcea7a34558d3c2afe6155dcd8379edc.tar.gz
chromium_src-a5d28334fcea7a34558d3c2afe6155dcd8379edc.tar.bz2
Implement undo/redo so they will be properly enabled when the web content has focus.
BUG=26112 TEST=per bug. Review URL: http://codereview.chromium.org/355016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/tab_contents/tab_contents_view_mac.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm
index d8bb0ea..0170dbe 100644
--- a/chrome/browser/tab_contents/tab_contents_view_mac.mm
+++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm
@@ -403,6 +403,14 @@ void TabContentsViewMac::Observe(NotificationType type,
forType:type];
}
+- (void)undo:(id)sender {
+ [self tabContents]->render_view_host()->Undo();
+}
+
+- (void)redo:(id)sender {
+ [self tabContents]->render_view_host()->Redo();
+}
+
- (void)startDragWithDropData:(const WebDropData&)dropData
dragOperationMask:(NSDragOperation)operationMask {
dragSource_.reset([[WebDragSource alloc]