summaryrefslogtreecommitdiffstats
path: root/dom/plugins/ipc/hangui/PluginHangUI.h
blob: 7500601e6947b81684665dd84fcbfd7f75c367d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 mozilla_plugins_PluginHangUI_h
#define mozilla_plugins_PluginHangUI_h

namespace mozilla {
namespace plugins {

enum HangUIUserResponse
{
  HANGUI_USER_RESPONSE_CANCEL = 1,
  HANGUI_USER_RESPONSE_CONTINUE = 2,
  HANGUI_USER_RESPONSE_STOP = 4,
  HANGUI_USER_RESPONSE_DONT_SHOW_AGAIN = 8
};

enum PluginHangUIStructID
{
  PLUGIN_HANGUI_COMMAND = 0x10,
  PLUGIN_HANGUI_RESULT
};

struct PluginHangUICommand
{
  enum
  {
    identifier = PLUGIN_HANGUI_COMMAND
  };
  enum CmdCode
  {
    HANGUI_CMD_SHOW = 1,
    HANGUI_CMD_CANCEL = 2
  };
  CmdCode mCode;
};

struct PluginHangUIResponse
{
  enum
  {
    identifier = PLUGIN_HANGUI_RESULT
  };
  unsigned int  mResponseBits;
};

} // namespace plugins
} // namespace mozilla

#endif // mozilla_plugins_PluginHangUI_h