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

Issue 10081022: Aura/ash split: Remove hacks and get chrome linking without ash. (Closed)

Created:
8 years, 8 months ago by Elliot Glaysher
Modified:
8 years, 8 months ago
CC:
chromium-reviews, tfarina, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Aura/ash split: Remove hacks and get chrome linking without ash. For the first time now, you can do: > build/gyp_chromium -Duse_aura=1 -Duse_ash=0 And get a running chrome. It has lots of issues, especially related to window placement, tab handling, etc, but it pops up and renders web content. Also consolidates most of the desktop behavior into its own class. Also makes views_examples_exe work again. Several of the hacks are no longer needed after Ben's refactoring to support WebView. BUG=116458, 119759 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132856

Patch Set 1 #

Total comments: 2

Patch Set 2 : ben comments #

Patch Set 3 : Rebase to ToT #

Patch Set 4 : Move the desktop code into its own class #

Patch Set 5 : Hopefully fix macro problem. #

Total comments: 4

Patch Set 6 : Ask the ViewsDelegate for an desktop helper object. #

Patch Set 7 : Fix unterminated #if #

Total comments: 1

Patch Set 8 : Move the check to ash/. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -174 lines) Patch
M ash/shell/content_client/shell_browser_main_parts.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_extra_parts_aura.h View 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_extra_parts_aura.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A + chrome/browser/fullscreen_ash.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/fullscreen_aura.cc View 1 chunk +7 lines, -25 lines 0 comments Download
A + chrome/browser/ui/tabs/dock_info_ash.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/ui/tabs/dock_info_aura.cc View 3 chunks +5 lines, -37 lines 0 comments Download
M chrome/browser/ui/views/accessibility_event_router_views_unittest.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
D chrome/browser/ui/views/ash/color_chooser_aura.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
A + chrome/browser/ui/views/color_chooser_aura.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/ui/views/menu_model_adapter_test.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 4 chunks +4 lines, -1 line 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A ui/aura/desktop/desktop_stacking_client.h View 1 1 chunk +32 lines, -0 lines 0 comments Download
A ui/aura/desktop/desktop_stacking_client.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M ui/views/examples/content_client/examples_browser_main_parts.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M ui/views/examples/content_client/examples_browser_main_parts.cc View 1 2 3 3 chunks +3 lines, -33 lines 0 comments Download
M ui/views/test/test_views_delegate.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/test/test_views_delegate.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M ui/views/views_delegate.h View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
A ui/views/widget/desktop_native_widget_helper_aura.h View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
A ui/views/widget/desktop_native_widget_helper_aura.cc View 1 2 3 4 5 6 1 chunk +78 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 2 3 4 5 6 6 chunks +3 lines, -13 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 10 chunks +17 lines, -53 lines 0 comments Download
A ui/views/widget/native_widget_helper_aura.h View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Elliot Glaysher
8 years, 8 months ago (2012-04-13 22:27:23 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/10081022/diff/1/chrome/browser/chrome_browser_main_extra_parts_aura.cc File chrome/browser/chrome_browser_main_extra_parts_aura.cc (right): http://codereview.chromium.org/10081022/diff/1/chrome/browser/chrome_browser_main_extra_parts_aura.cc#newcode21 chrome/browser/chrome_browser_main_extra_parts_aura.cc:21: views::NativeWidgetAura::set_aura_desktop_hax(); can you give this a proper name at ...
8 years, 8 months ago (2012-04-13 22:57:03 UTC) #2
Elliot Glaysher
ptal. I've made a small change in the name; I'll work on factoring out an ...
8 years, 8 months ago (2012-04-16 19:31:04 UTC) #3
Elliot Glaysher
ptal, moved the hax code into its own class, conditionally compiled in. Also, please give ...
8 years, 8 months ago (2012-04-16 22:06:43 UTC) #4
Ben Goodger (Google)
http://codereview.chromium.org/10081022/diff/7005/ui/views/widget/desktop_native_widget_helper_aura.h File ui/views/widget/desktop_native_widget_helper_aura.h (right): http://codereview.chromium.org/10081022/diff/7005/ui/views/widget/desktop_native_widget_helper_aura.h#newcode23 ui/views/widget/desktop_native_widget_helper_aura.h:23: DesktopNatitveWidgetHelperAura(NativeWidgetAura* widget); explicit Native http://codereview.chromium.org/10081022/diff/7005/ui/views/widget/desktop_native_widget_helper_aura.h#newcode37 ui/views/widget/desktop_native_widget_helper_aura.h:37: // zero. Otherwise, ...
8 years, 8 months ago (2012-04-17 15:42:55 UTC) #5
Elliot Glaysher
ptal. Used ViewsDelegate in implementation, trybots are pretty green.
8 years, 8 months ago (2012-04-17 22:54:09 UTC) #6
Ben Goodger (Google)
http://codereview.chromium.org/10081022/diff/22001/ui/views/test/test_views_delegate.cc File ui/views/test/test_views_delegate.cc (right): http://codereview.chromium.org/10081022/diff/22001/ui/views/test/test_views_delegate.cc#newcode67 ui/views/test/test_views_delegate.cc:67: #if !defined(USE_ASH) you can't have ash here either
8 years, 8 months ago (2012-04-17 23:42:45 UTC) #7
Elliot Glaysher
ptal. Made TestViewsDelegate just return a NativeWidgetHelperAura by default; The ash delegate, which inherits from ...
8 years, 8 months ago (2012-04-18 18:08:11 UTC) #8
Ben Goodger (Google)
Cool. Thanks for your patience. LGTM.
8 years, 8 months ago (2012-04-18 18:18:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/10081022/13032
8 years, 8 months ago (2012-04-18 18:28:40 UTC) #10
commit-bot: I haz the power
8 years, 8 months ago (2012-04-18 20:32:23 UTC) #11
Change committed as 132856

Powered by Google App Engine
This is Rietveld 408576698