Release versions 1.2.11 and 1.2.11-1
[videolink.git] / event_state_manager.cpp
1 // Copyright 2008 Ben Hutchings <ben@decadent.org.uk>.
2 // See the file "COPYING" for licence details.
3
4 #ifndef MOZILLA_INTERNAL_API
5 #define MOZILLA_INTERNAL_API
6 #endif
7 #include "wchar_t_short.h"
8 #include <nsIDocShell.h>
9 #include <nsPresContext.h>
10 #include "wchar_t_default.h"
11
12 #include "event_state_manager.hpp"
13 #include "xpcom_support.hpp"
14
15 using xpcom_support::check;
16
17 nsIEventStateManager * get_event_state_manager(nsIDocShell * doc_shell)
18 {
19     nsCOMPtr<nsPresContext> pres_context;
20     check(doc_shell->GetPresContext(getter_AddRefs(pres_context)));
21     return pres_context->EventStateManager();
22 }