summaryrefslogtreecommitdiffstats
path: root/views/views.gyp
Commit message (Collapse)AuthorAgeFilesLines
* TextStyles in TextfieldViewsoshima@google.com2011-06-011-0/+2
| | | | | | | | | | | | | | | | | | | | | - TextStyle class that specify the styles. - Model owns TextStyle object. No need for client to manage memory. - It updates style list each time new item is added and resolves overlap so that Paint method can simply iterate and paint them. - I changed selection so that it simply changes background of the selected text. This seems to be how webkit does and is much simpler. URL decoration in omnibox Renamed ClearCompositionText -> CancelCompositionText No need to review changes to range. (http://codereview.chromium.org/7039051/) BUG=none TEST=added tests for textfield views. Review URL: http://codereview.chromium.org/7047023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87552 0039d316-1c4b-4281-b951-d872f2087c98
* Rough cut at window activation.ben@chromium.org2011-05-261-2/+4
| | | | | | | | http://crbug.com/84070 TEST=none Review URL: http://codereview.chromium.org/7071017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86869 0039d316-1c4b-4281-b951-d872f2087c98
* Add a desktop test harness.ben@chromium.org2011-05-261-0/+55
| | | | | | | | http://crbug.com/83663 TEST=none Review URL: http://codereview.chromium.org/7068036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86831 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a basic NativeWindowViews.ben@chromium.org2011-05-251-0/+4
| | | | | | | | http://crbug.com/83663 TEST=none Review URL: http://codereview.chromium.org/7069022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86736 0039d316-1c4b-4281-b951-d872f2087c98
* Add MenuModelAdapter to wrap ui::MenuModel with views::MenuDelegate interface.rhashimoto@chromium.org2011-05-251-0/+3
| | | | | | | | | | | | | | | | | - added ViewsDelegate::GetDispositionForEvent() pure virtual - added MenuModelAdapter - added unit test for MenuModelAdapter - added comment for MenuModel::GetFirstItemIndex() that callers may pass NULL for NativeMenu argument - fixed index offset bug in MenuModel::GetModelAndIndexForCommandId() - fixed spurious call to MenuDelegate::IsCommandEnabled() BUG=none TEST=included Review URL: http://codereview.chromium.org/7067032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86677 0039d316-1c4b-4281-b951-d872f2087c98
* Remove files that don't exist, and fix typos in gyp filessadrul@chromium.org2011-05-251-6/+0
| | | | | | | | | BUG=none TEST=things still work Review URL: http://codereview.chromium.org/6990028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86533 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up more of the NativeWidgetViews.ben@chromium.org2011-05-241-0/+2
| | | | | | | | | | | - Move NativeWidgetView to its own file. - Enhances the example to contain a button. http://crbug.com/83663 TEST=none Review URL: http://codereview.chromium.org/7065042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86527 0039d316-1c4b-4281-b951-d872f2087c98
* Add NativeWidgetViews. This is a stub implementation that mostly just defers ↵ben@chromium.org2011-05-241-0/+4
| | | | | | | | | | to its parent NativeWidget. http://crbug.com/83663 TEST=none Review URL: http://codereview.chromium.org/6990048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86488 0039d316-1c4b-4281-b951-d872f2087c98
* Fix touch compile after r86390.sadrul@chromium.org2011-05-241-2/+0
| | | | | | | | | | ibus is not usable on lucid, so touchui build still needs to use ibus-gtk. BUG=none TEST=touchui compiles TBR=hashimoto@chromium.org, oshima@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86394 0039d316-1c4b-4281-b951-d872f2087c98
* Fix to make InputMethodIBus usable on every ChromeOS device (even without ↵hashimoto@chromium.org2011-05-241-18/+11
| | | | | | | | | | | | | | TouchUI) Add switch "--enable-inputmethod-ibus" to enable InputMethodIBus on ChromeOS Modify gyp files to link IBus BUG=chromium-os:15566 TEST=manually Review URL: http://codereview.chromium.org/7004029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86390 0039d316-1c4b-4281-b951-d872f2087c98
* Globally replace <(library) with static_libraryevan@chromium.org2011-05-191-1/+1
| | | | | | | | | | | We provided <(library) as a variable to support a peculiar build configuration on Linux. We no longer support that build configuration, so we can simplify this code to no longer use a variable. Review URL: http://codereview.chromium.org/7051014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86004 0039d316-1c4b-4281-b951-d872f2087c98
* Make use of the new cross-platform POSIX defines toolkit_uses_gtk, os_posix, ↵tony@chromium.org2011-05-191-5/+5
| | | | | | | | | | and use_x11 for the gyp files. For lists of source files that use a mix of POSIX and Gtk APIs, toolkit_uses_gtk was given precedence. I also added Solaris to the remaining grit files. Patch by ruben (chromium@hybridsource.org). Review URL: http://codereview.chromium.org/7011032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85979 0039d316-1c4b-4281-b951-d872f2087c98
* Rename WindowWin|Gtk->NativeWindowWin|Gtkben@chromium.org2011-05-191-5/+5
| | | | | | | | | BUG=72040 TEST=none TBR=sky Review URL: http://codereview.chromium.org/7048006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85969 0039d316-1c4b-4281-b951-d872f2087c98
* Rename WidgetWin/Gtk -> NativeWidgetWin/Gtk.ben@chromium.org2011-05-191-7/+7
| | | | | | | | | BUG=72040 TEST=none TBR=sky Review URL: http://codereview.chromium.org/7039050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85910 0039d316-1c4b-4281-b951-d872f2087c98
* Added Unit Testing for pure Views Comboboxsaintlou@chromium.org2011-05-111-0/+1
| | | | | | | | | BUG=none TEST=out/Debug/views_unittests --gtest_filter=NativeComboboxViewsTest.KeyTest Review URL: http://codereview.chromium.org/6980007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84989 0039d316-1c4b-4281-b951-d872f2087c98
* Tweaks Compositor API. To make it possible to land this I've ifdef'dsky@chromium.org2011-05-101-0/+1
| | | | | | | | | | | | the code in a couple of places. BUG=none TEST=none R=ben@chromium.org,wjmaclean@chromium.org,rjkroege@chromium.org Review URL: http://codereview.chromium.org/6999005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84823 0039d316-1c4b-4281-b951-d872f2087c98
* Enable TestViewsDelegates for views unittests and views_examples by defaultoshima@google.com2011-05-101-1/+2
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6980004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84720 0039d316-1c4b-4281-b951-d872f2087c98
* Factored code drawing the focusable border used in some Views controlssaintlou@chromium.org2011-05-031-0/+2
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6910009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83849 0039d316-1c4b-4281-b951-d872f2087c98
* Initial implementation of pure Views combobox (aka dropdown list). The ↵saintlou@chromium.org2011-04-291-0/+2
| | | | | | | | | | | | | | | | | following known missing items will be added in a separate CL + RTL handling + possible vertical centering of menu (UX) + Handle Key events for accessibility + Factor the focused border also present in textfield + look of the double arrow (now drawn in skia) BUG=none TEST=none Review URL: http://codereview.chromium.org/6880224 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83617 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmitting change to fix a build break in the clang builder. A virtualrogerta@chromium.org2011-04-291-0/+4
| | | | | | | | | | | | | | | | | | | | | method in a derived class was not marked as virtual. Resubmitting change to fix a build break in the arm builder. The only change from the original code is in text_button.cc, line 402, where text_x is initialized to 0. Add classes for native themed push buttons, radio buttons, and checkboxes. These controls expose the same public interface and the existing controls of the same type to make it easier to change between the implementations. BUG=None TEST=The new controls should look and feel like native platform controls R=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83373 Review URL: http://codereview.chromium.org/6853015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83535 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83373 - Resubmitting change to fix a build break in the arm builder. ↵rogerta@chromium.org2011-04-281-4/+0
| | | | | | | | | The only changefrom the original code is in text_button.cc, line 402, where text_x isinitialized to 0.Add classes for native themed push buttons, radio buttons, and checkboxes.These controls expose the same public interface and the existing controlsof the same type to make it easier to change between the implementations.BUG=NoneTEST=The new controls should look and feel like native platform controlsR=ben@chromium.orgReview URL: http://codereview.chromium.org/6853015 TBR=rogerta@chromium.org Review URL: http://codereview.chromium.org/6902119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83378 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmitting change to fix a build break in the arm builder. The only changerogerta@chromium.org2011-04-281-0/+4
| | | | | | | | | | | | | | | | | from the original code is in text_button.cc, line 402, where text_x is initialized to 0. Add classes for native themed push buttons, radio buttons, and checkboxes. These controls expose the same public interface and the existing controls of the same type to make it easier to change between the implementations. BUG=None TEST=The new controls should look and feel like native platform controls R=ben@chromium.org Review URL: http://codereview.chromium.org/6853015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83373 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ibus checking script from views.gyp and add use_ibus=1 optionpenghuang@chromium.org2011-04-271-8/+5
| | | | | | | | | | BUG=chromium:80700 TEST=Test it on Linux desktop Review URL: http://codereview.chromium.org/6904053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83232 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 83110 - Add classes for native themed push buttons, radio buttons, ↵rogerta@chromium.org2011-04-271-4/+0
| | | | | | | | | and checkboxes.These controls expose the same public interface and the existing controlsof the same type to make it easier to change between the implementations.BUG=NoneTEST=The new controls should look and feel like native platform controlsR=ben@chromium.orgReview URL: http://codereview.chromium.org/6853015 TBR=rogerta@chromium.org Review URL: http://codereview.chromium.org/6904040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83111 0039d316-1c4b-4281-b951-d872f2087c98
* Add classes for native themed push buttons, radio buttons, and checkboxes.rogerta@chromium.org2011-04-271-0/+4
| | | | | | | | | | | | | These controls expose the same public interface and the existing controls of the same type to make it easier to change between the implementations. BUG=None TEST=The new controls should look and feel like native platform controls R=ben@chromium.org Review URL: http://codereview.chromium.org/6853015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83110 0039d316-1c4b-4281-b951-d872f2087c98
* Base: Adjust dependencies to build with base.dllrvargas@google.com2011-04-261-0/+1
| | | | | | | | BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6894040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83082 0039d316-1c4b-4281-b951-d872f2087c98
* views: Move LinkController into its own header file.tfarina@chromium.org2011-04-251-0/+1
| | | | | | | | | | | | | | | | | | | While I'm here, did some changes: - Rename the LinkController interface to LinkListener. - Move the interface to link_listener.h - Rename the event from LinkActivated to LinkClicked. - Changed the get/set accessors to listener()/set_listener(). - Add OVERRIDE to LinkClicked methods. BUG=None TEST=None R=sky@chromium.org Review URL: http://codereview.chromium.org/6881099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82885 0039d316-1c4b-4281-b951-d872f2087c98
* views: Add Link example.tfarina@chromium.org2011-04-251-0/+2
| | | | | | | | | | | | BUG=None TEST=compile with toolkit_views=1, run out/Debug/views_examples. You should see a link tab, and a link with "Click me!" and make sure it works. R=oshima@chromium.org,sky@chromium.org Review URL: http://codereview.chromium.org/6883122 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82870 0039d316-1c4b-4281-b951-d872f2087c98
* remove unused classsaintlou@chromium.org2011-04-211-12/+0
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6880081 Patch from Emmanuel Saint-Loubert <saintlou@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82488 0039d316-1c4b-4281-b951-d872f2087c98
* Adds widget_delegate.cc to appease the clang bot.sky@chromium.org2011-04-201-0/+2
| | | | | | | | | | | R=ben@chromium.org TBR=ben@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/6878085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82391 0039d316-1c4b-4281-b951-d872f2087c98
* Removing unused class. Deprecated when we moved to web ui prefssaintlou@chromium.org2011-04-201-8/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6877065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82293 0039d316-1c4b-4281-b951-d872f2087c98
* Resubmitting change because original caused build breaks:rogerta@chromium.org2011-04-111-0/+4
| | | | | | | | | | | | | | | | | - clang build requires destructor in complex classes - chromeos build requires newline at end of files Adding a native theme painter, to allow Views to use NativeTheme to draw their background. Added example code to show it in use. I still have not hooked this into any existing View-based controls. BUG=None TEST=None R=ben@chromium.org Review URL: http://codereview.chromium.org/6820007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81128 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r80952, http://codereview.chromium.org/6771056dmichael@chromium.org2011-04-081-4/+0
| | | | | | | | | BUG=None TEST=None TBR=rogerta Review URL: http://codereview.chromium.org/6823011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80957 0039d316-1c4b-4281-b951-d872f2087c98
* Adding a native theme painter, to allow Views to use NativeTheme to drawrogerta@chromium.org2011-04-081-0/+4
| | | | | | | | | | | | | | | their background. Added example code to show it in use. I still have not hooked this into any existing View-based controls. This CL depends on changes currently being made to native theme, see http://codereview.chromium.org/6728029/ for details. BUG=None TEST=None Review URL: http://codereview.chromium.org/6771056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80952 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor RenderWidgetHostViewViews to use the new input method API for Views.suzhe@google.com2011-04-011-9/+15
| | | | | | | | | | | | | | | This CL also fixes some issues related to NULL host_ pointer in the original code. Hope the fixes are correct. Another side effect of this CL is: it converts views::KeyEvent to NativeWebKeyboardEvent by using the conversion table of Views instead of WebInputEventFactory provided by WebKit. See bug 54315. BUG=54315 BUG=75003 TEST=none Review URL: http://codereview.chromium.org/6713083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80238 0039d316-1c4b-4281-b951-d872f2087c98
* New InputMethod api for Views.suzhe@google.com2011-03-311-1/+17
| | | | | | | | | | | | | | This CL adds: 1. Interfaces: InputMethod, InputMethodDelegate, TextInputClient. 2. InputMethodGtk: an InputMethod implementation based on GtkIMContext. 3. MockInputMethod: a mock InputMethod implementation for unit tests. BUG=75003 TEST=none Review URL: http://codereview.chromium.org/6688049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80076 0039d316-1c4b-4281-b951-d872f2087c98
* Make MenuHost concrete, hide platform specific implementation behind ↵ben@chromium.org2011-03-311-0/+3
| | | | | | | | | | | | NativeMenuHost. This is the first step, creating this structure. Will consolidate common functionality and state next. BUG=72040 TEST=all menu tests for bookmark bar, wrench menu Review URL: http://codereview.chromium.org/6740022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80015 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor: Move gfx/compositor* to gfx/compositor/backer@chromium.org2011-03-231-1/+2
| | | | | | | | | | | compositor_gl.cc (in gfx) depends on app_base (for gl_bindings), but app_base depends on gfx. This gets rid of the cyclic dependency. It is part of the larger effort to move app/gfx/gl to ui/gfx/gl. BUG=none TEST=trybots Review URL: http://codereview.chromium.org/6718034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79127 0039d316-1c4b-4281-b951-d872f2087c98
* Add GetCharacter() and GetUnmodifiedCharacter() methods to views::Event.suzhe@google.com2011-03-211-0/+1
| | | | | | | | | BUG=75003 TEST=views_unittests --gtest_filter=EventTest.* Review URL: http://codereview.chromium.org/6713027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78943 0039d316-1c4b-4281-b951-d872f2087c98
* views: Cleanup TabbedPane class.tfarina@chromium.org2011-03-181-4/+5
| | | | | | | | | | | BUG=None TEST=views_examples, and existing views_unittests R=sky@chromium.org Review URL: http://codereview.chromium.org/6685039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78775 0039d316-1c4b-4281-b951-d872f2087c98
* Replace views::TextRange with ui::Range.suzhe@google.com2011-03-151-1/+0
| | | | | | | | | BUG=none TEST=original unittests. Review URL: http://codereview.chromium.org/6695021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78280 0039d316-1c4b-4281-b951-d872f2087c98
* Fix clang build (tested on trybots this time!).dmazzoni@chromium.org2011-03-141-0/+1
| | | | | | | | | | | | | | | | | | | | | Move AccessibleViewState constructor into a .cc file. Add dependency on ui/base to views_unittests so that it actually compiles source files in ui/base. Rename WindowDelegate::GetAccessibleState to WindowDelegate::GetAccessibleWindowState so that it doesn't conflict with View::GetAccessibleState in BrowserView, which inherits from both. This was a real bug, introduced recently because both GetAccessibleState methods were renamed from previous non-conflicting method names. BUG=none TEST=none Review URL: http://codereview.chromium.org/6691009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78052 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land: Refactor Views accessibility.dmazzoni@chromium.org2011-03-141-6/+3
| | | | | | | | | BUG=74988 TEST=none Review URL: http://codereview.chromium.org/6581010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78006 0039d316-1c4b-4281-b951-d872f2087c98
* Fix final nits on linux_viewserg@google.com2011-03-101-0/+2
| | | | | | | | | BUG=carnitas TEST=compiles Review URL: http://codereview.chromium.org/6612047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77584 0039d316-1c4b-4281-b951-d872f2087c98
* views: Moves TextfieldController/TextRange into their own headers.tfarina@chromium.org2011-03-101-0/+2
| | | | | | | | | BUG=None TEST=existing unit_tests Review URL: http://codereview.chromium.org/6628037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77571 0039d316-1c4b-4281-b951-d872f2087c98
* Fix obsolete dependencies that create needless recompiling. jeanluc@chromium.org2011-03-091-1/+0
| | | | | | | | BUG=71130 Review URL: http://codereview.chromium.org/6529025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77462 0039d316-1c4b-4281-b951-d872f2087c98
* Carnitas: Move app_strings to ui/base/stringssail@chromium.org2011-03-081-2/+2
| | | | | | | | | | To fix circular dependencies between ui/base/ui_base.gyp and app/app.gyp I'm moving app_strings to ui/base/strings. BUG=72317 TEST=Compiled on Mac, Linux, Windows. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77337 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 77068 - Carnitas: Move app_strings to ui/base/stringssail@chromium.org2011-03-071-2/+2
| | | | | | | | | | | | | | To fix circular dependencies between ui/base/ui_base.gyp and app/app.gyp I'm moving app_strings to ui/base/strings. BUG=72317 TEST=Compiled on Mac, Linux, Windows. Review URL: http://codereview.chromium.org/6541035 TBR=sail@chromium.org Review URL: http://codereview.chromium.org/6623055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77142 0039d316-1c4b-4281-b951-d872f2087c98
* Carnitas: Move app_strings to ui/base/stringssail@chromium.org2011-03-061-2/+2
| | | | | | | | | | | To fix circular dependencies between ui/base/ui_base.gyp and app/app.gyp I'm moving app_strings to ui/base/strings. BUG=72317 TEST=Compiled on Mac, Linux, Windows. Review URL: http://codereview.chromium.org/6541035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77068 0039d316-1c4b-4281-b951-d872f2087c98
* Make Window class concrete (mostly).ben@chromium.org2011-03-051-0/+2
| | | | | | | | | | | | Create NativeWindow/NativeWindowDelegate interfaces. BUG=72040 TEST=none TBR=sky Review URL: http://codereview.chromium.org/6626036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77006 0039d316-1c4b-4281-b951-d872f2087c98