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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view_mac.mm

Issue 197035: [mac] Let cmd-e write the selection into the find pasteboard. (Closed)
Patch Set: Add comment, merge with ToT Created 11 years, 3 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 | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/tab_contents/tab_contents_view_mac.h" 5 #include "chrome/browser/tab_contents/tab_contents_view_mac.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful. 9 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful.
10 #include "chrome/browser/cocoa/sad_tab_view.h" 10 #include "chrome/browser/cocoa/sad_tab_view.h"
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // WebCore. 329 // WebCore.
330 330
331 - (void)cut:(id)sender { 331 - (void)cut:(id)sender {
332 [self tabContents]->Cut(); 332 [self tabContents]->Cut();
333 } 333 }
334 334
335 - (void)copy:(id)sender { 335 - (void)copy:(id)sender {
336 [self tabContents]->Copy(); 336 [self tabContents]->Copy();
337 } 337 }
338 338
339 - (void)copyToFindPboard:(id)sender {
340 [self tabContents]->CopyToFindPboard();
341 }
342
339 - (void)paste:(id)sender { 343 - (void)paste:(id)sender {
340 [self tabContents]->Paste(); 344 [self tabContents]->Paste();
341 } 345 }
342 346
343 - (void)pasteboard:(NSPasteboard*)sender provideDataForType:(NSString*)type { 347 - (void)pasteboard:(NSPasteboard*)sender provideDataForType:(NSString*)type {
344 [dragSource_ lazyWriteToPasteboard:sender 348 [dragSource_ lazyWriteToPasteboard:sender
345 forType:type]; 349 forType:type];
346 } 350 }
347 351
348 - (void)startDragWithDropData:(const WebDropData&)dropData 352 - (void)startDragWithDropData:(const WebDropData&)dropData
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 409 }
406 410
407 - (BOOL)performDragOperation:(id<NSDraggingInfo>)sender { 411 - (BOOL)performDragOperation:(id<NSDraggingInfo>)sender {
408 return [dropTarget_ performDragOperation:sender view:self]; 412 return [dropTarget_ performDragOperation:sender view:self];
409 } 413 }
410 414
411 // Tons of stuff goes here, where we grab events going on in Cocoaland and send 415 // Tons of stuff goes here, where we grab events going on in Cocoaland and send
412 // them into the C++ system. TODO(avi): all that jazz 416 // them into the C++ system. TODO(avi): all that jazz
413 417
414 @end 418 @end
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698