Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/toolkit/components/windowwatcher/nsDialogParamBlock.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef __nsDialogParamBlock_h
8
#define __nsDialogParamBlock_h
9
10
#include "nsIDialogParamBlock.h"
11
#include "nsIMutableArray.h"
12
#include "nsCOMPtr.h"
13
#include "nsStringFwd.h"
14
15
// {4E4AAE11-8901-46cc-8217-DAD7C5415873}
16
#define NS_DIALOGPARAMBLOCK_CID \
17
  {0x4e4aae11, 0x8901, 0x46cc, {0x82, 0x17, 0xda, 0xd7, 0xc5, 0x41, 0x58, 0x73}}
18
19
class nsDialogParamBlock : public nsIDialogParamBlock
20
{
21
public:
22
  nsDialogParamBlock();
23
24
  NS_DECL_NSIDIALOGPARAMBLOCK
25
  NS_DECL_ISUPPORTS
26
27
protected:
28
  virtual ~nsDialogParamBlock();
29
30
private:
31
  enum { kNumInts = 8, kNumStrings = 16 };
32
33
  nsresult InBounds(int32_t aIndex, int32_t aMax)
34
0
  {
35
0
    return aIndex >= 0 && aIndex < aMax ? NS_OK : NS_ERROR_ILLEGAL_VALUE;
36
0
  }
37
38
  int32_t mInt[kNumInts];
39
  int32_t mNumStrings;
40
  nsString* mString;
41
  nsCOMPtr<nsIMutableArray> mObjects;
42
};
43
44
#endif