widget/cocoa/nsScreenManagerCocoa.h
author Ms2ger <ms2ger@gmail.com>
Sat, 25 Aug 2012 13:18:18 +0200
changeset 103431 941fff75a9e7ec1cee54538af443c1e7e16f1cf7
parent 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 192514 5f27f634ed58d0bfaaf863abee6c3add849f8254
permissions -rw-r--r--
Back out bug 636063, bug 774988 and bug 784647 for busting all of Android.

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsScreenManagerCocoa_h_
#define nsScreenManagerCocoa_h_

#import <Cocoa/Cocoa.h>

#include "nsTArray.h"
#include "nsAutoPtr.h"
#include "nsIScreenManager.h"
#include "nsScreenCocoa.h"

class nsScreenManagerCocoa : public nsIScreenManager
{
public:
    nsScreenManagerCocoa();
    virtual ~nsScreenManagerCocoa();

    NS_DECL_ISUPPORTS
    NS_DECL_NSISCREENMANAGER

private:

    nsScreenCocoa *ScreenForCocoaScreen(NSScreen *screen);
    nsTArray< nsRefPtr<nsScreenCocoa> > mScreenList;
};

#endif // nsScreenManagerCocoa_h_