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

Unified Diff: chrome/browser/ui/views/frame/browser_view.h

Issue 11734015: Fix clipboard operations through the wrench menu not working in the find bar or other controls. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: make work with devtools Created 7 years, 12 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 | « no previous file | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.h
===================================================================
--- chrome/browser/ui/views/frame/browser_view.h (revision 174803)
+++ chrome/browser/ui/views/frame/browser_view.h (working copy)
@@ -564,10 +564,23 @@
// Create an icon for this window in the launcher (currently only for Ash).
void CreateLauncherIcon();
- // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste
- // and returns true if the focus is currently on a WebContent.
- bool DoCutCopyPaste(void (content::RenderWidgetHost::*method)());
+ // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste,
+ // first trying the content WebContents, then the devtools WebContents, and
+ // lastly the Views::Textfield if one is focused.
+ // |windows_msg_id| is temporary until Win Aura is the default on Windows,
+ // since until then the omnibox doesn't use Views::Textfield.
+ void DoCutCopyPaste(void (content::RenderWidgetHost::*method)(),
+#if defined(OS_WIN)
+ int windows_msg_id,
+#endif
+ int command_id);
+ // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste on
+ // the given WebContents, returning true if it consumed the event.
+ bool DoCutCopyPasteForWebContents(
+ content::WebContents* contents,
+ void (content::RenderWidgetHost::*method)());
+
// Shows the next app-modal dialog box, if there is one to be shown, or moves
// an existing showing one to the front.
void ActivateAppModalDialog() const;
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698