File: event_state_manager.cpp

package info (click to toggle)
videolink 1.2.5-1
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 392 kB
  • ctags: 526
  • sloc: cpp: 3,316; ansic: 884; makefile: 127
file content (22 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2008 Ben Hutchings <ben@decadent.org.uk>.
// See the file "COPYING" for licence details.

#ifndef MOZILLA_INTERNAL_API
#define MOZILLA_INTERNAL_API
#endif
#include "wchar_t_short.h"
#include <nsIDocShell.h>
#include <nsPresContext.h>
#include "wchar_t_default.h"

#include "event_state_manager.hpp"
#include "xpcom_support.hpp"

using xpcom_support::check;

nsIEventStateManager * get_event_state_manager(nsIDocShell * doc_shell)
{
    nsCOMPtr<nsPresContext> pres_context;
    check(doc_shell->GetPresContext(getter_AddRefs(pres_context)));
    return pres_context->EventStateManager();
}