| Index: content/browser/renderer_host/input/web_input_event_builders_mac.h
|
| diff --git a/content/browser/renderer_host/input/web_input_event_builders_mac.h b/content/browser/renderer_host/input/web_input_event_builders_mac.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..91bf3abc9748f7d623e5af8f1b7ff5414e4fa994
|
| --- /dev/null
|
| +++ b/content/browser/renderer_host/input/web_input_event_builders_mac.h
|
| @@ -0,0 +1,47 @@
|
| +// Copyright 2015 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.
|
| +
|
| +#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_
|
| +#define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_
|
| +
|
| +#include "content/common/content_export.h"
|
| +#include "third_party/WebKit/public/web/WebInputEvent.h"
|
| +
|
| +#ifdef __OBJC__
|
| +@class NSEvent;
|
| +@class NSView;
|
| +#else
|
| +class NSEvent;
|
| +class NSView;
|
| +#endif
|
| +
|
| +namespace content {
|
| +
|
| +class CONTENT_EXPORT WebKeyboardEventBuilder {
|
| + public:
|
| + static blink::WebKeyboardEvent Build(NSEvent*);
|
| + static bool isSystemKeyEvent(const blink::WebKeyboardEvent&);
|
| +};
|
| +
|
| +class CONTENT_EXPORT WebMouseEventBuilder {
|
| + public:
|
| + static blink::WebMouseEvent Build(NSEvent*, NSView*);
|
| +};
|
| +
|
| +class CONTENT_EXPORT WebMouseWheelEventBuilder {
|
| + public:
|
| + static blink::WebMouseWheelEvent Build(NSEvent*,
|
| + NSView*,
|
| + bool canRubberbandLeft,
|
| + bool canRubberbandRight);
|
| +};
|
| +
|
| +class CONTENT_EXPORT WebGestureEventBuilder {
|
| + public:
|
| + static blink::WebGestureEvent Build(NSEvent*, NSView*);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_MAC_H_
|
|
|