FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
MacEventCarbon.h
1 /**********************************************************\
2 Original Author: Richard Bateman (taxilian)
3 
4 Created: Oct 19, 2009
5 License: Dual license model; choose one of two:
6  New BSD License
7  http://www.opensource.org/licenses/bsd-license.php
8  - or -
9  GNU Lesser General Public License, version 2.1
10  http://www.gnu.org/licenses/lgpl-2.1.html
11 
12 Copyright 2009 PacketPass, Inc and the Firebreath development team
13 \**********************************************************/
14 
15 #pragma once
16 #ifndef H_FB_EVENTS_MACEVENTCARBON
17 #define H_FB_EVENTS_MACEVENTCARBON
18 
19 #ifndef XP_MACOSX
20 #define NPCocoaEvent void*
21 #define EventRecord NPEvent
22 #else
23 #include "npapi.h"
24 #include <boost/type_traits.hpp>
25 #include <Carbon/Carbon.h>
26 #endif
27 
28 #include "PluginEvent.h"
29 
30 namespace FB {
31 
37  class MacEventCarbon : public PluginEvent
38  {
39  public:
40  MacEventCarbon(EventRecord *src)
41  {
42  memcpy(&msg, src, sizeof(EventRecord));
43  }
44 
45  public:
46  EventRecord msg;
47  NPCocoaEvent msgCocoa;
48  };
49 };
50 
51 #endif
52 
Carbon Mac event.
Plugin event base class.
Definition: PluginEvent.h:36