summaryrefslogtreecommitdiffstats
path: root/views/controls/textfield
Commit message (Collapse)AuthorAgeFilesLines
* views: Move textfield directory to ui/views/controls/.tfarina@chromium.org2011-11-2719-8858/+0
| | | | | | | | | | BUG=104039 R=maruel@chromium.org TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8713004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111660 0039d316-1c4b-4281-b951-d872f2087c98
* views: Move scrollbar and native directories to ui/views/controls/.tfarina@chromium.org2011-11-272-2/+2
| | | | | | | | | | BUG=104039 R=maruel@chromium.org TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8658010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111655 0039d316-1c4b-4281-b951-d872f2087c98
* Remove remaining defined(TOUCH_UI) under views/controlssaintlou@chromium.org2011-11-231-14/+1
| | | | | | | | | | BUG=105046 TEST=none Review URL: http://codereview.chromium.org/8651006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111272 0039d316-1c4b-4281-b951-d872f2087c98
* Redo of Issue http://codereview.chromium.org/8621006/saintlou@chromium.org2011-11-221-2/+0
| | | | | | | | | | | | | Removed most obvious TOUCH_UI tests. Either obvious because we have USE_AURA | TOUCH_UI or because it is in a GTK module. This CL focuses mainly on Views cleanup. BUG=105046 TEST=none Review URL: http://codereview.chromium.org/8632016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111204 0039d316-1c4b-4281-b951-d872f2087c98
* views: Move widget/ directory to ui/views.tfarina@chromium.org2011-11-225-6/+6
| | | | | | | | | | | BUG=104039 R=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110949 Review URL: http://codereview.chromium.org/8598031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111077 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110949 - views: Move widget/ directory to ui/views.wez@chromium.org2011-11-215-6/+6
| | | | | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8598031 TBR=tfarina@chromium.org Review URL: http://codereview.chromium.org/8547015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110953 0039d316-1c4b-4281-b951-d872f2087c98
* views: Move widget/ directory to ui/views.tfarina@chromium.org2011-11-215-6/+6
| | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8598031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110949 0039d316-1c4b-4281-b951-d872f2087c98
* views: Delete bubble, events, focus, layout directories and its stubbed files.tfarina@chromium.org2011-11-183-4/+4
| | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8566052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110787 0039d316-1c4b-4281-b951-d872f2087c98
* Implement font fallback in RenderTextWin, try #2.asvitkine@chromium.org2011-11-181-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The original change (http://codereview.chromium.org/8565011/) was reverted due to failing NativeTextfieldViewsTest.HitInsideTextAreaTest. The test was too strict when comparing cursor bounds and failed due to font fallback causing height differences in cursor bounds. This updated CL makes the test only check the x value of cursor bounds. Original CL description: This is done by using a metafile to capture the font that Uniscribe would use to render the text (since there is no API to get this from Uniscribe itself). Makes SCRIPT_CACHE be per-run, since different runs may have different fonts and the SCRIPT_CACHE cannot be re-used between these. This is similar to what is done in WebKit in FontCacheWin.cpp BUG=90426,104234 TEST=Run chrome.exe --use-pure-views and paste some Hebrew text into the omnibox. It should show up properly. Review URL: http://codereview.chromium.org/8570003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110749 0039d316-1c4b-4281-b951-d872f2087c98
* Fix flakyness with TextfieldViewsModelTest.Clipboard.asvitkine@chromium.org2011-11-171-2/+3
| | | | | | | | | | | | | | Set the clipboard text initially rather than using whatever happened to be in the clipboard at the time of the test. BUG=none TEST=Copy some non-ASCII text before running TextfieldViewsModelTest.Clipboard. Then, run the test. It should not fail. Review URL: http://codereview.chromium.org/8486024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110434 0039d316-1c4b-4281-b951-d872f2087c98
* views: Move ime and test directories to ui/views.tfarina@chromium.org2011-11-173-6/+6
| | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8581003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110399 0039d316-1c4b-4281-b951-d872f2087c98
* views: Move desktop and touchui directories to ui/views/.tfarina@chromium.org2011-11-161-1/+1
| | | | | | | | | BUG=104039 R=ben@chromium.org Review URL: http://codereview.chromium.org/8568022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110316 0039d316-1c4b-4281-b951-d872f2087c98
* Fix omnibox mouse click highlight/word select/focus issue in aura build.jennyz@chromium.org2011-11-152-38/+59
| | | | | | | | | | BUG=101774 TEST=NONE Review URL: http://codereview.chromium.org/8527015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110202 0039d316-1c4b-4281-b951-d872f2087c98
* Fix DoubleClickInterval and DragThreshold on aura.jennyz@chromium.org2011-11-151-0/+9
| | | | | | | | | | BUG=101774 TEST=NONE Review URL: http://codereview.chromium.org/8564015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110140 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a cause of flakyness in NativeTextfieldViewsTest.ReadOnlyTest.asvitkine@chromium.org2011-11-151-16/+26
| | | | | | | | | | | | | | | | | Make the test set the clipboard first before testing that CUT doesn't set the clipboard. Without this, the test would fail when run a second time due to existing clipboard contents. Also, refactor the code to add test helper methods for getting and setting clipboard text. BUG=none TEST=Run NativeTextfieldViewsTest.ReadOnlyTest twice. The second time should not fail. Review URL: http://codereview.chromium.org/8570002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110118 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded forward declarations in views.thestig@chromium.org2011-11-151-4/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8536004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110047 0039d316-1c4b-4281-b951-d872f2087c98
* Move views::Accelerator to ui in order to use it from aura code.mazda@chromium.org2011-11-141-3/+3
| | | | | | | | | | | This is the first preliminary change for the support of global keyboard shortcut. BUG=97255 TEST=None Review URL: http://codereview.chromium.org/8508055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109872 0039d316-1c4b-4281-b951-d872f2087c98
* Move views/ime/text_input_client.h to ui/base/ime/.yusukes@chromium.org2011-11-1110-22/+18
| | | | | | | | | | | | | | | | - Remove Views dependencies from text_input_client.h. - Change namespace from views:: to ui::. This change is necessary for RenderWidgetHostViewAura to support IME since RWHVA is Views agnostic and cannot directly use classes under views/ime/. BUG=chromium:97261 TEST=try Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109583 Review URL: http://codereview.chromium.org/8509034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109608 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 109583 - Move views/ime/text_input_client.h to ui/base/ime/.yusukes@google.com2011-11-1110-18/+22
| | | | | | | | | | | | | | | | | - Remove Views dependencies from text_input_client.h. - Change namespace from views:: to ui::. This change is necessary for RenderWidgetHostViewAura to support IME since RWHVA is Views agnostic and cannot directly use classes under views/ime/. BUG=chromium:97261 TEST=try Review URL: http://codereview.chromium.org/8509034 TBR=yusukes@google.com Review URL: http://codereview.chromium.org/8491035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109586 0039d316-1c4b-4281-b951-d872f2087c98
* Move views/ime/text_input_client.h to ui/base/ime/.yusukes@google.com2011-11-1110-22/+18
| | | | | | | | | | | | | | - Remove Views dependencies from text_input_client.h. - Change namespace from views:: to ui::. This change is necessary for RenderWidgetHostViewAura to support IME since RWHVA is Views agnostic and cannot directly use classes under views/ime/. BUG=chromium:97261 TEST=try Review URL: http://codereview.chromium.org/8509034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109583 0039d316-1c4b-4281-b951-d872f2087c98
* Support IMM32 reconversion on Windows.penghuang@chromium.org2011-10-312-6/+9
| | | | | | | | | | BUG=45605 TEST=Tested it with Google Japanese Input method on Win7 Review URL: http://codereview.chromium.org/8294026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107934 0039d316-1c4b-4281-b951-d872f2087c98
* Update native_textfield_win.cc to parallel previous changes to ↵pkasting@chromium.org2011-10-271-7/+8
| | | | | | | | | | omnibox_view_win.cc. BUG=101938 TEST=none Review URL: http://codereview.chromium.org/8343036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107635 0039d316-1c4b-4281-b951-d872f2087c98
* views: Change from wstring to string16 in controls/ directory.tfarina@chromium.org2011-10-212-8/+8
| | | | | | | | | BUG=68267 R=sky@chromium.org Review URL: http://codereview.chromium.org/8360008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106770 0039d316-1c4b-4281-b951-d872f2087c98
* WriteInto handles length_with_null values of 1 better.cbentzel@chromium.org2011-10-181-2/+4
| | | | | | | | | | | | | | | | In debug builds on VS2010, the old code triggered a debug assertion in xstring, since [0] was being accessed and the size of the array was 0. A |length_with_null| of 1 is considered a valid use of this function, so an alternate implementation is used which returns the data() pointer. BUG=None TEST=net_unittests --gtest_filter=*Digest* on debug on VS2010 works. Review URL: http://codereview.chromium.org/8143001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106062 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Combine cursor support for Linux and Windowsjamescook@chromium.org2011-10-171-5/+7
| | | | | | | | | | | | | | + Change gfx::NativeCursor to an int id on Aura. + Fix several cursor-related TODOs in GetCursor() methods. + Move X11 cursor cache into x11_util + Set platform-specific cursors in aura::DesktopHostWin and DesktopHostLinux BUG=99871 TEST=manual Review URL: http://codereview.chromium.org/8256001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105850 0039d316-1c4b-4281-b951-d872f2087c98
* 1. change the setters of gfx::SelectionModel to be private. Set one alone ↵xji@google.com2011-10-1213-78/+275
| | | | | | | | | | | | | | might make SelectionModel into un-stable state, which should not be allowed. 2. Removing SelectionModel(size_t, size_t) constructor. Introduce RenderText::SelectRange(const ui::Range&) to handle range. 3. revert removal of SelectRange/GetSelectedRange in r103188. BUG=90426 TEST=view_unittests. Review URL: http://codereview.chromium.org/8044004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105138 0039d316-1c4b-4281-b951-d872f2087c98
* Add gfx::kNullCursor to refer to "no cursor"oshima@chromium.org2011-10-111-1/+1
| | | | | | | | | | | | | linux/aura build uses unsigned long as NativeCursor which requires cast to use NULL. Define constants instead. BUG=none TEST=none Review URL: http://codereview.chromium.org/8216016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104848 0039d316-1c4b-4281-b951-d872f2087c98
* Simple clipboard support for auraoshima@chromium.org2011-10-071-46/+15
| | | | | | | | | | | BUG=99128 TEST=more views_unittests tests pass on linux/aura This include fixes from http://codereview.chromium.org/8150001 Review URL: http://codereview.chromium.org/8165016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104448 0039d316-1c4b-4281-b951-d872f2087c98
* Quick fix for NativeTextfieldViewsTest on win aura.msw@chromium.org2011-10-061-8/+16
| | | | | | | | | | | | | | | Initialize KeyEvent::character_ for synthesized events. Mark linux FAILS_/DISABLED_ (crbug.com/99128 & crbug.com/97845). The key_code/[unmodified_]/character code seems overly complex / platform-dependent. Hopefully yusukes or I can simplify and consolidate it a bit later. BUG=99128 TEST=NativeTextfieldViewsTest.* pass on win aura, correct expectations on linux [aura]. Review URL: http://codereview.chromium.org/8150001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104352 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix views_unittests and aura_unittests on linux.sadrul@chromium.org2011-10-061-2/+14
| | | | | | | | | | | | | | | . Use NativeScrollBarViews in aura and wayland. . Disable clipboard-related tests in TextfieldViewsModelTest until aura on linux has clipboard support. . Use osmesa implementation for aura_unittests. TBR=evan@chromium.org BUG=97845, 99128 TEST=views_unittests passes on linux with use_aura Review URL: http://codereview.chromium.org/8143021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104220 0039d316-1c4b-4281-b951-d872f2087c98
* Marks a number of tests as FAILS for aura. I filed bugs on the two keysky@chromium.org2011-10-051-16/+53
| | | | | | | | | | | | | | | | | areas, I plan on immediately fixing the widget one which is why I didn't file a bug. Hopefully when we get bots actually building and running tests, these changes will make them green. TBR since this is just marking tests FAILS. BUG=99129 99128 TEST=none TBR=ben@chromium.org R=ben@chromium.org Review URL: http://codereview.chromium.org/8142022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104098 0039d316-1c4b-4281-b951-d872f2087c98
* Fix selection handler position in touch.xji@google.com2011-10-031-4/+4
| | | | | | | | BUG=90426 TEST=compile with touch, try selection in bidi text. run views_unittests --gtest_filter=TouchSelectionControllerImplTest.* Review URL: http://codereview.chromium.org/8095002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103755 0039d316-1c4b-4281-b951-d872f2087c98
* views: Convert NativeTextfieldViews to use the new callback system.tfarina@chromium.org2011-10-012-5/+8
| | | | | | | | R=sky@chromium.org,ajwong@chromium.org Review URL: http://codereview.chromium.org/8070007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103593 0039d316-1c4b-4281-b951-d872f2087c98
* Fix omnibox state for each tab.xji@google.com2011-09-2813-164/+158
| | | | | | | | | | ui::Range only saves cursor's logical positions. In order to restore cursor's visual position, need to save and restore gfx::SelectionModel. BUG=90426 TEST=start chromeos --use-pure-views, type in "abcABC" in omnibox, where "ABC" stands for Hebrew characters. Mouse click on right half of 'c' so that cursor is placed at "abc|CBA". Create a new tab. Click to restore the previous tab page, cursor should be displayed the same as before "abc|CBA", not "abcCBA|". Review URL: http://codereview.chromium.org/7973007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103188 0039d316-1c4b-4281-b951-d872f2087c98
* Consolidate/cleanup event cracking code; single out GdkEvents; saves ~850 lines.msw@chromium.org2011-09-261-2/+2
| | | | | | | | | | | | | | | | | | | | | Move ui::NativeEvent typdefs and common functions to ui/base/events.h. Remove NativeEvent2 typedef, single out GdkEvent* uses that should be removed. Implement platform specific ui/base/[platform]/events_[platform].cc. Revise views::NativeEvent definitions (to support Aura abstraction). Consolidate Event[Type/Flags/Location]FromNative(), GetMouseWheelOffset(), etc. Remove GetRepeatCount(), GetWindowsFlags(), IsExtendedKey(), etc. Add IsMouseEvent(), KeyboardCodeFromNative(), EF_EXTENDED flag, etc. Localize GetFlagsFromGdkEvent(), move some file locals to new helpers files. Move views/touchui/touch_factory.h|cc to ui/base/touch. Stop mixing Windows mouse events' MK_*BUTTON into their wParams. BUG=93945 TEST=No build breaks (many configs...), no mouse/key behavior changes. Review URL: http://codereview.chromium.org/7942004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102815 0039d316-1c4b-4281-b951-d872f2087c98
* These are the changes necessary for views to be able to build w/ use_aura ↵davemoore@chromium.org2011-09-223-5/+3
| | | | | | | | | | | implying no gtk. BUG=97131 TEST=views_unittests Review URL: http://codereview.chromium.org/7996008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102335 0039d316-1c4b-4281-b951-d872f2087c98
* This is a reapply of xji@google.com2011-09-213-12/+687
| | | | | | | | | | | | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=102006 fix know issues in RenderText 1. add tests. 2. change SelectWord() to use BreakIterator, so it works for Chinese and Complex script. 3. DELETE/ReplaceChar delete/replace a whole grapheme. ReplaceTextInternal should only replace one grapheme when there is no selection. 4. pointing to position outside of text returns HOME/END position. 5. based on Chrome Linux omnibox and gedit, given "abc| def", double click should select " " instead of "abc". Change test expectation. BUG=90426 TEST=compile with touchui=1 test omnibox. run views_unittests.NativeTextfieldViewsTest/TextfieldViewsModelTest Review URL: http://codereview.chromium.org/7841056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102160 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 102006 - fix know issues in RenderTextsky@chromium.org2011-09-203-687/+12
| | | | | | | | | | | | | | | | | | 1. add tests. 2. change SelectWord() to use BreakIterator, so it works for Chinese and Complex script. 3. DELETE/ReplaceChar delete/replace a whole grapheme. ReplaceTextInternal should only replace one grapheme when there is no selection. 4. pointing to position outside of text returns HOME/END position. 5. based on Chrome Linux omnibox and gedit, given "abc| def", double click should select " " instead of "abc". Change test expectation. BUG=90426 TEST=compile with touchui=1 test omnibox. run views_unittests.NativeTextfieldViewsTest/TextfieldViewsModelTest Review URL: http://codereview.chromium.org/7841056 TBR=xji@google.com Review URL: http://codereview.chromium.org/7982013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102020 0039d316-1c4b-4281-b951-d872f2087c98
* fix know issues in RenderTextxji@google.com2011-09-203-12/+687
| | | | | | | | | | | | | | | 1. add tests. 2. change SelectWord() to use BreakIterator, so it works for Chinese and Complex script. 3. DELETE/ReplaceChar delete/replace a whole grapheme. ReplaceTextInternal should only replace one grapheme when there is no selection. 4. pointing to position outside of text returns HOME/END position. 5. based on Chrome Linux omnibox and gedit, given "abc| def", double click should select " " instead of "abc". Change test expectation. BUG=90426 TEST=compile with touchui=1 test omnibox. run views_unittests.NativeTextfieldViewsTest/TextfieldViewsModelTest Review URL: http://codereview.chromium.org/7841056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102006 0039d316-1c4b-4281-b951-d872f2087c98
* Aura under Linux is enabled with:saintlou@chromium.org2011-09-181-0/+4
| | | | | | | | | | | 'use_aura': 1, BUG=none TEST=none Review URL: http://codereview.chromium.org/7850026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101704 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Menu Delegate for RWHVV, also fine tune the selection controller ↵varunjain@chromium.org2011-09-102-2/+2
| | | | | | | | | | | | hooks. BUG=none TEST=none Review URL: http://codereview.chromium.org/7863018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100581 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Pango RenderText for Linux.xji@google.com2011-09-071-1/+2
| | | | | | | | | | Follow the I18N recommendations for BiDi text editing. BUG=90426 TEST=--use-pure-views text editing Review URL: http://codereview.chromium.org/7511029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99987 0039d316-1c4b-4281-b951-d872f2087c98
* Identify the omnibox as a URL field.bryeung@chromium.org2011-09-064-9/+92
| | | | | | | | | | | | | | Although the omnibox is not strictly a URL field, for the purposes of TOUCH_UI, we would prefer to show the URL-friendly keyboard for the omnibox instead of a plain-text keyboard. BUG=none TEST=updated unittest Review URL: http://codereview.chromium.org/7826039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99737 0039d316-1c4b-4281-b951-d872f2087c98
* Get views_unittests to compile (but not run).ben@chromium.org2011-09-022-2/+12
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7824021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99278 0039d316-1c4b-4281-b951-d872f2087c98
* Fix touch ui crash in NativeTextfieldViewsTest.DragAndDrop_InitiateDrag.xji@google.com2011-09-021-0/+2
| | | | | | | TEST=compile with touch ui, run NativeTextfieldViewsTest.DragAndDrop_InitiateDrag Review URL: http://codereview.chromium.org/7721002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99270 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Uniscribe RenderText for Windows.msw@chromium.org2011-08-303-17/+10
| | | | | | | | | | | | | | | | | | | | Follow the I18N recommendations for BiDi text editing. Visual cursor movement and logical selection over BiDi text. Cleanup some common RenderText code and interfaces. Fixup TextfieldExample for views_examples. Known issues: Word breaking is not well implemented. Font sizes and vertical alignments are slightly off. Text styles break runs (colors can affect glyph shaping). Composition/selection ranges aren't stylized. BUG=90426 TEST=--use-pure-views text editing Review URL: http://codereview.chromium.org/7458014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98785 0039d316-1c4b-4281-b951-d872f2087c98
* Move the mouse wheel utils from views to ui\base\win, to get rid of some ↵jam@chromium.org2011-08-261-2/+2
| | | | | | | | views dependencies in content. Review URL: http://codereview.chromium.org/7753025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98479 0039d316-1c4b-4281-b951-d872f2087c98
* Wayland support for views. views_desktop on Wayland.backer@chromium.org2011-08-261-0/+20
| | | | | | | | | | | | | | | | | | | | This CL depends on: * http://codereview.chromium.org/7457023 * http://codereview.chromium.org/7467007 * http://codereview.chromium.org/7473010 Wayland requires newer libraries than Ubuntu currently provides. I've created a list of required dependencies: https://sites.google.com/a/google.com/chrome_on_wayland/home/wayland-build-dependencies BUG= TEST=Built Chrome to verify that Wayland dependencies and changes don't interfere with the usual build. Review URL: http://codereview.chromium.org/7464027 Patch from Daniel Nicoara <dnicoara@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98453 0039d316-1c4b-4281-b951-d872f2087c98
* Moves ownership of MenuItemView to MenuRunner as well as responbilitysky@chromium.org2011-08-252-10/+11
| | | | | | | | | | | | | | | for showing (running) the menu entirely to MenuRunner. This way I can guarantee if MenuRunner is deleted, the related menu classes aren't deleted until the nested message loop completes. BUG=57890 TEST=thorougly test all menus in chrome: bookmarks, wrench menu, context menu on page, extension menus... R=ben@chromium.org Review URL: http://codereview.chromium.org/7720012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98179 0039d316-1c4b-4281-b951-d872f2087c98
* Get views_unittests pass on touch buildoshima@google.com2011-08-241-1/+4
| | | | | | | | | | | | | | | | * Changed views test to use ViewsTestBase. * Always calls ViewsTestBase::SetUp/TearDown. Added flags to check if this is enforced. * Excluded tests that does not make sense on touch/pure views build. BUG=none TEST=views_unittets now passes on touch build, with a few exceptions below. WidgetTest.GrabUngrab: assigned to sadrul NativeTextfieldViewsTest.DragAndDrop_XXX: msw will look into it. Review URL: http://codereview.chromium.org/7720020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98128 0039d316-1c4b-4281-b951-d872f2087c98