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

Issue 12220101: Minimal Chrome Frame with Aura. (Closed)

Created:
7 years, 10 months ago by grt (UTC plus 2)
Modified:
7 years, 9 months ago
Reviewers:
jam, jschuh, robertshield, sky
CC:
chromium-reviews, robertshield, tfarina, kkania
Visibility:
Public.

Description

Minimal Chrome Frame with Aura. It builds and runs, but not a whole lot else. This change includes: * ChromeFrameAutomationProvider is now OS_WIN only. In practice, this has been the case for some time. Now it's formalized by giving the implementation files the _win suffix. * Automation messages and datatypes used exclusively by Chrome Frame now use HWND directly rather than a toolkit-specific gfx typedef of one since the requirement is that an actual HWND be sent over the channel. A change in toolkit (e.g., switching to Aura) must not change this. As a consequence of this change, some automation types and messages are now only defined for OS_WIN builds. * ExternalTabContainerWin is no longer derived from a NativeWidget type (this was previously the case so that the ETCW could be notified of NW lifecycle events). Now, in contrast, ETCW registers itself as an observer of its Widget. Two additional lifecycle methods have been added to WidgetObserver: OnWidgetCreated and OnWidgetDestroyed. * ExternalTabContianerWin initializes its Widget with an instance of DesktopNativeWidgetAura when use_aura. * A special note about HWND IPC marshaling: this change adds a type mapping from HWND to a generic HANDLE in ipc_message_utils.h, which allows for the removal of a hack in content_message_generator.h to marshal HWNDs. This change reverts all of: * r178752 -- Remove CF from all.gyp targets if use_aura is defined. * r164590 -- Remove setup -> Chrome Frame dependency. Make it possible to build an installer for Aura. and portions of: * r99993 -- Get chrome to link with USE_AURA * r99787 -- Preliminary work to allow Chrome to build with USE_AURA. BUG=171018 TEST=chrome_frame_tests provides good coverage in non-Aura builds. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185328

Patch Set 1 : comments #

Patch Set 2 : #

Patch Set 3 : sync to r184453 #

Total comments: 10

Patch Set 4 : addressed comments #

Patch Set 5 : sync to r184970 #

Patch Set 6 : removed inclusion of web_contents_view.h from automation_provider_win.h. see patch set 5 for trybot… #

Total comments: 14

Patch Set 7 : thanks robert #

