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

Issue 131094: Add GetMessageHandlers to HtmlDialogUIDelegate to allow... (Closed)

Created:
11 years, 6 months ago by tim (not reviewing)
Modified:
9 years, 6 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add a 'RegisterMessages' function to DOMMessageHandler to make it easy to construct these objects by deferring the DOMUI dependency to the init / "Attach" step. Add GetMessageHandlers to HtmlDialogUIDelegate to allow sending/receiving messages to the page hosted in the dialog as opposed to only on open/close. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19359

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -158 lines) Patch
M chrome/browser/chrome_plugin_host.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/debugger_ui.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/downloads_dom_handler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/downloads_dom_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +21 lines, -21 lines 0 comments Download
M chrome/browser/dom_ui/downloads_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/history_ui.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/history_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/dom_ui/html_dialog_ui.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/html_dialog_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +86 lines, -85 lines 0 comments Download
M chrome/browser/dom_ui/shown_sections_handler.h View 7 8 9 10 11 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/shown_sections_handler.cc View 7 8 9 10 11 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/dom_ui/tips_handler.h View 10 11 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/dom_ui/tips_handler.cc View 10 11 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extensions_ui.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extensions_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/modal_html_dialog_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/views/html_dialog_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/views/html_dialog_view.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/temp_scaffolding_stubs.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
tim (not reviewing)
11 years, 6 months ago (2009-06-19 17:57:11 UTC) #1
brettw
LGTM http://codereview.chromium.org/131094/diff/2025/2041 File chrome/browser/chrome_plugin_host.cc (right): http://codereview.chromium.org/131094/diff/2025/2041#newcode317 Line 317: std::vector<DOMMessageHandler*>* handlers) const { } I recently ...
11 years, 6 months ago (2009-06-23 21:34:58 UTC) #2
tim (not reviewing)
11 years, 6 months ago (2009-06-25 20:22:51 UTC) #3
On 2009/06/23 21:34:58, brettw wrote:
> LGTM
> 
> http://codereview.chromium.org/131094/diff/2025/2041
> File chrome/browser/chrome_plugin_host.cc (right):
> 
> http://codereview.chromium.org/131094/diff/2025/2041#newcode317
> Line 317: std::vector<DOMMessageHandler*>* handlers) const { }
> I recently discovered that the style guide stipulates {} with no space in this
> situation.
> 
> http://codereview.chromium.org/131094/diff/2025/2031
> File chrome/browser/dom_ui/html_dialog_ui.cc (right):
> 
> http://codereview.chromium.org/131094/diff/2025/2031#newcode73
> Line 73: std::vector<DOMMessageHandler*>::iterator it = handlers.begin();
> We'd normally just put this inside the for loop and put the other conditions
> inside it on the next line.
> 
> http://codereview.chromium.org/131094/diff/2025/2033
> File chrome/browser/dom_ui/html_dialog_ui.h (right):
> 
> http://codereview.chromium.org/131094/diff/2025/2033#newcode28
> Line 28: // Get DOMMessageHandler objects to handle messages from the HTML/JS
> page.
> Can you expand on this a bit? I think one sentence saying what the handlers
do,
> and one about the lifetime of the pointers in the vector would be good.

All done, and actually added the call to AddMessageHandler in
html_dialog_view.cc, which I forgot earlier.

Powered by Google App Engine
This is Rietveld 408576698