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

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

Issue 174367: Change the ChromiumPasteboard to have a notion of an alternate clipboard... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 | Annotate | Revision Log
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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 OnDidGetApplicationInfo); 818 OnDidGetApplicationInfo);
819 IPC_MESSAGE_FORWARD(ViewHostMsg_JSOutOfMemory, delegate_, 819 IPC_MESSAGE_FORWARD(ViewHostMsg_JSOutOfMemory, delegate_,
820 RenderViewHostDelegate::OnJSOutOfMemory); 820 RenderViewHostDelegate::OnJSOutOfMemory);
821 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK); 821 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK);
822 IPC_MESSAGE_HANDLER(ViewHostMsg_QueryFormFieldAutofill, 822 IPC_MESSAGE_HANDLER(ViewHostMsg_QueryFormFieldAutofill,
823 OnQueryFormFieldAutofill) 823 OnQueryFormFieldAutofill)
824 IPC_MESSAGE_HANDLER(ViewHostMsg_RemoveAutofillEntry, 824 IPC_MESSAGE_HANDLER(ViewHostMsg_RemoveAutofillEntry,
825 OnRemoveAutofillEntry) 825 OnRemoveAutofillEntry)
826 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionRequest, OnExtensionRequest) 826 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionRequest, OnExtensionRequest)
827 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnMsgSelectionChanged) 827 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnMsgSelectionChanged)
828 IPC_MESSAGE_HANDLER(ViewHostMsg_PasteFromSelectionClipboard,
829 OnMsgPasteFromSelectionClipboard)
830 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionPostMessage, 828 IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionPostMessage,
831 OnExtensionPostMessage) 829 OnExtensionPostMessage)
832 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityFocusChange, 830 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityFocusChange,
833 OnAccessibilityFocusChange) 831 OnAccessibilityFocusChange)
834 IPC_MESSAGE_HANDLER(ViewHostMsg_OnCSSInserted, OnCSSInserted) 832 IPC_MESSAGE_HANDLER(ViewHostMsg_OnCSSInserted, OnCSSInserted)
835 // Have the super handle all other messages. 833 // Have the super handle all other messages.
836 IPC_MESSAGE_UNHANDLED(RenderWidgetHost::OnMessageReceived(msg)) 834 IPC_MESSAGE_UNHANDLED(RenderWidgetHost::OnMessageReceived(msg))
837 IPC_END_MESSAGE_MAP_EX() 835 IPC_END_MESSAGE_MAP_EX()
838 836
839 if (!msg_is_ok) { 837 if (!msg_is_ok) {
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 } 1253 }
1256 if (view()) 1254 if (view())
1257 view()->SetTooltipText(wrapped_tooltip_text); 1255 view()->SetTooltipText(wrapped_tooltip_text);
1258 } 1256 }
1259 1257
1260 void RenderViewHost::OnMsgSelectionChanged(const std::string& text) { 1258 void RenderViewHost::OnMsgSelectionChanged(const std::string& text) {
1261 if (view()) 1259 if (view())
1262 view()->SelectionChanged(text); 1260 view()->SelectionChanged(text);
1263 } 1261 }
1264 1262
1265 void RenderViewHost::OnMsgPasteFromSelectionClipboard() {
1266 if (view())
1267 view()->PasteFromSelectionClipboard();
1268 }
1269
1270 void RenderViewHost::OnMsgRunFileChooser(bool multiple_files, 1263 void RenderViewHost::OnMsgRunFileChooser(bool multiple_files,
1271 const string16& title, 1264 const string16& title,
1272 const FilePath& default_file) { 1265 const FilePath& default_file) {
1273 delegate_->RunFileChooser(multiple_files, title, default_file); 1266 delegate_->RunFileChooser(multiple_files, title, default_file);
1274 } 1267 }
1275 1268
1276 void RenderViewHost::OnMsgRunJavaScriptMessage( 1269 void RenderViewHost::OnMsgRunJavaScriptMessage(
1277 const std::wstring& message, 1270 const std::wstring& message,
1278 const std::wstring& default_prompt, 1271 const std::wstring& default_prompt,
1279 const GURL& frame_url, 1272 const GURL& frame_url,
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 } 1649 }
1657 1650
1658 void RenderViewHost::ResetModalDialogEvent() { 1651 void RenderViewHost::ResetModalDialogEvent() {
1659 if (--modal_dialog_count_ == 0) 1652 if (--modal_dialog_count_ == 0)
1660 modal_dialog_event_->Reset(); 1653 modal_dialog_event_->Reset();
1661 } 1654 }
1662 1655
1663 void RenderViewHost::UpdateBrowserWindowId(int window_id) { 1656 void RenderViewHost::UpdateBrowserWindowId(int window_id) {
1664 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); 1657 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id));
1665 } 1658 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | chrome/browser/renderer_host/render_widget_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698