0
Files
src/docs/gtk_vs_views_gtk.md
xiaoyin.l 1003c0bc03 Use HTTPS links for Google domains in docs
Since almost all Google domains support HTTPS, and it is a good practice to
use HTTPS wherever possible, thus in this patch, I changed most HTTP links
to https whose domains are known to support HTTPS well.

Modifications are generated by running these commands in src/docs directory:
sed -i 's/http:\/\/www.chromium.org/https:\/\/www.chromium.org/g' *.md
sed -i 's/http:\/\/developer.android.com/https:\/\/developer.android.com/g' *.md
sed -i 's/http:\/\/dev.chromium.org/https:\/\/dev.chromium.org/g' *.md
sed -i 's/http:\/\/build.chromium.org/https:\/\/build.chromium.org/g' *.md
sed -i 's/http:\/\/src.chromium.org/https:\/\/src.chromium.org/g' *.md
sed -i 's/http:\/\/crbug.com/https:\/\/crbug.com/g' *.md
sed -i 's/http:\/\/groups.google.com/https:\/\/groups.google.com/g' *.md
sed -i 's/http:\/\/cs.chromium.org/https:\/\/cs.chromium.org/g' *.md
sed -i 's/http:\/\/codereview.chromium.org/https:\/\/codereview.chromium.org/g' *.md

BUG=

Review-Url: https://codereview.chromium.org/2545363002
Cr-Commit-Position: refs/heads/master@{#436501}
2016-12-06 02:53:51 +00:00

1.5 KiB

Gtk vs ViewsGtk

Benefits of ViewsGtk

  • Better code sharing. For example, don't have to duplicate tab layout or bookmark bar layout code.
    • Tab Strip
      • Drawing
      • All the animationy bits
      • Subtle click selection behavior (curved corners)
      • Drag behavior, including dropping of files onto the URL bar
      • Closing behavior
    • Bookmarks bar
      • drag & drop behavior, including menus
      • chevron?
  • Easier for folks to work on both platforms without knowing much about the underlying toolkits.
  • Don't have to implement ui features twice.

Benefits of Gtk

  • Dialogs
  • Being able to obey the user's system theme
  • Accessibility for buttons and dialogs (but not for tabstrip and bookmarks)
  • A better change at good remote X performance?
  • We still would currently need Pango / Cairo for text layout, so it will be more efficient to just draw that during the Gtk pipeline instead of with Skia.
  • Gtk widgets will automatically "feel and behave" like Linux. The behavior of our own Views system does not necessarily feel right on Linux.
  • People working on Windows features don't need to worry about breaking the Linux build.