andybons | ad92aa3 | 2015-08-31 02:27:44 | [diff] [blame] | 1 | # Gtk vs ViewsGtk |
andybons | 3322f76 | 2015-08-24 21:37:09 | [diff] [blame] | 2 | |
andybons | ad92aa3 | 2015-08-31 02:27:44 | [diff] [blame] | 3 | ## Benefits of ViewsGtk |
andybons | 3322f76 | 2015-08-24 21:37:09 | [diff] [blame] | 4 | |
andybons | ad92aa3 | 2015-08-31 02:27:44 | [diff] [blame] | 5 | * Better code sharing. For example, don't have to duplicate tab layout or |
| 6 | bookmark bar layout code. |
| 7 | * Tab Strip |
| 8 | * Drawing |
| 9 | * All the animationy bits |
| 10 | * Subtle click selection behavior (curved corners) |
| 11 | * Drag behavior, including dropping of files onto the URL bar |
| 12 | * Closing behavior |
| 13 | * Bookmarks bar |
| 14 | * drag & drop behavior, including menus |
| 15 | * chevron? |
| 16 | * Easier for folks to work on both platforms without knowing much about the |
| 17 | underlying toolkits. |
| 18 | * Don't have to implement ui features twice. |
andybons | 3322f76 | 2015-08-24 21:37:09 | [diff] [blame] | 19 | |
andybons | ad92aa3 | 2015-08-31 02:27:44 | [diff] [blame] | 20 | ## Benefits of Gtk |
| 21 | |
| 22 | * Dialogs |
| 23 | * Native feel layout |
| 24 | * Font size changes (e.g., changing the system font size will apply to our |
| 25 | dialogs) |
xiaoyin.l | 1003c0b | 2016-12-06 02:51:17 | [diff] [blame] | 26 | * Better RTL (e.g., https://crbug.com/2822 https://crbug.com/5729 |
| 27 | https://crbug.com/6082 https://crbug.com/6103 https://crbug.com/6125 |
| 28 | https://crbug.com/8686 https://crbug.com/8649) |
andybons | ad92aa3 | 2015-08-31 02:27:44 | [diff] [blame] | 29 | * Being able to obey the user's system theme |
| 30 | * Accessibility for buttons and dialogs (but not for tabstrip and bookmarks) |
| 31 | * A better change at good remote X performance? |
| 32 | * We still would currently need Pango / Cairo for text layout, so it will be |
| 33 | more efficient to just draw that during the Gtk pipeline instead of with |
| 34 | Skia. |
| 35 | * Gtk widgets will automatically "feel and behave" like Linux. The behavior of |
| 36 | our own Views system does not necessarily feel right on Linux. |
| 37 | * People working on Windows features don't need to worry about breaking the |
| 38 | Linux build. |