summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 23:34:24 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 23:34:24 +0000
commitd1a5941efcd68dddd76d411f276353f34bb93f76 (patch)
tree95030e03f2e5dd16b0fab9da3b8fc4bd64d25b96 /chrome/browser/browser.cc
parent874755ab46efe9e3b84b4c6b479e5dc813e93445 (diff)
downloadchromium_src-d1a5941efcd68dddd76d411f276353f34bb93f76.zip
chromium_src-d1a5941efcd68dddd76d411f276353f34bb93f76.tar.gz
chromium_src-d1a5941efcd68dddd76d411f276353f34bb93f76.tar.bz2
linux: More automation porting.
I have verified that this is working on Linux, but still have yet to enable any new automated tests. Baby steps. BUG=19076 Review URL: http://codereview.chromium.org/164446 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index c6c7ce6..8183090 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -1015,12 +1015,14 @@ void Browser::OverrideEncoding(int encoding_id) {
void Browser::Cut() {
UserMetrics::RecordAction(L"Cut", profile_);
- ui_controls::SendKeyPress(L'X', true, false, false);
+ ui_controls::SendKeyPress(window()->GetNativeHandle(), L'X', true, false,
+ false);
}
void Browser::Copy() {
UserMetrics::RecordAction(L"Copy", profile_);
- ui_controls::SendKeyPress(L'C', true, false, false);
+ ui_controls::SendKeyPress(window()->GetNativeHandle(), L'C', true, false,
+ false);
}
void Browser::CopyCurrentPageURL() {
@@ -1049,7 +1051,8 @@ void Browser::CopyCurrentPageURL() {
void Browser::Paste() {
UserMetrics::RecordAction(L"Paste", profile_);
- ui_controls::SendKeyPress(L'V', true, false, false);
+ ui_controls::SendKeyPress(window()->GetNativeHandle(), L'V', true, false,
+ false);
}
#endif // #if defined(OS_WIN)