Which GUI library does Google Chrome use?

后端 未结 5 1056
庸人自扰
庸人自扰 2020-12-07 13:41

What GUI library does Google Chrome use?

相关标签:
5条回答
  • 2020-12-07 13:45

    On Linux it uses GTK+, on Mac OS X Cocoa, and on Windows a custom views library, see http://www.youtube.com/watch?v=WsvNebq1dRg and also documents from http://dev.chromium.org:

    • http://dev.chromium.org/developers/design-documents/chromeviews
    • http://dev.chromium.org/developers/design-documents/views-windowing
    0 讨论(0)
  • 2020-12-07 13:46

    On Windows WTL for the (well...) chrome, and WebKit for the HTML rendering.

    0 讨论(0)
  • 2020-12-07 14:01

    You probably want their document entitled "Conventions and patterns for multi-platform development." Your answer is

    Mac -> Cocoa,
    Linux -> GTK,
    Windows -> Their own custom "Windows Views"
    

    You'll also see have an experimental "GTK Views", so it sounds like they're aiming for their own abstraction?

    0 讨论(0)
  • 2020-12-07 14:04

    As of May 2014 Google Chrome uses it's own custom UI stack called Aura. This is currently the case for all platforms except OSX.

    References:

    • PSA: Aura Plans
    • Google Replacing GTK2 With Aura in Chrome 35
    0 讨论(0)
  • 2020-12-07 14:06

    WTL on Windows, as Shay said. All UI in the Mac and Linux versions is being written from scratch in Cocoa and GTK+ respectively. Only the logic (and WebKit, which renders the web pages) is fully cross-platform.

    0 讨论(0)
提交回复
热议问题