Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(75)

Issue 104044: Desktop Notifications API

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 10 months ago by johnnyg
Modified:
16 years, 10 months ago
Reviewers:
darin, jorlow
Base URL:
http://src.chromium.org/svn/trunk/src/
Visibility:
Public.

Description

This code is for the Desktop Notifications API being worked on in Chromium. WebKit support for the Javascript API is still pending with a patch out for review (see https://bugs.webkit.org/show_bug.cgi?id=25463), so the current code can't actually be checked in, but I would like preliminary feedback.

Patch Set 1 #

Patch Set 2 : Try to fix broken git patch. #

Patch Set 3 : 3rd time is the charm #

Total comments: 70
Unified diffs Side-by-side diffs Delta from patch set Stats (+3184 lines, -2 lines) Patch
chrome/app/chromium_strings.grd View 1 1 chunk +3 lines, -0 lines 0 comments Download
chrome/app/generated_resources.grd View 1 1 chunk +14 lines, -0 lines 0 comments Download
chrome/app/google_chrome_strings.grd View 1 1 chunk +3 lines, -0 lines 0 comments Download
chrome/app/theme/theme_resources.grd View 1 1 chunk +18 lines, -0 lines 2 comments Download
chrome/browser/browser_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
chrome/browser/notifications/balloon.h View 1 2 1 chunk +190 lines, -0 lines 2 comments Download
chrome/browser/notifications/balloon_contents_win.h View 1 2 1 chunk +74 lines, -0 lines 2 comments Download
chrome/browser/notifications/balloon_contents_win.cc View 1 2 1 chunk +126 lines, -0 lines 2 comments Download
chrome/browser/notifications/balloon_view_win.h View 1 2 1 chunk +130 lines, -0 lines 2 comments Download
chrome/browser/notifications/balloon_view_win.cc View 1 2 1 chunk +387 lines, -0 lines 2 comments Download
chrome/browser/notifications/balloon_win.cc View 1 2 1 chunk +287 lines, -0 lines 2 comments Download
chrome/browser/notifications/desktop_notification_service.h View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
chrome/browser/notifications/desktop_notification_service.cc View 1 2 1 chunk +282 lines, -0 lines 0 comments Download
chrome/browser/notifications/desktop_notification_service_mac.mm View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
chrome/browser/notifications/desktop_notification_service_win.cc View 1 chunk +151 lines, -0 lines 0 comments Download
chrome/browser/notifications/desktop_notifications_unittest.cc View 1 2 1 chunk +224 lines, -0 lines 0 comments Download
chrome/browser/notifications/notification.h View 1 2 1 chunk +59 lines, -0 lines 1 comment Download
chrome/browser/notifications/notification_manager.h View 1 2 1 chunk +58 lines, -0 lines 1 comment Download
chrome/browser/notifications/notification_manager_win.cc View 1 2 1 chunk +113 lines, -0 lines 1 comment Download
chrome/browser/notifications/notification_object_proxy.h View 1 2 1 chunk +46 lines, -0 lines 1 comment Download
chrome/browser/notifications/notification_object_proxy.cc View 1 2 1 chunk +84 lines, -0 lines 0 comments Download
chrome/browser/renderer_host/render_view_host.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
chrome/browser/renderer_host/render_view_host.cc View 1 3 chunks +54 lines, -0 lines 0 comments Download
chrome/browser/resources/notification.html View 1 chunk +36 lines, -0 lines 0 comments Download
chrome/browser/worker_host/worker_process_host.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
chrome/browser/worker_host/worker_process_host.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
chrome/chrome.gyp View 1 5 chunks +23 lines, -0 lines 0 comments Download
chrome/common/notification_type.h View 1 1 chunk +16 lines, -0 lines 1 comment Download
chrome/common/pref_names.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
chrome/common/pref_names.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
chrome/common/render_messages_internal.h View 1 2 chunks +56 lines, -0 lines 5 comments Download
chrome/renderer/notification_provider.h View 1 2 1 chunk +73 lines, -0 lines 7 comments Download
chrome/renderer/notification_provider.cc View 1 2 1 chunk +161 lines, -0 lines 16 comments Download
chrome/renderer/render_view.h View 1 3 chunks +8 lines, -0 lines 2 comments Download
chrome/renderer/render_view.cc View 1 3 chunks +5 lines, -0 lines 0 comments Download
webkit/build/V8Bindings/build-generated-files.sh View 1 1 chunk +1 line, -1 line 1 comment Download
webkit/build/webkit_common_defines.vsprops View 1 2 1 chunk +11 lines, -0 lines 1 comment Download
webkit/glue/chrome_client_impl.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
webkit/glue/chrome_client_impl.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
webkit/glue/webnotification.h View 1 2 1 chunk +18 lines, -0 lines 5 comments Download
webkit/glue/webnotification_impl.h View 1 2 1 chunk +34 lines, -0 lines 4 comments Download
webkit/glue/webnotification_impl.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
webkit/glue/webnotificationpresenter.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
webkit/glue/webnotificationpresenter_impl.h View 1 2 1 chunk +47 lines, -0 lines 1 comment Download
webkit/glue/webnotificationpresenter_impl.cc View 1 2 1 chunk +117 lines, -0 lines 9 comments Download
webkit/glue/webview_impl.h View 1 3 chunks +11 lines, -0 lines 0 comments Download
webkit/glue/webview_impl.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
webkit/webkit.gyp View 1 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 6
jorlow
I haven't reviewed any of the browser/ code yet. http://codereview.appspot.com/104044/diff/1008/112 File chrome/app/theme/theme_resources.grd (right): http://codereview.appspot.com/104044/diff/1008/112#newcode284 Line ...
16 years, 10 months ago (2009-08-05 23:55:58 UTC) #1
johnnyg
http://codereview.appspot.com/104044/diff/1008/112 File chrome/app/theme/theme_resources.grd (right): http://codereview.appspot.com/104044/diff/1008/112#newcode284 Line 284: On 2009/08/05 23:55:58, jorlow wrote: > Interesting...we're not ...
16 years, 10 months ago (2009-08-06 00:29:28 UTC) #2
jorlow
http://codereview.appspot.com/104044/diff/1008/141 File chrome/renderer/notification_provider.h (right): http://codereview.appspot.com/104044/diff/1008/141#newcode52 Line 52: return Singleton<RendererNotificationManager>::get(); On 2009/08/06 00:29:28, johnnyg wrote: > ...
16 years, 10 months ago (2009-08-06 00:39:03 UTC) #3
darin
http://codereview.appspot.com/104044/diff/1008/148 File webkit/glue/webnotification.h (right): http://codereview.appspot.com/104044/diff/1008/148#newcode11 Line 11: class WebNotification { This interface should not be ...
16 years, 10 months ago (2009-08-06 04:03:58 UTC) #4
PhistucK
Just copyright nits :P http://codereview.appspot.com/104044/diff/1008/114 File chrome/browser/notifications/balloon.h (right): http://codereview.appspot.com/104044/diff/1008/114#newcode1 Line 1: // Copyright (c) 2006-2008 ...
16 years, 10 months ago (2009-08-06 04:37:03 UTC) #5
johnnyg
16 years, 10 months ago (2009-08-06 18:52:42 UTC) #6
http://codereview.appspot.com/104044/diff/1008/114
File chrome/browser/notifications/balloon.h (right):

http://codereview.appspot.com/104044/diff/1008/114#newcode1
Line 1: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
On 2009/08/06 04:37:03, PhistucK wrote:
> 2009?

Done.

http://codereview.appspot.com/104044/diff/1008/115
File chrome/browser/notifications/balloon_contents_win.cc (right):

http://codereview.appspot.com/104044/diff/1008/115#newcode1
Line 1: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
On 2009/08/06 04:37:03, PhistucK wrote:
> 2009?

Done.

http://codereview.appspot.com/104044/diff/1008/116
File chrome/browser/notifications/balloon_contents_win.h (right):

http://codereview.appspot.com/104044/diff/1008/116#newcode1
Line 1: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
On 2009/08/06 04:37:03, PhistucK wrote:
> 2009?

Done.

http://codereview.appspot.com/104044/diff/1008/117
File chrome/browser/notifications/balloon_view_win.cc (right):

http://codereview.appspot.com/104044/diff/1008/117#newcode1
Line 1: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
On 2009/08/06 04:37:03, PhistucK wrote:
> 2009?

Done.

http://codereview.appspot.com/104044/diff/1008/118
File chrome/browser/notifications/balloon_view_win.h (right):

http://codereview.appspot.com/104044/diff/1008/118#newcode1
Line 1: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
On 2009/08/06 04:37:03, PhistucK wrote:
> 2009?

Done.

http://codereview.appspot.com/104044/diff/1008/119
File chrome/browser/notifications/balloon_win.cc (right):

http://codereview.appspot.com/104044/diff/1008/119#newcode1
Line 1: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
On 2009/08/06 04:37:03, PhistucK wrote:
> 2009?

Done.

http://codereview.appspot.com/104044/diff/1008/139
File chrome/common/render_messages_internal.h (right):

http://codereview.appspot.com/104044/diff/1008/139#newcode613
Line 613: 
On 2009/08/06 00:29:28, johnnyg wrote:
> On 2009/08/05 23:55:58, jorlow wrote:
> > These should be plausible variable names.  (I.e. no spaces and concise)
> 
> Thanks, good to know.

Done.

http://codereview.appspot.com/104044/diff/1008/139#newcode624
Line 624: 
On 2009/08/05 23:55:58, jorlow wrote:
> -'s and ?'s are not allowed for that reason

Done.

http://codereview.appspot.com/104044/diff/1008/140
File chrome/renderer/notification_provider.cc (right):

http://codereview.appspot.com/104044/diff/1008/140#newcode26
Line 26: GURL(view_->webview()->GetMainFrame()->GetURL()),
On 2009/08/05 23:55:58, jorlow wrote:
> indent these 1 space more
> 
> either it should be 
> 
> blah_blah_blah(
>     start here,
>     continue here)
> 
> or 
> 
> blah_blah_blah(start here,
>                continue here)

Done.

http://codereview.appspot.com/104044/diff/1008/140#newcode34
Line 34: const string16& title,
On 2009/08/05 23:55:58, jorlow wrote:
> If you can fit more than one of these per line (while maintaining the
indenting
> you have) we typically do so.

Done.

http://codereview.appspot.com/104044/diff/1008/140#newcode98
Line 98: RendererNotificationManager::PermissionRequestDone);
On 2009/08/05 23:55:58, jorlow wrote:
> Typically these functions are named OnBlahBlah rather than just BlahBlah 

