summaryrefslogtreecommitdiffstats
path: root/chrome/common/native_web_keyboard_event_mac.mm
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-06-28 21:49:31 +0100
committerKristian Monsen <kristianm@google.com>2011-07-08 17:55:00 +0100
commitddb351dbec246cf1fab5ec20d2d5520909041de1 (patch)
tree158e3fb57bdcac07c7f1e767fde3c70687c9fbb1 /chrome/common/native_web_keyboard_event_mac.mm
parent6b92e04f5f151c896e3088e86f70db7081009308 (diff)
downloadexternal_chromium-ddb351dbec246cf1fab5ec20d2d5520909041de1.zip
external_chromium-ddb351dbec246cf1fab5ec20d2d5520909041de1.tar.gz
external_chromium-ddb351dbec246cf1fab5ec20d2d5520909041de1.tar.bz2
Merge Chromium at r12.0.742.93: Initial merge by git
Change-Id: Ic5ee2fec31358bbee305f7e915442377bfa6cda6
Diffstat (limited to 'chrome/common/native_web_keyboard_event_mac.mm')
-rw-r--r--chrome/common/native_web_keyboard_event_mac.mm56
1 files changed, 0 insertions, 56 deletions
diff --git a/chrome/common/native_web_keyboard_event_mac.mm b/chrome/common/native_web_keyboard_event_mac.mm
deleted file mode 100644
index 1fe53ae..0000000
--- a/chrome/common/native_web_keyboard_event_mac.mm
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/common/native_web_keyboard_event.h"
-
-#import <AppKit/AppKit.h>
-
-#include "third_party/WebKit/Source/WebKit/chromium/public/mac/WebInputEventFactory.h"
-
-using WebKit::WebInputEventFactory;
-
-NativeWebKeyboardEvent::NativeWebKeyboardEvent()
- : os_event(NULL),
- skip_in_browser(false) {
-}
-
-NativeWebKeyboardEvent::NativeWebKeyboardEvent(NSEvent* event)
- : WebKeyboardEvent(WebInputEventFactory::keyboardEvent(event)),
- os_event([event retain]),
- skip_in_browser(false) {
-}
-
-NativeWebKeyboardEvent::NativeWebKeyboardEvent(wchar_t character,
- int modifiers,
- double time_stamp_seconds)
- : WebKeyboardEvent(WebInputEventFactory::keyboardEvent(character,
- modifiers,
- time_stamp_seconds)),
- os_event(NULL),
- skip_in_browser(false) {
-}
-
-NativeWebKeyboardEvent::NativeWebKeyboardEvent(
- const NativeWebKeyboardEvent& other)
- : WebKeyboardEvent(other),
- os_event([other.os_event retain]),
- skip_in_browser(other.skip_in_browser) {
-}
-
-NativeWebKeyboardEvent& NativeWebKeyboardEvent::operator=(
- const NativeWebKeyboardEvent& other) {
- WebKeyboardEvent::operator=(other);
-
- NSObject* previous = os_event;
- os_event = [other.os_event retain];
- [previous release];
-
- skip_in_browser = other.skip_in_browser;
-
- return *this;
-}
-
-NativeWebKeyboardEvent::~NativeWebKeyboardEvent() {
- [os_event release];
-}