|
Refactor AppModalDialogQueue and move JS Alert boxes into a MVC.
JavascriptMessageBoxHandler (handles alert, confirm, prompt, and onbeforeunload) was a views class. This change converts it into an MVC so we can port to linux/mac.
AppModalDialog is the model+controller, JavascriptMessageBoxDialog is the windows specific view.
The onbeforeunload dialog (JavascriptBeforeUnloadHandler) was a subclass of JavascriptMessageBoxHandler that had a different title and button text. I merged this class into JavascriptMessageBoxHandler by passing a bool to handle the custom button text.
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+577 lines, -501 lines) |
Patch |
|
A |
chrome/browser/app_modal_dialog.h
|
View
|
1
2
3
4
|
1 chunk |
+109 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/app_modal_dialog.cc
|
View
|
1
2
3
|
1 chunk |
+99 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/app_modal_dialog_queue.h
|
View
|
|
3 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/app_modal_dialog_queue.cc
|
View
|
1
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
A |
chrome/browser/app_modal_dialog_win.cc
|
View
|
1
2
3
4
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/automation/automation_provider.cc
|
View
|
1
2
3
|
4 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browser.vcproj
|
View
|
1
2
3
4
|
3 chunks |
+13 lines, -17 lines |
0 comments
|
Download
|
|
M |
chrome/browser/js_before_unload_handler.h
|
View
|
1
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
|
M |
chrome/browser/js_before_unload_handler_win.h
|
View
|
1
|
1 chunk |
+0 lines, -29 lines |
0 comments
|
Download
|
|
M |
chrome/browser/js_before_unload_handler_win.cc
|
View
|
1
|
1 chunk |
+0 lines, -54 lines |
0 comments
|
Download
|
|
M |
chrome/browser/jsmessage_box_handler.h
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/jsmessage_box_handler.cc
|
View
|
|
1 chunk |
+79 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/jsmessage_box_handler_win.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -83 lines |
0 comments
|
Download
|
|
M |
chrome/browser/jsmessage_box_handler_win.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -213 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/render_view_host.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/render_view_host_delegate.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/tab_contents/web_contents.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/tab_contents/web_contents.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/views/browser_views.vcproj
|
View
|
5
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/views/jsmessage_box_dialog.h
|
View
|
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/views/jsmessage_box_dialog.cc
|
View
|
|
1 chunk |
+122 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome.gyp
|
View
|
1
2
3
4
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/common/temp_scaffolding_stubs.cc
|
View
|
|
1 chunk |
+0 lines, -19 lines |
0 comments
|
Download
|
|
M |
chrome/views/views.vcproj
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/views/window/app_modal_dialog_delegate.h
|
View
|
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|