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