tree: 80a5aa68087846b2452437d381d6db1d47ae99c4 [path history] [tgz]
  1. animation_example.cc
  2. animation_example.h
  3. ax_example.cc
  4. ax_example.h
  5. box_layout_example.cc
  6. box_layout_example.h
  7. bubble_example.cc
  8. bubble_example.h
  9. BUILD.gn
  10. button_example.cc
  11. button_example.h
  12. button_sticker_sheet.cc
  13. button_sticker_sheet.h
  14. checkbox_example.cc
  15. checkbox_example.h
  16. colored_dialog_example.cc
  17. colored_dialog_example.h
  18. colors_example.cc
  19. colors_example.h
  20. combobox_example.cc
  21. combobox_example.h
  22. create_examples.cc
  23. create_examples.h
  24. DEPS
  25. dialog_example.cc
  26. dialog_example.h
  27. example_base.cc
  28. example_base.h
  29. example_combobox_model.cc
  30. example_combobox_model.h
  31. examples_exit_code.h
  32. examples_main.cc
  33. examples_main_proc.cc
  34. examples_main_proc.h
  35. examples_skia_gold_pixel_diff.cc
  36. examples_skia_gold_pixel_diff.h
  37. examples_unittest.cc
  38. examples_unittest_main.cc
  39. examples_views_delegate_chromeos.cc
  40. examples_views_delegate_chromeos.h
  41. examples_window.cc
  42. examples_window.h
  43. examples_window_with_content.cc
  44. examples_window_with_content.h
  45. examples_with_content_main.cc
  46. fade_animation.cc
  47. fade_animation.h
  48. flex_layout_example.cc
  49. flex_layout_example.h
  50. ink_drop_example.cc
  51. ink_drop_example.h
  52. label_example.cc
  53. label_example.h
  54. layout_example_base.cc
  55. layout_example_base.h
  56. link_example.cc
  57. link_example.h
  58. login_bubble_dialog_example.cc
  59. login_bubble_dialog_example.h
  60. menu_example.cc
  61. menu_example.h
  62. message_box_example.cc
  63. message_box_example.h
  64. multiline_example.cc
  65. multiline_example.h
  66. notification_example.cc
  67. notification_example.h
  68. OWNERS
  69. progress_bar_example.cc
  70. progress_bar_example.h
  71. radio_button_example.cc
  72. radio_button_example.h
  73. README.md
  74. scroll_view_example.cc
  75. scroll_view_example.h
  76. slider_example.cc
  77. slider_example.h
  78. square_ink_drop_example.cc
  79. square_ink_drop_example.h
  80. tabbed_pane_example.cc
  81. tabbed_pane_example.h
  82. table_example.cc
  83. table_example.h
  84. text_example.cc
  85. text_example.h
  86. textarea_example.cc
  87. textarea_example.h
  88. textfield_example.cc
  89. textfield_example.h
  90. throbber_example.cc
  91. throbber_example.h
  92. toggle_button_example.cc
  93. toggle_button_example.h
  94. tree_view_example.cc
  95. tree_view_example.h
  96. vector_example.cc
  97. vector_example.h
  98. views_examples.exe.manifest
  99. views_examples_export.h
  100. views_examples_resources.grd
  101. views_examples_with_content_export.h
  102. webview_example.cc
  103. webview_example.h
  104. widget_example.cc
  105. widget_example.h
ui/views/examples/README.md

views_examples and views_examples_with_content are similar tools to show all the views widgets with some varied styles. The latter has extra support to web_view as well.

To run either of the programs:

<output_dir>/<program> [--enable-examples=<example1,[example2...]>]

To get help from the programs:

<output_dir>/<program> --help will print out the above usage info.

<output_dir>/<program> --enable-examples will print out all names of available examples and execute as if all (the default) are specified.

The current available examples are listed below:

  • Accessibility Features
  • Box Layout
  • Bubble
  • Button
  • Button (Sticker Sheet)
  • Checkbox
  • Colored Dialog
  • Combo Box
  • Dialog
  • Flex Layout
  • Label
  • Link
  • Login Bubble Dialog
  • Menu
  • Message Box View
  • Multiline RenderText
  • Native Theme Colors
  • Notification
  • Progress Bar
  • Radio Button
  • Scroll View
  • Slider
  • Tabbed Pane
  • Table
  • Text Styles
  • Textarea
  • Textfield
  • Throbber
  • Toggle Button
  • Tree View
  • Vector Icon
  • WebView
  • Widget

Note: Both programs are available on all desktop platforms which support Views toolkit, except views_examples unavailable on Mac.