dom/plugins/ipc/hangui/PluginHangUI.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/ipc/hangui/PluginHangUI.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,54 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 et sw=2 tw=80: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef mozilla_plugins_PluginHangUI_h
    1.11 +#define mozilla_plugins_PluginHangUI_h
    1.12 +
    1.13 +namespace mozilla {
    1.14 +namespace plugins {
    1.15 +
    1.16 +enum HangUIUserResponse
    1.17 +{
    1.18 +  HANGUI_USER_RESPONSE_CANCEL = 1,
    1.19 +  HANGUI_USER_RESPONSE_CONTINUE = 2,
    1.20 +  HANGUI_USER_RESPONSE_STOP = 4,
    1.21 +  HANGUI_USER_RESPONSE_DONT_SHOW_AGAIN = 8
    1.22 +};
    1.23 +
    1.24 +enum PluginHangUIStructID
    1.25 +{
    1.26 +  PLUGIN_HANGUI_COMMAND = 0x10,
    1.27 +  PLUGIN_HANGUI_RESULT
    1.28 +};
    1.29 +
    1.30 +struct PluginHangUICommand
    1.31 +{
    1.32 +  enum
    1.33 +  {
    1.34 +    identifier = PLUGIN_HANGUI_COMMAND
    1.35 +  };
    1.36 +  enum CmdCode
    1.37 +  {
    1.38 +    HANGUI_CMD_SHOW = 1,
    1.39 +    HANGUI_CMD_CANCEL = 2
    1.40 +  };
    1.41 +  CmdCode mCode;
    1.42 +};
    1.43 +
    1.44 +struct PluginHangUIResponse
    1.45 +{
    1.46 +  enum
    1.47 +  {
    1.48 +    identifier = PLUGIN_HANGUI_RESULT
    1.49 +  };
    1.50 +  unsigned int  mResponseBits;
    1.51 +};
    1.52 +
    1.53 +} // namespace plugins
    1.54 +} // namespace mozilla
    1.55 +
    1.56 +#endif // mozilla_plugins_PluginHangUI_h
    1.57 +

mercurial