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

Issue 5797488346791936: Issue 1107 - Support notifications (Closed)

Created:
Jan. 19, 2015, 12:50 p.m. by sergei
Modified:
Jan. 27, 2015, 10:36 a.m.
Reviewers:
Felix Dahlke
CC:
Wladimir Palant
Visibility:
Public.

Description

# works on MSVS 2010 # the support for QuestionListener will be in another commit because it's quite controversial and it's possible to start to use notifications without it.

Patch Set 1 #

Total comments: 16

Patch Set 2 : move GetNotificationTexts into Notification class #

Patch Set 3 : move MarkAsShown into Notification class and get rid of locale arg in Notification::GetTexts #

Total comments: 18

Patch Set 4 : remove local Notifications #

Total comments: 20

Patch Set 5 : clean #

Total comments: 1

Patch Set 6 : simplify the expression #

Patch Set 7 : C++03 #

Total comments: 37

Patch Set 8 : fix according to the comments #

Total comments: 1

Patch Set 9 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+407 lines, -1 line) Patch
M include/AdblockPlus.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/AdblockPlus/FilterEngine.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
A include/AdblockPlus/Notification.h View 1 2 3 4 5 6 7 8 1 chunk +83 lines, -0 lines 0 comments Download
M lib/api.js View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M lib/prefs.js View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M libadblockplus.gyp View 3 chunks +3 lines, -0 lines 0 comments Download
M src/FilterEngine.cpp View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
A src/Notification.cpp View 1 2 3 4 5 6 7 1 chunk +113 lines, -0 lines 0 comments Download
A test/Notification.cpp View 1 2 3 4 5 6 7 1 chunk +169 lines, -0 lines 0 comments Download

Messages

