Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(917)

Issue 341089: Implement window.alert() and its cousins for extensions.... (Closed)

Created:
11 years, 1 month ago by Pam (message me for reviews)
Modified:
9 years, 5 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews_googlegroups.com, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, brettw+cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Implement window.alert() and its cousins for extensions. BUG=12126 TEST=put a window.prompt() in a background page, a browser action, and a page action. Make sure it gets the result back correctly. Also make sure it still works when called from a web page. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31110

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -107 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +16 lines, -4 lines 0 comments Download
M chrome/browser/app_modal_dialog.h View 1 2 3 4 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/app_modal_dialog.cc View 1 2 3 4 5 6 6 chunks +26 lines, -24 lines 1 comment Download
M chrome/browser/app_modal_dialog_gtk.cc View 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 2 3 4 5 6 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 5 chunks +36 lines, -4 lines 0 comments Download
A chrome/browser/jsmessage_box_client.h View 1 2 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/jsmessage_box_handler.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/jsmessage_box_handler.cc View 1 2 3 2 chunks +4 lines, -36 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 4 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 4 chunks +54 lines, -16 lines 0 comments Download
M chrome/browser/views/jsmessage_box_dialog.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/jsmessage_box_dialog.cc View 1 2 3 4 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/chrome.gyp View 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Matt Perry
Awesome! I like how clean this ended up being. LGTM with 1 style issue. http://codereview.chromium.org/341089/diff/9009/10011 ...
11 years, 1 month ago (2009-11-05 00:36:57 UTC) #1
Pam (message me for reviews)
http://codereview.chromium.org/341089/diff/9009/10011 File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/341089/diff/9009/10011#newcode428 Line 428: return active_tab->view()->GetTopLevelNativeWindow(); On 2009/11/05 00:36:57, Matt Perry wrote: ...
11 years, 1 month ago (2009-11-05 01:07:21 UTC) #2
Matt Perry
http://codereview.chromium.org/341089/diff/9009/10011 File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/341089/diff/9009/10011#newcode428 Line 428: return active_tab->view()->GetTopLevelNativeWindow(); On 2009/11/05 01:07:21, Pam wrote: > ...
11 years, 1 month ago (2009-11-05 01:11:15 UTC) #3
Matt Perry
11 years, 1 month ago (2009-11-05 23:42:20 UTC) #4
http://codereview.chromium.org/341089/diff/5042/5044
File chrome/browser/app_modal_dialog.cc (right):

http://codereview.chromium.org/341089/diff/5042/5044#newcode68
Line 68: NotificationService::AllSources());
If you instead use Source<Tabcontents>(client_->AsTabContents()), you'll only
get notified when this tab is destroyed. That way you can avoid doing the
comparisons in Observe(). Ditto for Controller, assuming the TabContents
controller never changes.

Powered by Google App Engine
This is Rietveld 408576698