layout/generic/nsPluginUtilsOSX.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 // vim:set ts=2 sts=2 sw=2 et cin:
michael@0 3 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 // We can use Carbon in this header but not Cocoa. Cocoa pointers must be void.
michael@0 8
michael@0 9 #ifndef __LP64__
michael@0 10 #import <Carbon/Carbon.h>
michael@0 11 #endif
michael@0 12
michael@0 13 #include "nsIWidget.h"
michael@0 14 #include "npapi.h"
michael@0 15
michael@0 16 struct nsRect;
michael@0 17
michael@0 18 // We use void pointers to avoid exporting native event types to cross-platform code.
michael@0 19
michael@0 20 #ifndef __LP64__
michael@0 21 // Get the rect for an entire top-level Carbon window in screen coords.
michael@0 22 void NS_NPAPI_CarbonWindowFrame(WindowRef aWindow, nsRect& outRect);
michael@0 23 #endif
michael@0 24
michael@0 25 // Get the rect for an entire top-level Cocoa window in screen coords.
michael@0 26 void NS_NPAPI_CocoaWindowFrame(void* aWindow, nsRect& outRect);
michael@0 27
michael@0 28 // Returns whether or not a Cocoa NSWindow has main status.
michael@0 29 bool NS_NPAPI_CocoaWindowIsMain(void* aWindow);
michael@0 30
michael@0 31 // Puts up a Cocoa context menu (NSMenu) for a particular NPCocoaEvent.
michael@0 32 NPError NS_NPAPI_ShowCocoaContextMenu(void* menu, nsIWidget* widget, NPCocoaEvent* event);
michael@0 33
michael@0 34 NPBool NS_NPAPI_ConvertPointCocoa(void* inView,
michael@0 35 double sourceX, double sourceY, NPCoordinateSpace sourceSpace,
michael@0 36 double *destX, double *destY, NPCoordinateSpace destSpace);
michael@0 37

mercurial