Done.

http://codereview.appspot.com/104044/diff/1008/140#newcode121
Line 121: void RunnableMethodTraits<WebNotification>::RetainCallee(
On 2009/08/05 23:55:58, jorlow wrote:
> Hm...this should probably be in render_messages.h right?

I see this pattern a few other places, generally nearby to the specific class
that's being used in a task.

http://codereview.appspot.com/104044/diff/1008/140#newcode133
Line 133: NewRunnableMethod(notification, &WebNotification::display));
On 2009/08/05 23:55:58, jorlow wrote:
> indent 4 spaces, not 2

Done.

http://codereview.appspot.com/104044/diff/1008/140#newcode150
Line 150: proxy_table_.Remove(id);
On 2009/08/05 23:55:58, jorlow wrote:
> improperly indented

Done.

http://codereview.appspot.com/104044/diff/1008/140#newcode158
Line 158: callback);
On 2009/08/05 23:55:58, jorlow wrote:
> 4 not 2

Done.

http://codereview.appspot.com/104044/diff/1008/140#newcode159
Line 159: callback_table_.Remove(id);
On 2009/08/05 23:55:58, jorlow wrote:
> 0 not 2

Done.

http://codereview.appspot.com/104044/diff/1008/141
File chrome/renderer/notification_provider.h (right):

