diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-01 21:03:08 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-01 21:03:08 +0000 |
commit | 8bbe7efe110336916c819fdc7f5566afa3a97495 (patch) | |
tree | 6d473efd35ca0f48584dd3254e8b4e5ebd708fbb /webkit/tools/test_shell/test_webview_delegate.h | |
parent | d294668d4c62e94c342cff58b1096af8106113ef (diff) | |
download | chromium_src-8bbe7efe110336916c819fdc7f5566afa3a97495.zip chromium_src-8bbe7efe110336916c819fdc7f5566afa3a97495.tar.gz chromium_src-8bbe7efe110336916c819fdc7f5566afa3a97495.tar.bz2 |
Enable the X selection clipboard for copying html and text out of a linux test shell.
I implemented it in the webview delegate, so when we switch to the
multiprocess architecture, we will need to find out if the clipboard callback
can be async (the current method would require a sync call from browser to
renderer to get the selected text).
Review URL: http://codereview.chromium.org/12700
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.h')
-rw-r--r-- | webkit/tools/test_shell/test_webview_delegate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.h b/webkit/tools/test_shell/test_webview_delegate.h index df214bd..bc8d226 100644 --- a/webkit/tools/test_shell/test_webview_delegate.h +++ b/webkit/tools/test_shell/test_webview_delegate.h @@ -176,7 +176,7 @@ class TestWebViewDelegate : public base::RefCounted<TestWebViewDelegate>, std::wstring range); virtual bool SmartInsertDeleteEnabled(); virtual void DidBeginEditing(); - virtual void DidChangeSelection(); + virtual void DidChangeSelection(bool is_empty_selection); virtual void DidChangeContents(); virtual void DidEndEditing(); @@ -269,6 +269,7 @@ class TestWebViewDelegate : public base::RefCounted<TestWebViewDelegate>, void UpdateForCommittedLoad(WebFrame* webframe, bool is_new_navigation); void UpdateURL(WebFrame* frame); void UpdateSessionHistory(WebFrame* frame); + void UpdateSelectionClipboard(bool is_empty_selection); // Get a string suitable for dumping a frame to the console. std::wstring GetFrameDescription(WebFrame* webframe); |