Patch Set 8 : revert install_worker.cc to un-break win64 build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -466 lines) Patch
M build/all.gyp View 1 2 3 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/automation/automation_provider.h View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/automation/automation_provider_unittest.cc View 1 2 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/browser/automation/automation_provider_win.cc View 1 2 3 4 5 6 6 chunks +18 lines, -19 lines 0 comments Download
D chrome/browser/automation/chrome_frame_automation_provider.h View 1 2 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/browser/automation/chrome_frame_automation_provider.cc View 1 2 1 chunk +0 lines, -135 lines 0 comments Download
A + chrome/browser/automation/chrome_frame_automation_provider_win.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/automation/chrome_frame_automation_provider_win.cc View 1 2 3 chunks +2 lines, -7 lines 0 comments Download
A + chrome/browser/automation/chrome_frame_automation_provider_win_unittest.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/external_tab/external_tab_container.h View 1 2 3 4 5 6 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.h View 1 2 3 4 5 6 9 chunks +17 lines, -28 lines 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.cc View 1 2 3 4 5 6 22 chunks +97 lines, -80 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_installer.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M chrome/common/automation_messages.h View 1 2 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/common/automation_messages_internal.h View 1 2 3 3 chunks +10 lines, -10 lines 0 comments Download
M chrome/test/automation/automation_proxy.h View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/test/automation/automation_proxy.cc View 1 2 1 chunk +0 lines, -25 lines 0 comments Download
M chrome/test/automation/tab_proxy.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/test/chrome_frame_test_utils.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/content_message_generator.cc View 1 2 1 chunk +0 lines, -24 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_delegate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ui/views/widget/widget_observer.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
grt (UTC plus 2)
Hi Scott, Do you have time to take a look at this CL? As mentioned ...
7 years, 10 months ago (2013-02-13 04:57:21 UTC) #1
sky
I'm not a fan of forking the code like this. It should be temporary in ...
7 years, 10 months ago (2013-02-13 15:30:31 UTC) #2
grt (UTC plus 2)
On 2013/02/13 15:30:31, sky wrote: > I'm not a fan of forking the code like ...
7 years, 10 months ago (2013-02-13 15:43:55 UTC) #3
grt (UTC plus 2)
Hi Scott and Ken, This change gets GCF building and launching on WinAura. Please read ...
7 years, 10 months ago (2013-02-26 15:26:45 UTC) #4
kkania
https://codereview.chromium.org/12220101/diff/25060/chrome/common/automation_messages_internal.h File chrome/common/automation_messages_internal.h (right): https://codereview.chromium.org/12220101/diff/25060/chrome/common/automation_messages_internal.h#newcode260 chrome/common/automation_messages_internal.h:260: IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_CreateExternalTab, Unfortunately, you need to preserve the line numbers ...
7 years, 10 months ago (2013-02-26 16:36:28 UTC) #5
grt (UTC plus 2)
https://codereview.chromium.org/12220101/diff/25060/chrome/common/automation_messages_internal.h File chrome/common/automation_messages_internal.h (right): https://codereview.chromium.org/12220101/diff/25060/chrome/common/automation_messages_internal.h#newcode260 chrome/common/automation_messages_internal.h:260: IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_CreateExternalTab, On 2013/02/26 16:36:28, kkania wrote: > Unfortunately, you ...
7 years, 10 months ago (2013-02-26 16:55:45 UTC) #6
sky
I only poked at a couple of things. What specifically do you need me to ...
7 years, 10 months ago (2013-02-26 17:15:29 UTC) #7
kkania
On 2013/02/26 16:55:45, grt wrote: > https://codereview.chromium.org/12220101/diff/25060/chrome/common/automation_messages_internal.h > File chrome/common/automation_messages_internal.h (right): > > https://codereview.chromium.org/12220101/diff/25060/chrome/common/automation_messages_internal.h#newcode260 > ...
7 years, 10 months ago (2013-02-26 17:23:29 UTC) #8
grt (UTC plus 2)
Sending out for broad review. Please redirect to alternative reviewers if you are overloaded or ...
7 years, 9 months ago (2013-02-27 16:53:11 UTC) #9
jam
my parts lgtm, but a question to make sure I'm understanding the IPC traits correctly ...
7 years, 9 months ago (2013-02-27 20:35:34 UTC) #10
robertshield
lg, nits and such https://codereview.chromium.org/12220101/diff/31041/chrome/browser/automation/automation_provider_win.cc File chrome/browser/automation/automation_provider_win.cc (right): https://codereview.chromium.org/12220101/diff/31041/chrome/browser/automation/automation_provider_win.cc#newcode130 chrome/browser/automation/automation_provider_win.cc:130: const Reposition_Params& params) { nit: ...
7 years, 9 months ago (2013-02-27 21:15:42 UTC) #11
jschuh
lgtm. ipc changes are all between cf host and browser, so shouldn't have any security ...
7 years, 9 months ago (2013-02-27 22:05:28 UTC) #12
grt (UTC plus 2)
sky: ping jam and jschuh: thank you robertshield: PTAL https://codereview.chromium.org/12220101/diff/31041/chrome/browser/automation/automation_provider_win.cc File chrome/browser/automation/automation_provider_win.cc (right): https://codereview.chromium.org/12220101/diff/31041/chrome/browser/automation/automation_provider_win.cc#newcode130 chrome/browser/automation/automation_provider_win.cc:130: ...
7 years, 9 months ago (2013-02-28 02:48:41 UTC) #13
sky
LGTM
7 years, 9 months ago (2013-02-28 16:29:19 UTC) #14
robertshield
lgtm
7 years, 9 months ago (2013-02-28 17:47:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/12220101/38001
7 years, 9 months ago (2013-02-28 17:56:38 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-02-28 19:24:24 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/12220101/53003
7 years, 9 months ago (2013-02-28 19:24:38 UTC) #18
commit-bot: I haz the power
7 years, 9 months ago (2013-02-28 21:46:14 UTC) #19
Message was sent while issue was closed.
Change committed as 185328

Powered by Google App Engine
This is Rietveld 408576698