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