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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/render_widget_host_view_gtk.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_gtk.cc (revision 25640)
+++ chrome/browser/renderer_host/render_widget_host_view_gtk.cc (working copy)
@@ -524,11 +524,6 @@
gtk_clipboard_set_text(x_clipboard, text.c_str(), text.length());
}
-void RenderWidgetHostViewGtk::PasteFromSelectionClipboard() {
- GtkClipboard* x_clipboard = gtk_clipboard_get(GDK_SELECTION_PRIMARY);
- gtk_clipboard_request_text(x_clipboard, ReceivedSelectionText, this);
-}
-
void RenderWidgetHostViewGtk::ShowingContextMenu(bool showing) {
is_showing_context_menu_ = showing;
}
@@ -614,17 +609,6 @@
gdk_cursor_unref(gdk_cursor);
}
-void RenderWidgetHostViewGtk::ReceivedSelectionText(GtkClipboard* clipboard,
- const gchar* text, gpointer userdata) {
- // If there's nothing to paste (|text| is NULL), do nothing.
- if (!text)
- return;
- RenderWidgetHostViewGtk* host_view =
- reinterpret_cast<RenderWidgetHostViewGtk*>(userdata);
- host_view->host_->Send(new ViewMsg_InsertText(host_view->host_->routing_id(),
- UTF8ToUTF16(text)));
-}
-
void RenderWidgetHostViewGtk::CreatePluginContainer(
gfx::PluginWindowHandle id) {
plugin_container_manager_.CreatePluginContainer(id);
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_gtk.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