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

Issue 10545037: Aura/GTK integration: Create a small stub library that can talk to GTK. (Closed)

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

Description

Aura/GTK integration: Create a small stub library that can talk to GTK. This makes a ui::LinuxUI interface, which needs to be in ui/base/ since we'll be integrating it with ui::NativeTheme and ui/views/. We also add a libgtk2ui shared library, which has a single exported method which creates an LinuxUI object that is essentially the old GtkThemeService. The intent is that this library will be the only part of chrome that can link with GTK in aura land. Current results are very rough; only some theme images are being injected properly and there's a bunch of entirely new theme integration that will have to be written to interface with views. Still, this is more than enough to demonstrate intent to continue to support gtk2. BUG=130810 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140922

Patch Set 1 #

Patch Set 2 : Rebase to ToT #

Patch Set 3 : Add ifdefs to fix chromeos compile #

Patch Set 4 : Remove more stray code #

Patch Set 5 : Remove more stray code #

Total comments: 4

Patch Set 6 : sky nits #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+1558 lines, -0 lines) Patch
M chrome/browser/themes/theme_service.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/DEPS View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/chrome_gtk_frame.h View 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/chrome_gtk_frame.cc View 1 chunk +153 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/gtk2_ui.h View 1 chunk +148 lines, -0 lines 1 comment Download
A chrome/browser/ui/libgtk2ui/gtk2_ui.cc View 1 2 3 4 1 chunk +761 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/gtk2_util.h View 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/gtk2_util.cc View 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/libgtk2ui.gyp View 1 chunk +48 lines, -0 lines 1 comment Download
A chrome/browser/ui/libgtk2ui/libgtk2ui_export.h View 1 chunk +29 lines, -0 lines 2 comments Download
A chrome/browser/ui/libgtk2ui/owned_widget_gtk2.h View 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/owned_widget_gtk2.cc View 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h View 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/skia_utils_gtk2.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +7 lines, -0 lines 0 comments Download
A ui/base/linux_ui.h View 1 2 3 4 5 1 chunk +50 lines, -0 lines 1 comment Download
A ui/base/linux_ui.cc View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Elliot Glaysher
First of what will be many patches to port GTK themeing to the aura build.
8 years, 6 months ago (2012-06-06 20:44:50 UTC) #1
sky
LGTM http://codereview.chromium.org/10545037/diff/10021/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc File chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc (right): http://codereview.chromium.org/10545037/diff/10021/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc#newcode18 chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc:18: #if defined(OS_LINUX) Can you move this into its ...
8 years, 6 months ago (2012-06-06 21:04:07 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/10545037/11022
8 years, 6 months ago (2012-06-06 21:23:55 UTC) #3
commit-bot: I haz the power
Try job failure for 10545037-11022 on win_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=35242 Step "update" is always ...
8 years, 6 months ago (2012-06-06 21:28:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/10545037/11022
8 years, 6 months ago (2012-06-07 00:08:04 UTC) #5
commit-bot: I haz the power
Change committed as 140922
8 years, 6 months ago (2012-06-07 01:25:54 UTC) #6
tfarina
8 years, 6 months ago (2012-06-07 17:02:05 UTC) #7
http://codereview.chromium.org/10545037/diff/11022/chrome/browser/ui/libgtk2u...
File chrome/browser/ui/libgtk2ui/gtk2_ui.h (right):

http://codereview.chromium.org/10545037/diff/11022/chrome/browser/ui/libgtk2u...
chrome/browser/ui/libgtk2ui/gtk2_ui.h:37: // LinuxShell:
nit: s/LinuxShell/ui::LinuxUI

http://codereview.chromium.org/10545037/diff/11022/chrome/browser/ui/libgtk2u...
File chrome/browser/ui/libgtk2ui/libgtk2ui.gyp (right):

http://codereview.chromium.org/10545037/diff/11022/chrome/browser/ui/libgtk2u...
chrome/browser/ui/libgtk2ui/libgtk2ui.gyp:41: 'owned_widget_gtk2.cc',
nit: list libgtk2ui_export.h here?

http://codereview.chromium.org/10545037/diff/11022/chrome/browser/ui/libgtk2u...
File chrome/browser/ui/libgtk2ui/libgtk2ui_export.h (right):

http://codereview.chromium.org/10545037/diff/11022/chrome/browser/ui/libgtk2u...
chrome/browser/ui/libgtk2ui/libgtk2ui_export.h:1: // Copyright (c) 2011 The
Chromium Authors. All rights reserved.
nit: s/2011/2012

http://codereview.chromium.org/10545037/diff/11022/chrome/browser/ui/libgtk2u...
chrome/browser/ui/libgtk2ui/libgtk2ui_export.h:9: // Defines LIBGTK2UI_EXPORT so
that functionality implemented by the aura module
nit: s/aura/libgtk2ui

http://codereview.chromium.org/10545037/diff/11022/ui/base/linux_ui.h
File ui/base/linux_ui.h (right):

http://codereview.chromium.org/10545037/diff/11022/ui/base/linux_ui.h#newcode25
ui/base/linux_ui.h:25: // minimum) GTK2 and GTK3. LinuxShell::instance() should
actually be a very
nit: s/LinuxShell/LinuxUI

Powered by Google App Engine
This is Rietveld 408576698