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

Unified Diff: chrome/renderer/render_view.h

Issue 55052: Copy selection to x clipboard. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
===================================================================
--- chrome/renderer/render_view.h (revision 13031)
+++ chrome/renderer/render_view.h (working copy)
@@ -280,6 +280,9 @@
virtual void OnNavStateChanged(WebView* webview);
virtual void SetTooltipText(WebView* webview,
const std::wstring& tooltip_text);
+ // Called when the text selection changed. This is only called on linux since
+ // on other platforms the RenderView doesn't act as an editor client delegate.
+ virtual void DidChangeSelection(bool is_empty_selection);
virtual void DownloadUrl(const GURL& url, const GURL& referrer);
@@ -593,6 +596,9 @@
void OnHandleExtensionMessage(const std::string& message, int channel_id);
+ // Sends the selection text to the browser.
+ void OnRequestSelectionText();
+
// Prints the page listed in |params|.
void PrintPage(const ViewMsg_PrintPage_Params& params,
const gfx::Size& canvas_size,
@@ -815,6 +821,10 @@
// Maps pending callback IDs to their frames.
IDMap<WebFrame> pending_extension_callbacks_;
+ // The currently selected text. This is currently only updated on Linux, where
+ // it's for the selection clipboard.
+ std::string selection_text_;
+
DISALLOW_COPY_AND_ASSIGN(RenderView);
};
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698