summaryrefslogtreecommitdiffstats
path: root/ui
Commit message (Collapse)AuthorAgeFilesLines
* views: Use NOTREACHED() where appropriate.tfarina@chromium.org2012-04-172-27/+30
| | | | | | | | R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10103019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132586 0039d316-1c4b-4281-b951-d872f2087c98
* Three Finger Swipetdresser@chromium.org2012-04-177-2/+360
| | | | | | | | | | | | Implements a three finger swipe gesture event for the aura Gesture Recognizer. BUG=122807 TEST=SystemGestureEventFilterTest.TapOutsideRootWindow, GestureRecognizerTest.GestureEventThreeFingerSwipe Review URL: http://codereview.chromium.org/10037012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132570 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 132517 - Metro/HiDPI: Move 1x icons into separate pak filehbono@chromium.org2012-04-177-70/+26
| | | | | | | | | | | | | | | | | | | | | | | Currently all 1x art files are repacked into chrome.pak files. This is a problem on Windows where we want to choose which pak file to load based on metro and DPI scale. As a first step this CL does the following: - add a new enable_hidpi build flag. This allows us to test HiDPI mode on Windows Chrome. - stop packing theme_resources_standard.pak and ui_resources_standard.pak into chrome.pak - update the Mac and Windows installer code to package the extra pak files. Note, I'll be updating the Linux installer script in a separate CL. I'm still looking into the ChromeOS situation. BUG=114311 TEST=Ran on Windows, and Mac and Linux. Review URL: http://codereview.chromium.org/10024050 TBR=sail@chromium.org Review URL: https://chromiumcodereview.appspot.com/10103022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132529 0039d316-1c4b-4281-b951-d872f2087c98
* Implement STYLE_LOWERCASE style for Aura NativeTextfield.kochi@chromium.org2012-04-174-16/+115
| | | | | | | | | | BUG=109308 TEST=views_unittest --gtest_filter="NativeTextfieldViews*" Review URL: http://codereview.chromium.org/9358049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132525 0039d316-1c4b-4281-b951-d872f2087c98
* Metro/HiDPI: Move 1x icons into separate pak filesail@chromium.org2012-04-177-26/+70
| | | | | | | | | | | | | | | | | | | | Currently all 1x art files are repacked into chrome.pak files. This is a problem on Windows where we want to choose which pak file to load based on metro and DPI scale. As a first step this CL does the following: - add a new enable_hidpi build flag. This allows us to test HiDPI mode on Windows Chrome. - stop packing theme_resources_standard.pak and ui_resources_standard.pak into chrome.pak - update the Mac and Windows installer code to package the extra pak files. Note, I'll be updating the Linux installer script in a separate CL. I'm still looking into the ChromeOS situation. BUG=114311 TEST=Ran on Windows, and Mac and Linux. Review URL: http://codereview.chromium.org/10024050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132517 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 132429 - Updating XTBs based on .GRDs from branch 1084laforge@chromium.org2012-04-1650-102/+104
| | | | | | | TBR=laforge@chromium.org Review URL: https://chromiumcodereview.appspot.com/9956146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132432 0039d316-1c4b-4281-b951-d872f2087c98
* Updating XTBs based on .GRDs from branch 1084laforge@chromium.org2012-04-1650-104/+102
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132429 0039d316-1c4b-4281-b951-d872f2087c98
* Ash: Fix hit testing for the bottom pixels of tabsjamescook@chromium.org2012-04-162-2/+5
| | | | | | | | | | | | | * Ash uses a taller content area shadow, so the toolbar needs to avoid taking mouse clicks along its top 2 pixels, as they overlap the tab strip. * Added more GetClassName() implementations for views to help with future debugging. * Removed an attempt to forward-declare an enum. BUG=123354 TEST=manual, ensure that hovering mouse along the very bottom of a tab results in the hover-glow effect Review URL: https://chromiumcodereview.appspot.com/10082029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132415 0039d316-1c4b-4281-b951-d872f2087c98
* views: Fix painting views with layers in RTL locale.sadrul@chromium.org2012-04-162-5/+65
| | | | | | | | | | | This fixes RTL painting in the launcher. BUG=112070 TEST=none Review URL: https://chromiumcodereview.appspot.com/10081037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132409 0039d316-1c4b-4281-b951-d872f2087c98
* Removing defunct code around PureViews.saintlou@chromium.org2012-04-1511-51/+23
| | | | | | | | | | BUG=117493 TEST=none Review URL: http://codereview.chromium.org/10084020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132357 0039d316-1c4b-4281-b951-d872f2087c98
* Aura demo fixoshima@chromium.org2012-04-147-21/+16
| | | | | | | | | | | BUG=123311 TEST=sadrul@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132294 Review URL: https://chromiumcodereview.appspot.com/10082008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132309 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 132281 - Add more functionality to WebView.ben@chromium.org2012-04-142-221/+14
| | | | | | | | | | | | | | | - Ability for WebContents to be replaced. - Various focus/destruction observers. - Hook up to BrowserView, replacing TabContentsContainer. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10073014 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10086026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132306 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 132284 - Fix build bustage by correcting ifdefben@chromium.org2012-04-141-3/+6
| | | | | | | TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10082037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132305 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 132290 - Remove a dcheck I just added since I apparently don't ↵ben@chromium.org2012-04-141-0/+1
| | | | | | | | | | | | | understand the various circumstances that result in this function being called. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10084027 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10080019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132304 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 132294 - Aura demo fixeroman@chromium.org2012-04-137-13/+19
| | | | | | | | | | | | BUG=123311 TEST=sadrul@chromium.org Review URL: http://codereview.chromium.org/10082008 TBR=oshima@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132298 0039d316-1c4b-4281-b951-d872f2087c98
* Aura demo fixoshima@chromium.org2012-04-137-19/+13
| | | | | | | | | | BUG=123311 TEST=sadrul@chromium.org Review URL: http://codereview.chromium.org/10082008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132294 0039d316-1c4b-4281-b951-d872f2087c98
* Remove a dcheck I just added since I apparently don't understand the various ↵ben@chromium.org2012-04-131-1/+0
| | | | | | | | | | circumstances that result in this function being called. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10084027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132290 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build bustage by correcting ifdefben@chromium.org2012-04-131-6/+3
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132284 0039d316-1c4b-4281-b951-d872f2087c98
* Add more functionality to WebView.ben@chromium.org2012-04-132-14/+221
| | | | | | | | | | | | - Ability for WebContents to be replaced. - Various focus/destruction observers. - Hook up to BrowserView, replacing TabContentsContainer. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10073014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132281 0039d316-1c4b-4281-b951-d872f2087c98
* Zero-sized windows are bad.avi@chromium.org2012-04-134-0/+47
| | | | | | | | | | | Eliminate three instances of them, and DCHECK on the condition for the future. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10003005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132280 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Show better focus rects for the tray.sadrul@chromium.org2012-04-132-1/+17
| | | | | | | | | BUG=122933 TEST=none Review URL: https://chromiumcodereview.appspot.com/10086005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132261 0039d316-1c4b-4281-b951-d872f2087c98
* Always try metafile font fallback in the case of missing glyphs in ↵asvitkine@chromium.org2012-04-132-45/+53
| | | | | | | | | | | | | | | | | | | | | | | | RenderTextWin. Before this patch, if ScriptShape() returned E_OK but there were missing glyphs, we would only try font linking and not metafile font fallback. For Armenian text (and probably others), ScriptShape() returns E_OK with missing glyphs, but font linking won't find the right font. The metafile approach is needed. This change makes sure the metafile font fallback path is always taken first, before trying font linking to find the missing font. BUG=105550, 122974 TEST=Under Windows with use_canvas_skia=1 enabled, go to http://akumb.am. Make sure the tab title is displayed correctly. Review URL: http://codereview.chromium.org/10010047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132250 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused and unnecessary constructor from PlatformFont classes.asvitkine@chromium.org2012-04-138-37/+0
| | | | | | | | | | | These are not used by Font since it keeps a scoped_refptr to PlatformFont. BUG=none TEST=none Review URL: http://codereview.chromium.org/10081007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132229 0039d316-1c4b-4281-b951-d872f2087c98
* Fix window shadows.avi@chromium.org2012-04-132-29/+112
| | | | | | | | | | | | For accelerated content, switch to a less scary method of fixing window shadows that works better. BUG=53382,56154,120772 TEST=go to accelerated page, notice no square corners Review URL: http://codereview.chromium.org/10037008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132206 0039d316-1c4b-4281-b951-d872f2087c98
* views slider: Add support for gestures.sadrul@chromium.org2012-04-132-11/+30
| | | | | | | | | BUG=115275 TEST=none Review URL: https://chromiumcodereview.appspot.com/10089001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132205 0039d316-1c4b-4281-b951-d872f2087c98
* Aura/Ash split: Make most unit tests compile without USE_ASHerg@chromium.org2012-04-133-4/+19
| | | | | | | | | | BUG=116458 TEST=none Review URL: http://codereview.chromium.org/10067019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132107 0039d316-1c4b-4281-b951-d872f2087c98
* Metro/HiDPI: Cleanup ResourceBundlesail@chromium.org2012-04-1217-453/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For Metro and HiDPI support we need to conditionally load resource pak files. For example, on Windows I'd like to have something like this: ..ResourceBundle::LoadCommonResources() { ....if (IsMetroMode()) { ......switch (DPIScale()) { ........case 1.0: AddDataPack("theme_resources_metro_1_0x.pak"); break; ........case 1.4: AddDataPack("theme_resources_metro_1_4x.pak"); break; ........case 1.8: AddDataPack("theme_resources_metro_1_8x.pak"); break; ......} ....} else { ......if (DPIScale() < 1.5) ........AddDataPack("theme_resources_desktop_1_0x.pak"); ......else ........AddDataPack("theme_resources_desktop_2_0x.pak"); ....} ..} As a first step this CL does the following: - create a new ResourceHandle abstract class that can be backed by a DLL on Windows. - manage all resource packs through the data_packs_ vector - clean up ResourceBundle interface by removing all the #ifdefs BUG=114311 TEST=Built and ran on Mac, Linux, Windows, Linux Arua. Review URL: http://codereview.chromium.org/10051012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132091 0039d316-1c4b-4281-b951-d872f2087c98
* Landing issue 9960061: Change Sleep(0) to Sleep(1) when we are waiting GPU ↵apatrick@chromium.org2012-04-121-1/+1
| | | | | | | | | | | | to be ready to present. Review and try results here: https://chromiumcodereview.appspot.com/9960061/ Contributed by Jin Yang @intel Review URL: https://chromiumcodereview.appspot.com/10008095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132083 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Windows use_canvas_skia=0 build.asvitkine@chromium.org2012-04-121-0/+1
| | | | | | | | | | | | This got broken by http://crrev.com/131696 because use_canvas_skia=1 is currently the default for Windows. BUG=105550 TEST=Compiles on Windows with use_canva_skia=0. Review URL: http://codereview.chromium.org/10038024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132079 0039d316-1c4b-4281-b951-d872f2087c98
* Support WebView in ash.ben@chromium.org2012-04-121-0/+1
| | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10054038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132063 0039d316-1c4b-4281-b951-d872f2087c98
* ash: Add some experimental support for gesture-fling to ↵sadrul@chromium.org2012-04-121-2/+2
| | | | | | | | | | | snap/minimize/maximize windows. BUG=121140 TEST=none Review URL: https://chromiumcodereview.appspot.com/10067011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132042 0039d316-1c4b-4281-b951-d872f2087c98
* Metro/HiDPI: Add DPI util functionssail@chromium.org2012-04-123-0/+83
| | | | | | | | | | BUG=114311 TEST= Review URL: http://codereview.chromium.org/10051013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132035 0039d316-1c4b-4281-b951-d872f2087c98
* XI2.2: Make sure the gesture events correctly translate to mouse events.sadrul@chromium.org2012-04-121-0/+4
| | | | | | | | | BUG=112329 TEST=none Review URL: https://chromiumcodereview.appspot.com/10072002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132017 0039d316-1c4b-4281-b951-d872f2087c98
* - Add temporary support for High Density Incompatible mode (scale to 2x) to ↵oshima@chromium.org2012-04-126-3/+137
| | | | | | | | | | | | | | | | | NativeWidgetAura. This allow us to work on making views HD compatible while I'm working on aura side. Conversion code will be removed once Aura supports scaling factor. - Add scaleing method to point/size - Add set_device_scale_factor that I missed. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10068005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132002 0039d316-1c4b-4281-b951-d872f2087c98
* The unit tests for the window positionerskuhne@chromium.org2012-04-121-1/+1
| | | | | | | | | | BUG=122982 TEST=Unittest Review URL: http://codereview.chromium.org/10034025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131985 0039d316-1c4b-4281-b951-d872f2087c98
* Work on USE_ASH/USE_AURA split.erg@chromium.org2012-04-122-0/+103
| | | | | | | | | | | | | | | | This reduced link errors in the chrome binary down to roughly ten. - Supplies an X11 implementation of parts of gfx::Screen. - Multiple files renamed from _aura.cc to _ash.cc or placed outside of ash only directories. - Some random usage #ifdefed properly. BUG=116458 TEST=Everything still compiles in all different configurations. Review URL: http://codereview.chromium.org/10020048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131900 0039d316-1c4b-4281-b951-d872f2087c98
* Correct dependencies on content. This should fix the cros build.ben@chromium.org2012-04-111-4/+3
| | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10034035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131872 0039d316-1c4b-4281-b951-d872f2087c98
* Beginnings of a WebView.ben@chromium.org2012-04-1117-102/+1188
| | | | | | | | | http://crbug.com/105557 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131837 Review URL: https://chromiumcodereview.appspot.com/10024081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131863 0039d316-1c4b-4281-b951-d872f2087c98
* Adds more debugging code to WindowImpl. Crash data seems to indicatesky@chromium.org2012-04-111-4/+13
| | | | | | | | | | | | | | the wndproc isn't getting called at all for this window. I'm curious to see if our windowproc is no longer registered. I'm also changing the HINSTNACE argument to RegisterClassEx to actually pass in a module. BUG=121084 TEST=none R=cpu@chromium.org Review URL: https://chromiumcodereview.appspot.com/10051005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131850 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 131837 - Beginnings of a WebView.ben@chromium.org2012-04-1115-1179/+102
| | | | | | | | | | | http://crbug.com/105557 TEST=none Review URL: https://chromiumcodereview.appspot.com/10024081 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10054030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131838 0039d316-1c4b-4281-b951-d872f2087c98
* Beginnings of a WebView.ben@chromium.org2012-04-1115-102/+1179
| | | | | | | | http://crbug.com/105557 TEST=none Review URL: https://chromiumcodereview.appspot.com/10024081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131837 0039d316-1c4b-4281-b951-d872f2087c98
* Traces on MakeCurrentnduca@chromium.org2012-04-115-2/+12
| | | | | | Review URL: http://codereview.chromium.org/9931001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131835 0039d316-1c4b-4281-b951-d872f2087c98
* Use gdk_init() instead of gtk_init() to open the display. It's much lighter andcevans@chromium.org2012-04-112-5/+15
| | | | | | | doesn't create wasteful threads (which get in the way of sandboxing). Review URL: https://chromiumcodereview.appspot.com/10051009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131821 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typooshima@chromium.org2012-04-111-1/+1
| | | | | | | | | | TBR=sky@chromium.org BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10054014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131786 0039d316-1c4b-4281-b951-d872f2087c98
* Mouse events, touch events, or both can be locked to a target.tdresser@chromium.org2012-04-1116-91/+185
| | | | | | | | | | | | | | | | NativeWidgetPrivate and Window event capture related commands now take a set of flags, indicating what event types to lock. Current options are CW_LOCK_MOUSE and CW_LOCK_TOUCH. BUG=117554 TEST=WindowTest.TouchCaptureTests, WindowTest.CaptureTests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131761 Review URL: http://codereview.chromium.org/9838011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131783 0039d316-1c4b-4281-b951-d872f2087c98
* Adding new window position logic unit tests.skuhne@chromium.org2012-04-111-0/+2
| | | | | | | | | | BUG=121181 TEST=unit test Review URL: http://codereview.chromium.org/10024035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131766 0039d316-1c4b-4281-b951-d872f2087c98
* Use template for Point/Size/Rect and remove duplicates oshima@chromium.org2012-04-1118-834/+775
| | | | | | | | | BUG=114664 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131737 Review URL: https://chromiumcodereview.appspot.com/10014027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131764 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 131761 - Mouse events, touch events, or both can be locked to a target.rsesek@chromium.org2012-04-1115-184/+90
| | | | | | | | | | | | | | | | | | | Broke Win-Aura compile. NativeWidgetPrivate and Window event capture related commands now take a set of flags, indicating what event types to lock. Current options are CW_LOCK_MOUSE and CW_LOCK_TOUCH. BUG=117554 TEST=WindowTest.TouchCaptureTests, WindowTest.CaptureTests Review URL: http://codereview.chromium.org/9838011 TBR=tdresser@chromium.org Review URL: https://chromiumcodereview.appspot.com/10052012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131762 0039d316-1c4b-4281-b951-d872f2087c98
* Mouse events, touch events, or both can be locked to a target.tdresser@chromium.org2012-04-1115-90/+184
| | | | | | | | | | | | | | NativeWidgetPrivate and Window event capture related commands now take a set of flags, indicating what event types to lock. Current options are CW_LOCK_MOUSE and CW_LOCK_TOUCH. BUG=117554 TEST=WindowTest.TouchCaptureTests, WindowTest.CaptureTests Review URL: http://codereview.chromium.org/9838011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131761 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r131737 "Use template for Point/Size/Rect and remove duplicates "oshima@chromium.org2012-04-1118-779/+834
| | | | | | | | | | | TBR=oshima@chromium.org BUG=114664 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131737 Review URL: https://chromiumcodereview.appspot.com/10020034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131738 0039d316-1c4b-4281-b951-d872f2087c98