summaryrefslogtreecommitdiffstats
path: root/views/examples
Commit message (Collapse)AuthorAgeFilesLines
* Implement selection of rows on mouse clicks in TableView2 for GTK.satorux@chromium.org2010-03-171-1/+2
| | | | | | | | | | | | Before this change, clicking rows in TableView2 for GTK did not select the clicked rows. TEST=manually with view_examples. BUG=none Review URL: http://codereview.chromium.org/1015005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41825 0039d316-1c4b-4281-b951-d872f2087c98
* win: string_util.h -> utf_string_conversions.h fix.jhawkins@google.com2010-03-112-1/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/830002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41292 0039d316-1c4b-4281-b951-d872f2087c98
* Replace lots of "int x, int y" with gfx::Point. Also use gfx::Size and ↵pkasting@chromium.org2010-03-081-1/+2
| | | | | | | | | | gfx::Rect in a few more places. BUG=none TEST=none Review URL: http://codereview.chromium.org/669130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40966 0039d316-1c4b-4281-b951-d872f2087c98
* Get the initial selection work. and removed unnecessary initialization.oshima@chromium.org2010-02-021-1/+1
| | | | | | | | | BUG=33609 TEST=added the initial selected item in combobox example. Review URL: http://codereview.chromium.org/567004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37808 0039d316-1c4b-4281-b951-d872f2087c98
* SingleSplitView exampleoshima@chromium.org2010-01-252-0/+88
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/555078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37031 0039d316-1c4b-4281-b951-d872f2087c98
* submenu exampleoshima@chromium.org2010-01-201-1/+6
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/549101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36663 0039d316-1c4b-4281-b951-d872f2087c98
* Clarify licenses on a bunch of files.evan@chromium.org2009-12-291-1/+1
| | | | | | | | | | | In this process, I also filed bugs on various projects we depend on that also have unclear licenses. BUG=28291 Review URL: http://codereview.chromium.org/521009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35323 0039d316-1c4b-4281-b951-d872f2087c98
* Add views/examples/menu_example.hsatorux@chromium.org2009-12-162-1/+207
| | | | | | | | | | | | | The example demonstrates how to create a menu with regular, radio, and check items. The example revealed a bug: http://crbug.com/30310. I have a separate change to fix the bug. TEST=try; manually BUG=30310 Review URL: http://codereview.chromium.org/495017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34640 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a hidden dependency from view_examples to chrome on Linux.satorux@chromium.org2009-12-121-2/+0
| | | | | | | | | | | | | We no longer need to build chrome first just for the resource files. Adding a dependency to "packed_resources" is sufficient. TEST=try; locally clean built view_examples on linux BUG=29969 Review URL: http://codereview.chromium.org/487020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34412 0039d316-1c4b-4281-b951-d872f2087c98
* Add views/examples/slider_example.hsatorux@chromium.org2009-12-102-2/+63
| | | | | | | | | | | | | The example demonstrates how to use the Slider class. BUG=none TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34142 Review URL: http://codereview.chromium.org/466055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34223 0039d316-1c4b-4281-b951-d872f2087c98
* Compute where to place a popup widget in WidgetExample.satorux@chromium.org2009-12-091-1/+12
| | | | | | | | | | | This is to demonstrate how to compute a position. TEST=manually BUG=none Review URL: http://codereview.chromium.org/460104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34149 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 34142 - Add views/examples/slider_example.hjrg@chromium.org2009-12-092-57/+1
| | | | | | | | | | | | | | The example demonstrates how to use the Slider class. BUG=none TEST=manually Review URL: http://codereview.chromium.org/466055 TBR=satorux@chromium.org Review URL: http://codereview.chromium.org/467062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34144 0039d316-1c4b-4281-b951-d872f2087c98
* Add views/examples/slider_example.hsatorux@chromium.org2009-12-092-1/+57
| | | | | | | | | | | The example demonstrates how to use the Slider class. BUG=none TEST=manually Review URL: http://codereview.chromium.org/466055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34142 0039d316-1c4b-4281-b951-d872f2087c98
* Porting the table view to Linux toolkit views.jcampan@chromium.org2009-12-012-3/+3
| | | | | | | | | | | | | | It is the initial implementation, it is still missing: - row focusing - resizable columns - autosize columns BUG=None TEST=Run the unit-tests, play with the TableView2 tab in the view examples. Review URL: http://codereview.chromium.org/434066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33400 0039d316-1c4b-4281-b951-d872f2087c98
* Add views/examples/widget_example.h.satorux@google.com2009-11-192-1/+93
| | | | | | | | | | | | | The example demonstrates how to create a popup widget. BUG=none TEST=manually tested on a linux machine. Review URL: http://codereview.chromium.org/406001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32490 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the build of view_examples for Linux.yusukes@google.com2009-11-131-0/+6
| | | | | | | | | | | | | | TableView and TableView2 are not yet ported to Linux. #ifdef out the related code for Linux. BUG=none TEST=manually built and ran view_examples on Linux Original patch by satorux@chromium.org via: http://codereview.chromium.org/384117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31894 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring of the TableView so it uses NativeViewControl.jcampan@chromium.org2009-11-124-0/+353
| | | | | | | | | | | | | At this point it does not support grouping or sorting. Mostly refactoring things from TableView to TableView2 and NativeTableWin. BUG=None TEST=Unit-tests and view examples for now. R=sky Review URL: http://codereview.chromium.org/387021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31741 0039d316-1c4b-4281-b951-d872f2087c98
* Remove themes/default.dll and merge the resources into chrome.dll.tc@google.com2009-11-021-1/+0
| | | | | | | | | | | This gives us one less file to load on startup. This does mean that some tests need to explicitly include theme_resources.rc. BUG=24035 Review URL: http://codereview.chromium.org/348033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30755 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed view example. It was failing because some of view classes requires ↵oshima@chromium.org2009-10-3010-111/+140
| | | | | | | | | | | | | | | | | | WidgetGTK in view hierarchy to call methods on it. * added ContainerExamlpeBase that defers the creation of such views after WidgetGTK available. minor fixes * replaced unnecessary includes with forward decls. * make sure we don't try to set negative hight to viewport. BUG=None TEST=build & run view_examples Review URL: http://codereview.chromium.org/347010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30586 0039d316-1c4b-4281-b951-d872f2087c98
* Porting the view examples to Windows. jcampan@chromium.org2009-10-2014-276/+329
| | | | | | | | | | | | | | Some refactoring done to the tests also. See original review at: http://codereview.chromium.org/295013/show BUG=None TEST=Make sure the view examples build and run on Windows and Linux. Review URL: http://codereview.chromium.org/294026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29525 0039d316-1c4b-4281-b951-d872f2087c98
* AppendText was appending twice due to bad merge happened in the past.oshima@chromium.org2009-10-121-1/+7
| | | | | | | | | | | Added append scenario to view_examples BUG=None TEST=run unit_tests and verify with view_examples. Review URL: http://codereview.chromium.org/271055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28724 0039d316-1c4b-4281-b951-d872f2087c98
* The textfield's text was not updated when text is updated by input.oshima@chromium.org2009-10-091-4/+28
| | | | | | | | | BUG=None TEST=view_examples now has button to show & update textfield's text. Review URL: http://codereview.chromium.org/267040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28629 0039d316-1c4b-4281-b951-d872f2087c98
* * Password style support for gtk's textfield impl.oshima@chromium.org2009-10-092-0/+78
| | | | | | | | | | | * Added x11 dependency to view_examples. Looks like dependency has changed a bit. BUG=none TEST=build & run view_examples target. Review URL: http://codereview.chromium.org/270032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28501 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed the header file not found issue of 222030. (The file has been renamed ↵oshima@chromium.org2009-09-292-0/+123
| | | | | | | | | | | | | after review) See http://codereview.chromium.org/222030 for the original review BUG=none TEST=compiled & tested chrome target on win/linux, view_examples target on linux. Review URL: http://codereview.chromium.org/242036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27513 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "gtk implemenation of Scrollbar."agl@chromium.org2009-09-282-123/+0
| | | | | | | This reverts commit 27381 (build break). git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27384 0039d316-1c4b-4281-b951-d872f2087c98
* gtk implemenation of Scrollbar.oshima@chromium.org2009-09-282-0/+123
| | | | | | | | | | | enabled ScrollView on linux. BUG=none TEST=none Review URL: http://codereview.chromium.org/222030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27381 0039d316-1c4b-4281-b951-d872f2087c98
* Another case where we need to allow "this" in the constructor.nsylvain@chromium.org2009-09-271-4/+9
| | | | | | Review URL: http://codereview.chromium.org/248016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27354 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build breakage by disabling a warning.nsylvain@chromium.org2009-09-272-4/+10
| | | | | | | | tbr:oshima@chromium.org Review URL: http://codereview.chromium.org/242028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27352 0039d316-1c4b-4281-b951-d872f2087c98
* More examples:oshima@chromium.org2009-09-234-1/+280
| | | | | | | | | | | MessageBox, TabbedPane and RadioButton BUG=none TEST=none Review URL: http://codereview.chromium.org/214053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26937 0039d316-1c4b-4281-b951-d872f2087c98
* View examples:oshima@chromium.org2009-09-227-0/+345
I'm planning to move these to unit_test using Jay's testing framework, but let's check in it first, and then I will refactor and move them to unittest. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26780 0039d316-1c4b-4281-b951-d872f2087c98