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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 } 527 }
528 528
529 void RenderViewHost::Cut() { 529 void RenderViewHost::Cut() {
530 Send(new ViewMsg_Cut(routing_id())); 530 Send(new ViewMsg_Cut(routing_id()));
531 } 531 }
532 532
533 void RenderViewHost::Copy() { 533 void RenderViewHost::Copy() {
534 Send(new ViewMsg_Copy(routing_id())); 534 Send(new ViewMsg_Copy(routing_id()));
535 } 535 }
536 536
537 void RenderViewHost::CopyToFindPboard() {
538 #if defined(OS_MACOSX)
539 // Windows/Linux don't have the concept of a find pasteboard.
540 Send(new ViewMsg_CopyToFindPboard(routing_id()));
541 #endif
542 }
543
537 void RenderViewHost::Paste() { 544 void RenderViewHost::Paste() {
538 Send(new ViewMsg_Paste(routing_id())); 545 Send(new ViewMsg_Paste(routing_id()));
539 } 546 }
540 547
541 void RenderViewHost::Replace(const std::wstring& text_to_replace) { 548 void RenderViewHost::Replace(const std::wstring& text_to_replace) {
542 Send(new ViewMsg_Replace(routing_id(), text_to_replace)); 549 Send(new ViewMsg_Replace(routing_id(), text_to_replace));
543 } 550 }
544 551
545 void RenderViewHost::ToggleSpellCheck() { 552 void RenderViewHost::ToggleSpellCheck() {
546 Send(new ViewMsg_ToggleSpellCheck(routing_id())); 553 Send(new ViewMsg_ToggleSpellCheck(routing_id()));
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 } 1667 }
1661 1668
1662 void RenderViewHost::ResetModalDialogEvent() { 1669 void RenderViewHost::ResetModalDialogEvent() {
1663 if (--modal_dialog_count_ == 0) 1670 if (--modal_dialog_count_ == 0)
1664 modal_dialog_event_->Reset(); 1671 modal_dialog_event_->Reset();
1665 } 1672 }
1666 1673
1667 void RenderViewHost::UpdateBrowserWindowId(int window_id) { 1674 void RenderViewHost::UpdateBrowserWindowId(int window_id) {
1668 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); 1675 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id));
1669 } 1676 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698