tree: c9553f8eae59dfd8d64d95ba82ba5e20fb0bbc77 [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. combobox_example.cc
  19. combobox_example.h
  20. create_examples.cc
  21. create_examples.h
  22. DEPS
  23. dialog_example.cc
  24. dialog_example.h
  25. example_base.cc
  26. example_base.h
  27. example_combobox_model.cc
  28. example_combobox_model.h
  29. examples_exit_code.h
  30. examples_main.cc
  31. examples_main_proc.cc
  32. examples_main_proc.h
  33. examples_skia_gold_pixel_diff.cc
  34. examples_skia_gold_pixel_diff.h
  35. examples_unittest.cc
  36. examples_unittest_main.cc
  37. examples_views_delegate_chromeos.cc
  38. examples_views_delegate_chromeos.h
  39. examples_window.cc
  40. examples_window.h
  41. examples_window_with_content.cc
  42. examples_window_with_content.h
  43. examples_with_content_main.cc
  44. fade_animation.cc
  45. fade_animation.h
  46. flex_layout_example.cc
  47. flex_layout_example.h
  48. label_example.cc
  49. label_example.h
  50. layout_example_base.cc
  51. layout_example_base.h
  52. link_example.cc
  53. link_example.h
  54. login_bubble_dialog_example.cc
  55. login_bubble_dialog_example.h
  56. menu_example.cc
  57. menu_example.h
  58. message_box_example.cc
  59. message_box_example.h
  60. multiline_example.cc
  61. multiline_example.h
  62. native_theme_example.cc
  63. native_theme_example.h
  64. notification_example.cc
  65. notification_example.h
  66. OWNERS
  67. progress_bar_example.cc
  68. progress_bar_example.h
  69. radio_button_example.cc
  70. radio_button_example.h
  71. README.md
  72. scroll_view_example.cc
  73. scroll_view_example.h
  74. slider_example.cc
  75. slider_example.h
  76. tabbed_pane_example.cc
  77. tabbed_pane_example.h
  78. table_example.cc
  79. table_example.h
  80. text_example.cc
  81. text_example.h
  82. textarea_example.cc
  83. textarea_example.h
  84. textfield_example.cc
  85. textfield_example.h
  86. throbber_example.cc
  87. throbber_example.h
  88. toggle_button_example.cc
  89. toggle_button_example.h
  90. tree_view_example.cc
  91. tree_view_example.h
  92. vector_example.cc
  93. vector_example.h
  94. views_examples.exe.manifest
  95. views_examples_export.h
  96. views_examples_resources.grd
  97. views_examples_with_content_export.h
  98. webview_example.cc
  99. webview_example.h
  100. widget_example.cc
  101. 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.