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