2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsScreenManagerCocoa_h_
|
|
|
|
#define nsScreenManagerCocoa_h_
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2009-09-10 12:05:50 -07:00
|
|
|
#include "nsTArray.h"
|
|
|
|
#include "nsAutoPtr.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsIScreenManager.h"
|
|
|
|
#include "nsScreenCocoa.h"
|
|
|
|
|
|
|
|
class nsScreenManagerCocoa : public nsIScreenManager
|
|
|
|
{
|
|
|
|
public:
|
2012-02-21 17:44:40 -08:00
|
|
|
nsScreenManagerCocoa();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSISCREENMANAGER
|
|
|
|
|
2014-07-06 08:25:31 -07:00
|
|
|
protected:
|
|
|
|
virtual ~nsScreenManagerCocoa();
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
private:
|
|
|
|
|
2012-02-21 17:44:40 -08:00
|
|
|
nsScreenCocoa *ScreenForCocoaScreen(NSScreen *screen);
|
2009-09-10 12:05:50 -07:00
|
|
|
nsTArray< nsRefPtr<nsScreenCocoa> > mScreenList;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsScreenManagerCocoa_h_
|