Total messages: 18
Wladimir Palant
http://codereview.adblockplus.org/5797488346791936/diff/5629499534213120/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5629499534213120/include/AdblockPlus/FilterEngine.h#newcode247 include/AdblockPlus/FilterEngine.h:247: const std::string& id) const; Why do we need this ...
Jan. 21, 2015, 1:48 p.m. (2015-01-21 13:48:28 UTC) #1
sergei
http://codereview.adblockplus.org/5797488346791936/diff/5629499534213120/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5629499534213120/include/AdblockPlus/FilterEngine.h#newcode247 include/AdblockPlus/FilterEngine.h:247: const std::string& id) const; On 2015/01/21 13:48:28, Wladimir Palant ...
Jan. 21, 2015, 3:58 p.m. (2015-01-21 15:58:55 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/5797488346791936/diff/5629499534213120/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5629499534213120/include/AdblockPlus/FilterEngine.h#newcode247 include/AdblockPlus/FilterEngine.h:247: const std::string& id) const; On 2015/01/21 15:58:55, sergei wrote: ...
Jan. 21, 2015, 7:23 p.m. (2015-01-21 19:23:18 UTC) #3
Felix Dahlke
Looks good all in all! Just got back to the discussions at this point. One ...
Jan. 22, 2015, 3:31 a.m. (2015-01-22 03:31:08 UTC) #4
Felix Dahlke
Reviewed some parts of this already, but the biggest chunks not yet. But from what ...
Jan. 22, 2015, 10:25 a.m. (2015-01-22 10:25:24 UTC) #5
Wladimir Palant
http://codereview.adblockplus.org/5797488346791936/diff/5631943370604544/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5631943370604544/include/AdblockPlus/FilterEngine.h#newcode247 include/AdblockPlus/FilterEngine.h:247: const std::string& id) const; This method still needs to ...
Jan. 22, 2015, 10:47 a.m. (2015-01-22 10:47:20 UTC) #6
sergei
http://codereview.adblockplus.org/5797488346791936/diff/5629499534213120/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5629499534213120/include/AdblockPlus/FilterEngine.h#newcode261 include/AdblockPlus/FilterEngine.h:261: * application locale) On 2015/01/22 03:31:08, Felix H. Dahlke ...
Jan. 22, 2015, 2:08 p.m. (2015-01-22 14:08:15 UTC) #7
sergei
On 2015/01/22 03:31:08, Felix H. Dahlke wrote: > One thing I'm missing though: The notification ...
Jan. 22, 2015, 2:08 p.m. (2015-01-22 14:08:41 UTC) #8
Felix Dahlke
Just one comment for now :) http://codereview.adblockplus.org/5797488346791936/diff/5631943370604544/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5631943370604544/include/AdblockPlus/Notification.h#newcode35 include/AdblockPlus/Notification.h:35: struct NotificationTexts On ...
Jan. 22, 2015, 2:36 p.m. (2015-01-22 14:36:31 UTC) #9
Wladimir Palant
http://codereview.adblockplus.org/5797488346791936/diff/5641332169113600/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5641332169113600/include/AdblockPlus/Notification.h#newcode30 include/AdblockPlus/Notification.h:30: NOTIFICATION_TYPE_INFORMATION, NOTIFICATION_TYPE_QUESTION, NOTIFICATION_TYPE_CRITICAL Nit: listing these one per line ...
Jan. 22, 2015, 3:19 p.m. (2015-01-22 15:19:51 UTC) #10
sergei
http://codereview.adblockplus.org/5797488346791936/diff/5641332169113600/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5641332169113600/include/AdblockPlus/Notification.h#newcode30 include/AdblockPlus/Notification.h:30: NOTIFICATION_TYPE_INFORMATION, NOTIFICATION_TYPE_QUESTION, NOTIFICATION_TYPE_CRITICAL On 2015/01/22 15:19:51, Wladimir Palant wrote: ...
Jan. 22, 2015, 4:15 p.m. (2015-01-22 16:15:10 UTC) #11
Wladimir Palant
I think Felix also mentioned C++11 syntax which we don't support yet. I'll leave the ...
Jan. 22, 2015, 7:16 p.m. (2015-01-22 19:16:18 UTC) #12
Felix Dahlke
Alright, reviewed everything now! A bunch of comments, but I think we're pretty close, looks ...
Jan. 23, 2015, 1:25 p.m. (2015-01-23 13:25:55 UTC) #13
sergei
http://codereview.adblockplus.org/5797488346791936/diff/5743868070854656/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5743868070854656/include/AdblockPlus/Notification.h#newcode45 include/AdblockPlus/Notification.h:45: * Localizes the texts of the supplied notification. On ...
Jan. 23, 2015, 2:48 p.m. (2015-01-23 14:48:18 UTC) #14
Felix Dahlke
LGTM! Feel free to address the comment nit, but I don't think we need a ...
Jan. 23, 2015, 3:34 p.m. (2015-01-23 15:34:31 UTC) #15
Felix Dahlke
http://codereview.adblockplus.org/5797488346791936/diff/5631943370604544/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): http://codereview.adblockplus.org/5797488346791936/diff/5631943370604544/include/AdblockPlus/Notification.h#newcode58 include/AdblockPlus/Notification.h:58: NotificationTexts GetTexts(); On 2015/01/22 14:08:15, sergei wrote: > On ...
Jan. 23, 2015, 9:27 p.m. (2015-01-23 21:27:50 UTC) #16
Felix Dahlke
LGTM for the change. Please move Wladimir to CC and push. He was OK with ...
Jan. 27, 2015, 8:18 a.m. (2015-01-27 08:18:12 UTC) #17
sergei
Jan. 27, 2015, 10:35 a.m. (2015-01-27 10:35:52 UTC) #18
On 2015/01/27 08:18:12, Felix H. Dahlke wrote:
> LGTM for the change.
> 
> Please move Wladimir to CC and push. He was OK with an earlier iteration of
> this, and he's still sick.
> 
> As for retrieving title/message on the fly to get rid of that static creator
> function: I still think we should do this, but let's do it in a separate
> review/commit. Can be a noissue thing I'd say.

Pushed.
Please find the version which reads notification properties here
http://codereview.adblockplus.org/4904655779790848/.

Powered by Google App Engine
This is Rietveld