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

Side by Side Diff: content/browser/renderer_host/native_web_keyboard_event_aura.cc

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/native_web_keyboard_event.h" 5 #include "content/public/browser/native_web_keyboard_event.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/web_input_event_aura.h" 8 #include "content/browser/renderer_host/web_input_event_aura.h"
9 #include "ui/base/event.h" 9 #include "ui/base/events/event.h"
10 10
11 namespace { 11 namespace {
12 12
13 // We need to copy |os_event| in NativeWebKeyboardEvent because it is 13 // We need to copy |os_event| in NativeWebKeyboardEvent because it is
14 // queued in RenderWidgetHost and may be passed and used 14 // queued in RenderWidgetHost and may be passed and used
15 // RenderViewHostDelegate::HandledKeybardEvent after the original aura 15 // RenderViewHostDelegate::HandledKeybardEvent after the original aura
16 // event is destroyed. 16 // event is destroyed.
17 ui::Event* CopyEvent(ui::Event* event) { 17 ui::Event* CopyEvent(ui::Event* event) {
18 return event ? static_cast<ui::KeyEvent*>(event)->Copy() : NULL; 18 return event ? static_cast<ui::KeyEvent*>(event)->Copy() : NULL;
19 } 19 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 skip_in_browser = other.skip_in_browser; 88 skip_in_browser = other.skip_in_browser;
89 89
90 return *this; 90 return *this;
91 } 91 }
92 92
93 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { 93 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() {
94 delete os_event; 94 delete os_event;
95 } 95 }
96 96
97 } // namespace content 97 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698