| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
GetBrowserViewForNativeWindow, so I had to wire up ViewProps for it to work correctly.
BUG=97262
TEST=none
R=ben@chromium.org
Review URL: http://codereview.chromium.org/8289022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105677 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This one-time initialization takes very little time and is impractical
to move to another thread when the bindings are needed.
Re-enable NoStartupWindowTest.NoStartupWindowBasicTest on Mac.
BUG=100298
TEST=NoStartupWindowTest.NoStartupWindowBasicTest
TBR=atwilson
Review URL: http://codereview.chromium.org/8301014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105605 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
appropriately release/reacquire resources.
BUG=5175544
TEST=None
Review URL: http://codereview.chromium.org/7890046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105563 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Need to include some resources files.
BUG=none
TEST=resize the chrome window until it shows scrollbars, they should paint
TBR=saintlou@chromium.org
Review URL: http://codereview.chromium.org/8304003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105548 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
dcheck error.
BUG=99923
TEST=start chrome with new profile and --no-first-run --use-pure-view. type in http://sites.google.com/a/google.com/ several times until autocomplete kicks in. continue typing while with autocomplete, browser should not crash.
Review URL: http://codereview.chromium.org/8252001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105547 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: http://codereview.chromium.org/8268006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105526 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
theme will continue to evolve on Aura so we want to make copies:
NativeThemeAura::PaintScrollbarTrack
NativeThemeAura::PaintArrowButton
NativeThemeAura::PaintScrollbarThumb
TBR=sky@chromium.org
BUG=100223
TEST=none
Review URL: http://codereview.chromium.org/8277026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105517 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This implements GetCursorScreenPoint() and
GetWindowAtCursorScreenPoint().
BUG=99726
TEST=added
Review URL: http://codereview.chromium.org/8234014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105427 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change Chrome to allocate most OpenGL contexts with the
kCGLPFAAllowOfflineRenderers flag, and specify
NSSupportsAutomaticGraphicsSwitching in the Info.plist for the main
executable and helper apps. This keeps Chrome on the integrated GPU
except when using WebGL, accelerated 2D Canvas, Pepper 3D, and Core
Animation-based plugins (except Flash).
Chrome shares resources between OpenGL contexts in order to display WebGL
and other content in the compositor, and resource sharing doesn't work
between contexts allocated on different GPUs. Therefore, when the first
context for a given renderer requests the discrete GPU, the channel is
dropped and all contexts are reallocated on the discrete GPU. Similarly,
when the last context requesting the discrete GPU for a given renderer is
shut down, all contexts are dropped and reallocated on the integrated GPU.
Currently dynamic GPU switching is only supported on the latest Mac OS X
10.7 update and MacBook Pros with dual AMD / Intel GPUs, though this will
improve in future OS updates.
Tested with WebGL, CSS 3D, Flash and Unity3D content and observed desired
GPU switching behavior. Also added a layout test to WebKit under
https://bugs.webkit.org/show_bug.cgi?id=69776 which when run in Chrome
catches an assertion failure related to the destruction of contexts. The
intent is to add it as a UI layout test on the GPU bots.
BUG=88788
TEST=none
Review URL: http://codereview.chromium.org/8233027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105399 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
This eliminates tearing on scrolling and animations. Unfortunately, due to a driver bug, we can only vsync if the window is not full screen.
BUG=100000
TEST=flick scroll on a page with images; there should be no tearing
Review URL: http://codereview.chromium.org/8272004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105393 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The transform applied to holes was incorrect when the bounds of the child were non zero
In Layer::Draw the transform is first applied, then the translation, changed the code in Layer::RecomputeHole to match that
This put the holes in the wrong place for the views_desktop demo.
I have not seen a place where this was broken in chromium, however it might prevent
future bugs once we apply transformations to child views
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8249005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105340 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Small refactor to move a class into an anonymous namespace. Small change to preserve the active FBO when resizing the EGLImageTransportSurface.
BUG=none
TEST=open and close 3D CSS tabs on TOUCH_UI
Review URL: http://codereview.chromium.org/8241006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105185 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Operate on string16's instead of std::string's.
- Handle surrogate pairs correctly.
- Add out parameters returning the accelerated char pos and span.
These changes are necessary for my upcoming change to use this function
in a new CanvasSkia text drawing implementation.
BUG=none
TEST=Additional test cases added to skia_util_unittest.c.
Review URL: http://codereview.chromium.org/8229010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105107 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
If a View without a layer is hidden, and one of its descendant views has a layer, then the layer also needs to be hidden. This also needs to be reversed when such a View is redisplayed.
BUG=none
TEST=ViewLayerTreesInSync, VisibilityChildLayers
Review URL: http://codereview.chromium.org/8216027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105080 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Add some UI part sizes to native_theme_base that previously only existed on Windows.
BUG=none
TEST=views_unittests
Review URL: http://codereview.chromium.org/8234005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104947 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
R=ben@chromium.org
TBR=ben@chromium.org
Review URL: http://codereview.chromium.org/8221026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104810 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
+ Add native_theme_aura and native_theme_gtk, fix button background colors
+ Fix native_theme_chromeos instance generation
+ Rename button-related image resources
+ Rename class NativeThemeLinux to NativeThemeBase
+ Add window showing sample widgets
BUG=98305
TEST=manual
Review URL: http://codereview.chromium.org/8199021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104803 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=manually
Review URL: http://codereview.chromium.org/8205004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104663 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
break screen_aura in two. Otherwise we end up with a circular
dependency between ui and aura.
BUG=none
TEST=none
R=ben@chromium.org
Review URL: http://codereview.chromium.org/8205018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104662 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
as the bots don't have the right libraries yet.
BUG=none
TEST=none
R=ben@chromium.org
Review URL: http://codereview.chromium.org/8202014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104566 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
* Use ScopedSelectObject for changed files
BUG=99139
TEST=no user visible change
Review URL: http://codereview.chromium.org/8139022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104441 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8183008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104434 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Our old mechanism for drawing external textures from the GPU process that are vertically flipped does not work if the corresponding layer has a hole in it (we don't want to flip the hole). This patch handles the flip at the texture map where it belongs.
BUG=none
TEST=with --use-gl=egl on a debug build of TOUCH_UI, go to a page with a combo box (such as news.google.com); open the combo box; you should not see a bright purple hole.
Review URL: http://codereview.chromium.org/8177007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104348 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=
TEST=
Review URL: http://codereview.chromium.org/8138009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104340 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes Aura related .gyp files to conditionally depend on the chrome.gyp:packed_resources target, which is non-Mac target.
Also, this unifies mixed "../..", "..", and "<(DEPTH)" usage to prefer the ".." form from advice from mento@.
BUG=None
TEST=build/gyp_chromium completes on Mac. Compiles and passes existing tests on other platforms.
Review URL: http://codereview.chromium.org/8159011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104322 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make sure that we still allow a view to punch a hole in its parent if it is rotated by a multiple of 90 degrees.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/7941017
TBR=vollick@chromium.org
Review URL: http://codereview.chromium.org/8175008
TBR=vollick@chromium.org
Review URL: http://codereview.chromium.org/8178005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104312 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make sure that we still allow a view to punch a hole in its parent if it is rotated by a multiple of 90 degrees.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/7941017
TBR=vollick@chromium.org
Review URL: http://codereview.chromium.org/8175008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104311 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Make sure that we still allow a view to punch a hole in its parent if it is rotated by a multiple of 90 degrees.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/7941017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104304 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=97257,97259
TEST=none
Review URL: http://codereview.chromium.org/8103014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104246 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Until we respect the transparent Widget::InitParam, I'm just making all NativeWidgetAuras transparent.
Also fixes a compile fail to layer_unittest from piman's change.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8169003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104200 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Code was replicated in dragged_tab_controller_gtk.cc and
dragged_tab_controller.cc, this allows the same code to be reused. Also removing the corresponding TODO.
2) The old SplitRectangleInTwo() function was violating the styleguide by having not const references as parameters.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/8137018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104199 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8122013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104146 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
visible all of its ancestor must be visible too.
BUG=none
TEST=covered by unit tests.
R=ben@chromium.org
Review URL: http://codereview.chromium.org/8136005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104097 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This works with ANGLE r780.
So if it's on top of ANGLE, query the translated HLSL using ANGLE's GetTranslatedShaderSource extension; otherwise, return the cached translated shader source from ANGLE shader translator.
BUG=95531
TEST=unittest
Review URL: http://codereview.chromium.org/8120020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104036 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=
TEST=
Review URL: http://codereview.chromium.org/8024001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103985 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
but fix the WorkArea's dimensions to be sane.
CL http://codereview.chromium.org/8060016/ changed the CROS browser size to
be the MonitorArea, to match the size chosen for the CROS container window.
However, sky@ has taken issue with this approach, as this changes the browser
window's behavior and may have unexpected consequences down the road when this
change is long forgotten. Thus changing back to use the MonitorWorkArea*.
However, the MonitorWorkArea is supposed to be a working space on a single
monitor. What was being returned was one of
1) The root window dimensions (covers all monitors)
2) The _NET_WORK_AREA, a rect set by the WM that likely covers all monitors
(though this is not specified)
A rect that covers all monitors is bad as this is always >= the rect given by
MonitorArea - the size of the container window - and we get a browser window
that is bigger than its container.
There is lots of room for multihead here, and that will come in time, this does
not attempt to address anything of the sort. We just make MonitorWorkArea()
return the same rect as MonitorArea(). This matches all other OS/Toolkit
implementations, where the idea of _NET_WORK_AREA does not exist.
This does change a few things, which used WorkArea, which may seem odd in a
single monitor case,
- views/widget/native_widget_gtk.cc:997: This will center on the monitor now
instead of on the space inside the user's panels (if this change is noticable
at all). However, this also means it will center on a single monitor now
in a dual-head environment rather than across them which is a rather bad
default behaviour.
This is a shortcoming of the spec, and outside of what _NET_WORK_AREA was meant
to provide, so we should determine this area on our own if we want it to
differ from the monitor's physical area.
R=sky,oshima
BUG=
TEST=
Review URL: http://codereview.chromium.org/8070009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103895 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
http://crbug.com/98337
TEST=none
Review URL: http://codereview.chromium.org/8122008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103882 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
in a follow up CL.
This reverts 103580 - Revert the layer creation change r103338 due to some issues with the keyboard on touch. I'll re-land later once I can get a working linux build.TBR=skyBUG=noneTEST=none
Review URL: http://codereview.chromium.org/8100015
TBR=ben@chromium.org
Review URL: http://codereview.chromium.org/8115010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103777 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
used by accelerated drawing path. Some of the member variables of ExtraParams were not being set correctly.
Review URL: http://codereview.chromium.org/8059018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103761 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Added test_compositor_host_linux implementation for linux.
Review URL: http://codereview.chromium.org/8060047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103730 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
keyboard on touch. I'll re-land later once I can get a working linux build.TBR=skyBUG=noneTEST=none
Review URL: http://codereview.chromium.org/8100015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103580 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=87490
TEST=compile with gcc 4.6
Review URL: http://codereview.chromium.org/8050008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103513 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
Compositor::SchedulePaint to Compositor::ScheduleDraw and CompositorDelegate::ScheduleCompositorPaint to CompositorDelegate::ScheduleDraw.BUG=noneTEST=none
Review URL: http://codereview.chromium.org/8083028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103502 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
TBR=saintlou
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8103002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103500 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
URL: http://codereview.chromium.org/8098004TBR=ben@chromium.org
Review URL: http://codereview.chromium.org/8101002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103484 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: http://codereview.chromium.org/8098004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103483 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8094001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103473 0039d316-1c4b-4281-b951-d872f2087c98
|