http://codereview.appspot.com/104044/diff/1008/141#newcode46
Line 46: RenderView* view_;
On 2009/08/05 23:55:58, jorlow wrote:
> Use DISALLOW_blah blah blah?

Done.

http://codereview.appspot.com/104044/diff/1008/141#newcode70
Line 70: };
On 2009/08/05 23:55:58, jorlow wrote:
> Use DISALLOW_blah blah blah?

Done.

http://codereview.appspot.com/104044/diff/1008/143
File chrome/renderer/render_view.h (right):

http://codereview.appspot.com/104044/diff/1008/143#newcode828
Line 828: 
On 2009/08/05 23:55:58, jorlow wrote:
> typo

Done.

http://codereview.appspot.com/104044/diff/1008/150
File webkit/glue/webnotification_impl.h (right):

http://codereview.appspot.com/104044/diff/1008/150#newcode23
Line 23: int id() { return id_; }
On 2009/08/05 23:55:58, jorlow wrote:
> int id() const { ...

Done.

http://codereview.appspot.com/104044/diff/1008/150#newcode27
Line 27: WebCore::Notification* inner_;
On 2009/08/05 23:55:58, jorlow wrote:
> This name is not very descriptive.

Done.

http://codereview.appspot.com/104044/diff/1008/152
File webkit/glue/webnotificationpresenter_impl.cc (right):

http://codereview.appspot.com/104044/diff/1008/152#newcode9
Line 9: #include "webnotificationpresenter_impl.h"
On 2009/08/05 23:55:58, jorlow wrote:
> Shouldn't this go right under config.h?

Done.

http://codereview.appspot.com/104044/diff/1008/152#newcode20
Line 20: if (webworker_) {
On 2009/08/05 23:55:58, jorlow wrote:
> {}'s seem unneeded

Done.

http://codereview.appspot.com/104044/diff/1008/152#newcode98
Line 98: 
On 2009/08/05 23:55:58, jorlow wrote:
> no extra new line

Done.

http://codereview.appspot.com/104044/diff/1008/152#newcode106
Line 106: 
On 2009/08/05 23:55:58, jorlow wrote:
> no extra new line

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b