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

Issue 7880003: content: Move constrained window code from TabContents to TabContentsWrapper (Closed)

Created:
9 years, 3 months ago by Elliot Glaysher
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Avi (use Gerrit), dpranke+watch-content_chromium.org, kkania, Paweł Hajdan Jr., jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

content: Move constrained window code from TabContents to TabContentsWrapper BUG=95257 TEST=compiles,ConstrainedWindowTabHelperUnit.ConstrainedWindows is green Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103403

Patch Set 1 #

Patch Set 2 : Made to work on Win #

Patch Set 3 : Rebase #

Patch Set 4 : Mac changes #

Patch Set 5 : Even more compile fixes on different platforms #

Patch Set 6 : Rebase/try #

Patch Set 7 : Not sure if flaky or I broke test #

Patch Set 8 : Add NULL check for TabContentsViewViews #

Patch Set 9 : Fix content_shell #

Patch Set 10 : More rebase #

Patch Set 11 : Remove all gtk/mac code to try to pair the memory leak down in interactive_ui_tests #

Patch Set 12 : Revert debugging code; probably fixed #

Patch Set 13 : Make ConstrainedWindowViews call WillClose() at the same time as every other platform #

Patch Set 14 : interactive_ui tests pass locally on windows now #

Patch Set 15 : Fix mac regression now that shutdown timing was changed for views. #

Total comments: 6

Patch Set 16 : Rebase and try to fix conflict with aura work. #

Patch Set 17 : Theoretically separate out the delegate #

Patch Set 18 : Attempt to fix views merge part 2 #

Total comments: 10

Patch Set 19 : avi nit check compile #

Patch Set 20 : Fix mac compile (add forward declaration to file that didn't have it) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -277 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +26 lines, -19 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_unittest.cc View 1 2 2 chunks +0 lines, -34 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_html_delegate_mac.mm View 1 2 3 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/constrained_window_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_window_mac.mm View 1 2 3 11 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm View 1 2 3 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/repost_form_warning_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/repost_form_warning_mac.mm View 1 2 3 11 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/ssl_client_certificate_selector.mm View 1 2 3 4 5 6 7 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +14 lines, -5 lines 0 comments Download
A chrome/browser/ui/constrained_window_tab_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +74 lines, -0 lines 0 comments Download
A chrome/browser/ui/constrained_window_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +109 lines, -0 lines 0 comments Download
A chrome/browser/ui/constrained_window_tab_helper_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/ui/constrained_window_tab_helper_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/ui/constrained_window_tab_helper_unittest.cc View 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/collected_cookies_gtk.cc View 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/constrained_html_delegate_gtk.cc View 11 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/gtk/constrained_window_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/gtk/constrained_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/ui/gtk/repost_form_warning_gtk.h View 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/repost_form_warning_gtk.cc View 11 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/ssl_client_certificate_selector.cc View 1 2 3 4 5 6 7 8 9 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/login/login_prompt_gtk.cc View 11 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/login/login_prompt_mac.mm View 1 2 3 11 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/login/login_prompt_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/collected_cookies_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/constrained_html_delegate_gtk.cc View 1 2 3 4 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/constrained_html_delegate_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +20 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/default_search_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/repost_form_warning_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/constrained_html_ui_browsertest.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +0 lines, -28 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +2 lines, -70 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -12 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -11 lines 0 comments Download
M content/browser/tab_contents/tab_contents_observer.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents_observer.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents_view_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Elliot Glaysher
Even with a week of preparation patches, this final move all the code out of ...
9 years, 2 months ago (2011-09-27 23:06:42 UTC) #1
jam
lgtm http://codereview.chromium.org/7880003/diff/33001/chrome/browser/ui/constrained_window_tab_helper.h File chrome/browser/ui/constrained_window_tab_helper.h (right): http://codereview.chromium.org/7880003/diff/33001/chrome/browser/ui/constrained_window_tab_helper.h#newcode42 chrome/browser/ui/constrained_window_tab_helper.h:42: { return child_windows_.begin(); } nit: the brace bracket ...
9 years, 2 months ago (2011-09-28 00:08:35 UTC) #2
Avi (use Gerrit)
http://codereview.chromium.org/7880003/diff/33001/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc File chrome/browser/ui/tab_contents/tab_contents_wrapper.cc (right): http://codereview.chromium.org/7880003/diff/33001/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc#newcode259 chrome/browser/ui/tab_contents/tab_contents_wrapper.cc:259: constrained_window_tab_helper_.reset(new ConstrainedWindowTabHelper(this)); in same order as alphabetized variables. http://codereview.chromium.org/7880003/diff/33001/chrome/browser/ui/tab_contents/tab_contents_wrapper.h ...
9 years, 2 months ago (2011-09-28 00:16:50 UTC) #3
Elliot Glaysher
ptal
9 years, 2 months ago (2011-09-29 17:59:33 UTC) #4
Avi (use Gerrit)
lgtm with fixes noted below http://codereview.chromium.org/7880003/diff/40050/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/7880003/diff/40050/chrome/browser/automation/testing_automation_provider.cc#newcode1363 chrome/browser/automation/testing_automation_provider.cc:1363: if (wrapper) braces around ...
9 years, 2 months ago (2011-09-29 18:30:36 UTC) #5
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/7880003/48001
9 years, 2 months ago (2011-09-29 22:52:19 UTC) #6
commit-bot: I haz the power
9 years, 2 months ago (2011-09-30 01:49:48 UTC) #7
Change committed as 103403

Powered by Google App Engine
This is Rietveld 408576698