Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: include/AdblockPlus/Notification.h

Issue 5598762307158016: Issue 1550 - Get rid of V8ValueHolder.h (Closed)
Patch Set: rebase Created Aug. 3, 2015, 8:28 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/AdblockPlus/JsValue.h ('k') | include/AdblockPlus/V8ValueHolder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 24 matching lines...) Expand all
35 NOTIFICATION_TYPE_CRITICAL 35 NOTIFICATION_TYPE_CRITICAL
36 }; 36 };
37 37
38 /** 38 /**
39 * Wrapper for an Adblock Plus notification object. 39 * Wrapper for an Adblock Plus notification object.
40 */ 40 */
41 class Notification: public JsValue 41 class Notification: public JsValue
42 { 42 {
43 friend class FilterEngine; 43 friend class FilterEngine;
44 protected: 44 protected:
45 static std::tr1::shared_ptr<Notification> JsValueToNotification(const JsValu ePtr& jsValue); 45 static std::tr1::shared_ptr<Notification> JsValueToNotification(JsValue&& js Value);
46 /** 46 /**
47 * Constructor. 47 * Constructor.
48 * @param jsValue `JsValuePtr` notification JavaScript object. 48 * @param jsValue `JsValuePtr` notification JavaScript object.
49 */ 49 */
50 explicit Notification(const JsValuePtr& jsValue); 50 explicit Notification(JsValue&& jsValue);
51 public: 51 public:
52 /** 52 /**
53 * Retrieves the type of this notification. 53 * Retrieves the type of this notification.
54 * @return Type of this notification. 54 * @return Type of this notification.
55 */ 55 */
56 NotificationType GetType() const; 56 NotificationType GetType() const;
57 57
58 /** 58 /**
59 * Retrieves the title of this notification. 59 * Retrieves the title of this notification.
60 * @return Title of this notification. 60 * @return Title of this notification.
(...skipping 19 matching lines...) Expand all
80 void MarkAsShown(); 80 void MarkAsShown();
81 private: 81 private:
82 std::string title; 82 std::string title;
83 std::string message; 83 std::string message;
84 NotificationType type; 84 NotificationType type;
85 }; 85 };
86 typedef std::tr1::shared_ptr<Notification> NotificationPtr; 86 typedef std::tr1::shared_ptr<Notification> NotificationPtr;
87 } 87 }
88 88
89 #endif 89 #endif
OLDNEW
« no previous file with comments | « include/AdblockPlus/JsValue.h ('k') | include/AdblockPlus/V8ValueHolder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld