mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
--HG-- rename : embedding/components/windowwatcher/src/nsAutoWindowStateHelper.cpp => embedding/components/windowwatcher/nsAutoWindowStateHelper.cpp rename : embedding/components/windowwatcher/src/nsAutoWindowStateHelper.h => embedding/components/windowwatcher/nsAutoWindowStateHelper.h rename : embedding/components/windowwatcher/src/nsDialogParamBlock.cpp => embedding/components/windowwatcher/nsDialogParamBlock.cpp rename : embedding/components/windowwatcher/src/nsDialogParamBlock.h => embedding/components/windowwatcher/nsDialogParamBlock.h rename : embedding/components/windowwatcher/public/nsIDialogParamBlock.idl => embedding/components/windowwatcher/nsIDialogParamBlock.idl rename : embedding/components/windowwatcher/public/nsIPromptFactory.idl => embedding/components/windowwatcher/nsIPromptFactory.idl rename : embedding/components/windowwatcher/public/nsIPromptService.idl => embedding/components/windowwatcher/nsIPromptService.idl rename : embedding/components/windowwatcher/public/nsIPromptService2.idl => embedding/components/windowwatcher/nsIPromptService2.idl rename : embedding/components/windowwatcher/public/nsIWindowWatcher.idl => embedding/components/windowwatcher/nsIWindowWatcher.idl rename : embedding/components/windowwatcher/public/nsPIPromptService.idl => embedding/components/windowwatcher/nsPIPromptService.idl rename : embedding/components/windowwatcher/public/nsPIWindowWatcher.idl => embedding/components/windowwatcher/nsPIWindowWatcher.idl rename : embedding/components/windowwatcher/public/nsPromptUtils.h => embedding/components/windowwatcher/nsPromptUtils.h rename : embedding/components/windowwatcher/src/nsWindowWatcher.cpp => embedding/components/windowwatcher/nsWindowWatcher.cpp rename : embedding/components/windowwatcher/src/nsWindowWatcher.h => embedding/components/windowwatcher/nsWindowWatcher.h
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
/* -*- 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 __nsDialogParamBlock_h
|
|
#define __nsDialogParamBlock_h
|
|
|
|
#include "nsIDialogParamBlock.h"
|
|
#include "nsIMutableArray.h"
|
|
#include "nsCOMPtr.h"
|
|
|
|
// {4E4AAE11-8901-46cc-8217-DAD7C5415873}
|
|
#define NS_DIALOGPARAMBLOCK_CID \
|
|
{0x4e4aae11, 0x8901, 0x46cc, {0x82, 0x17, 0xda, 0xd7, 0xc5, 0x41, 0x58, 0x73}}
|
|
|
|
class nsString;
|
|
|
|
class nsDialogParamBlock: public nsIDialogParamBlock
|
|
{
|
|
public:
|
|
nsDialogParamBlock();
|
|
|
|
NS_DECL_NSIDIALOGPARAMBLOCK
|
|
NS_DECL_ISUPPORTS
|
|
|
|
protected:
|
|
virtual ~nsDialogParamBlock();
|
|
|
|
private:
|
|
|
|
enum {kNumInts = 8, kNumStrings = 16};
|
|
|
|
nsresult InBounds(int32_t inIndex, int32_t inMax) {
|
|
return inIndex >= 0 && inIndex < inMax ? NS_OK : NS_ERROR_ILLEGAL_VALUE;
|
|
}
|
|
|
|
int32_t mInt[kNumInts];
|
|
int32_t mNumStrings;
|
|
nsString* mString;
|
|
nsCOMPtr<nsIMutableArray> mObjects;
|
|
};
|
|
|
|
#endif
|
|
|