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

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

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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 "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact ory.h" 7 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact ory.h"
8 8
9 using WebKit::WebInputEventFactory; 9 using WebKit::WebInputEventFactory;
10 using WebKit::WebKeyboardEvent; 10 using WebKit::WebKeyboardEvent;
11 11
12 namespace content {
13
12 NativeWebKeyboardEvent::NativeWebKeyboardEvent() 14 NativeWebKeyboardEvent::NativeWebKeyboardEvent()
13 : skip_in_browser(false) { 15 : skip_in_browser(false) {
14 memset(&os_event, 0, sizeof(os_event)); 16 memset(&os_event, 0, sizeof(os_event));
15 } 17 }
16 18
17 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event) 19 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event)
18 : WebKeyboardEvent( 20 : WebKeyboardEvent(
19 WebInputEventFactory::keyboardEvent(native_event.hwnd, 21 WebInputEventFactory::keyboardEvent(native_event.hwnd,
20 native_event.message, 22 native_event.message,
21 native_event.wParam, 23 native_event.wParam,
(...skipping 15 matching lines...) Expand all
37 39
38 os_event = other.os_event; 40 os_event = other.os_event;
39 skip_in_browser = other.skip_in_browser; 41 skip_in_browser = other.skip_in_browser;
40 42
41 return *this; 43 return *this;
42 } 44 }
43 45
44 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() { 46 NativeWebKeyboardEvent::~NativeWebKeyboardEvent() {
45 // Noop under windows 47 // Noop under windows
46 } 48 }
49
50 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/native_web_keyboard_event_mac.mm ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698