Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Issue 642143004: [Cocoa] Make TabContentsContainerView more testable for interactive_ui_tests. (Closed)

Created:
6 years, 2 months ago by miu
Modified:
6 years, 2 months ago
Reviewers:
Avi (use Gerrit), sky
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Cocoa] Make TabContentsContainerView more testable for interactive_ui_tests. Note: This change is a prerequisite for an upcoming change that will add extensive interactive UI testing around Flash fullscreen, including the Fullscreen-Within-Tab UI. For all interactive_ui_tests, the UI widget being referenced by VIEW_ID_TAB_CONTAINER was wrong whenever Flash fullscreen mode was engaged. This change tags the correct NSView with the identifier, and gives it some simple focus-passing behavior, similar to ui::views::WebView, to ensure that tests checking focus and/or simulating a click on the tab container get the desired behavior. Because the code changes to TabContentsContainerView are pretty much the same, this change also addresses bug 421728, which makes clicking in the "gray area" during Fullscreen-Within-Tab mode a request to give the tab contents the focus. BUG=403641, 421728 Committed: https://crrev.com/5d0cfcacfa3b6e5d623bddea08d88898fe3e30f1 Cr-Commit-Position: refs/heads/master@{#300326}

Patch Set 1 #

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -15 lines) Patch
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.mm View 1 3 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/browser_focus_uitest.cc View 1 chunk +15 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm View 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/test/base/interactive_test_utils_mac.mm View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/test/ui_controls.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/base/test/ui_controls_mac.mm View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
miu
avi: PTAL at everything. sky: Need OWNER stamp for chrome/browser/ui/browser_focus_uitest.cc and chrome/test/base/interactive_test_utils_mac.mm.
6 years, 2 months ago (2014-10-18 02:25:07 UTC) #2
Avi (use Gerrit)
This LGTM
6 years, 2 months ago (2014-10-18 02:31:17 UTC) #3
sky
LGTM
6 years, 2 months ago (2014-10-20 16:28:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642143004/1
6 years, 2 months ago (2014-10-20 17:13:47 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.mm: While running git apply --index -3 -p1; error: patch ...
6 years, 2 months ago (2014-10-20 17:50:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642143004/20001
6 years, 2 months ago (2014-10-20 19:12:44 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 2 months ago (2014-10-20 20:46:52 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 20:47:35 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5d0cfcacfa3b6e5d623bddea08d88898fe3e30f1
Cr-Commit-Position: refs/heads/master@{#300326}

Powered by Google App Engine
This is Rietveld 408576698