~osomon/oxide/i18n

« back to all changes in this revision

Viewing changes to shared/common/oxide_message_enums.h

  • Committer: Olivier Tilloy
  • Date: 2014-03-20 12:20:00 UTC
  • mfrom: (312.2.111 oxide)
  • Revision ID: olivier.tilloy@canonical.com-20140320122000-s57xcaubm268o9n4
Merged the latest changes from trunk and resolved a conflict.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 public:
23
23
  enum Value {
24
24
    Message,
 
25
    MessageNoReply,
25
26
    Reply
26
27
  };
27
28
 
28
29
  static bool is_valid(int type) {
29
 
    return type == Message || type == Reply;
 
30
    return type == Message || type == MessageNoReply || type == Reply;
30
31
  }
31
32
};
32
33
 
33
 
struct OxideMsg_SendMessage_Error {
34
 
 public:
35
 
  enum Value {
36
 
    OK,
37
 
 
38
 
    // The frame ID or world name were invalid
39
 
    INVALID_DESTINATION,
40
 
 
41
 
    // The message handler threw an error
42
 
    UNCAUGHT_EXCEPTION,
43
 
 
44
 
    // No handler was registered for this message
45
 
    NO_HANDLER,
46
 
 
47
 
    // The handler reported an error
48
 
    HANDLER_REPORTED_ERROR,
49
 
 
50
 
    // The frame disappeared before sending a response was sent
51
 
    // (only valid for embedder to content script messages, and
52
 
    //  never actually sent across the wire)
53
 
    FRAME_DISAPPEARED,
54
 
  };
55
 
};
56
 
 
57
34
#endif // _OXIDE_SHARED_COMMON_MESSAGE_ENUMS_H_