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

Unified Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 97963002: events: Remove KeyEvent::Copy(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
index 5e5cf4a271c6c17bbfea0315b34615bd972c7c66..9fef8cfa87c4c74b00aeff8b89dba68ab30d3245 100644
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
@@ -820,8 +820,8 @@ bool DesktopRootWindowHostWin::HandleKeyEvent(const ui::KeyEvent& event) {
bool DesktopRootWindowHostWin::HandleUntranslatedKeyEvent(
const ui::KeyEvent& event) {
- scoped_ptr<ui::KeyEvent> duplicate_event(event.Copy());
- return delegate_->OnHostKeyEvent(duplicate_event.get());
+ ui::KeyEvent duplicate_event(event);
+ return delegate_->OnHostKeyEvent(&duplicate_event);
}
void DesktopRootWindowHostWin::HandleTouchEvent(
« chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('K') | « ui/events/event_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698