| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org
TEST=views_unittests --gtest_filter=TabbedPaneTest.*
Review URL: http://codereview.chromium.org/7934010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101984 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7982008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101981 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Keeps toplevel windows constrained in z-index between the desktop background (bottom-most) and the launcher (topmost).
- Renames WindowManager to EventFilter, and moves it to the parent Window... i.e. when a window receives a mouse event its parent's event filter will get the opportunity to process it before that window's delegate does.
- WindowManager's content was mostly specific to toplevel window movement, so this content moved to an EventFilter subclass called ToplevelEventFilter.
- Adds a name property to aura::Windows useful for debugging.
- Prevent Windows with no delegate from taking part in event processing.
- Initialize the Aura_Shell in DesktopWindow, provide a single exported method - aura_shell::InitDesktopWindow() - to initialize it from the exe main.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7970001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101974 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7937001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101962 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use TabContentsViewViews for RenderWidgetHostViweViews.
* Removed TabContentsViewTouch.
* Changed so that mouse and resize event goes through NativeWidgetViews so that NativeTabContentsViewViews can invoke NativeTabContentsViewDelegates.
BUG=none
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100792
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100834
Review URL: http://codereview.chromium.org/7460001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101921 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
from a change that resulted in shrinking the client area one pixel
when it shouldn't have. I've changed the code to respect whether we
should shrink the client area by one pixel.
BUG=96505
TEST=make sure menus on windows aren't truncated anymore. Truncation
is most noticable over remote desktop.
R=ben@chromium.org
Review URL: http://codereview.chromium.org/7974001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101914 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
This include is only used/necessary in constrained_window_views.cc.
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7936004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101913 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is for Layers that participate in Draw() ordering, transforming and clipping, but do not themselves actually render anything.
Also changes LayerTest to use RunAllPending() rather than using the weird QuitOnComposited test type I had.
BUG=none
TEST=see unittest
Review URL: http://codereview.chromium.org/7941016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101829 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7949003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101820 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
TBR=ben@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7941013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101796 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
Also show "Views Examples" in the window title.
R=sadrul@chromium.org
Review URL: http://codereview.chromium.org/7935005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101784 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
TBR=saintlou
Review URL: http://codereview.chromium.org/7950002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101772 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
The patch caused memory leak in views_unittests. added patch http://codereview.chromium.org/7858015/ to fix unittests memory leak.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7831071
Patch from Alice Tull <alicet@chromium.org>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101739 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This should fix the windows build.
CreateWindow conflicts with a win32 function.
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7932023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101738 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7931003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101736 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Fix remaining users to use base/memory/scoped_ptr.h.
BUG=
TEST=
Review URL: http://codereview.chromium.org/7930009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101715 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
'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
|
|
|
|
|
|
|
|
|
|
|
| |
While I'm here also remove scoped_ptr.h include (which is also unused) and
annotate with OVERRIDE the overridden methods.
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7901026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101703 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
- NULL window_ in NativeWidgetAura::OnWindowDestroyed before notifying its delegate, and add a NULL check in NativeWidgetAura::SchedulePaint to prevent calls triggered by the Widget's RootView's destruction from calling into it. There may be a better fix here but it probably involves destroying the RootView sooner which is scary.
- Adds a mock status area.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7920016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101662 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Additionally guard against operations on destroyed widgets.
This CL incorporates and builds on changes from r101033.
That original CL was reverted to ease merging this into M15.
Add two guards against unlocking after Widget destruction.
ScopedRedrawLock will check HWND validity with IsWindow().
DefWindowProcWithRedrawLock will check for destructor calls.
Unify ScopedRedrawLock + DefWindowProc codepaths.
BUG=84563,89820,95582,95727,93530
TEST=none
Review URL: http://codereview.chromium.org/7926019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101642 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The original CL exposed problems with ScopedRedrawLock.
The Widget/Window can be destroyed during DefWindowProc.
Unlocking after destruction can result in crashes.
My new CL guards against operations on destroyed widgets.
I'm reverting the original CL to ease the M15 merge process.
See http://codereview.chromium.org/7926019/
BUG=84563,89820,95582,95727,93530
TEST=none
TBR=sky@chromium.org
Review URL: http://codereview.chromium.org/7926020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101609 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7918007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101605 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
R=ben@chromium.org
Review URL: http://codereview.chromium.org/7925017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101553 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
This save us some conversions to and from wide string.
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7910012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101540 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org,sadrul@chromium.org,ben@chromium.org
TEST=build with GYP_DEFINES="toolkit_views=1 use_aura=1", notice that the target views_aura_desktop builds and runs.
Review URL: http://codereview.chromium.org/7887039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101506 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
menus. MenuButton::OnKeyPressed may run a nested message loop, which
means by the time it returns 'this' may have been deleted (a couple of
crashes seem to indicate this). In talking with Domnic the code after
the call to Activate isn't necessary, so I'm removing it.
I'm also changing the cancel call in MenuRunner to supply
EXIT_DESTROYED, which means the menu code won't attempt to touch the
button that was supplied to run. This is necessary as if MenuRunner is
deleted the chances are the button supplied to it has also been
deleted.
BUG=none
TEST=none
R=ben@chromium.org
Review URL: http://codereview.chromium.org/7890073
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101500 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7921001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101498 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
- desktop background
- stub launcher
- clicking the background opens test windows
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7903018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101496 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
due to test failure.
FocusTraversalTest::PaneTraversal was failing because
scroll buttons/thums were getting focus, which should not.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7915002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101495 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Changes for cpplint.py
* Set null to TOOLINFO.lpReserved according to MSDN
** http://msdn.microsoft.com/en-us/library/bb760256(v=VS.85).aspx
Starting r88897, TooltipManager::Init is called twice and creates Tooltip control twice.
This change removes one call of TooltipManager::Init in ctor.
http://src.chromium.org/viewvc/chrome/trunk/src/views/widget/native_widget_win.cc?r1=88564&r2=88897&pathrev=88897
BUG=96226
TEST=Manual
Review URL: http://codereview.chromium.org/7922003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101463 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the View is hidden, we destroy the associated Layer, but the external texture should persist.
Similarly, if a View is made visible, we create a Layer and the Layer should have that external texture.
The solution is to push the external texture logic and state up into the LayerHelper, which persists.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7904024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101388 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7890054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101374 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
| |
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101333 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
| |
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101331 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
This is a nearly-mechanical translation of wstring to string16.
Removes a *ton* of string conversions.
Review URL: http://codereview.chromium.org/7886023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101329 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7892046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101302 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
TEST=Added test example double_split_view in views/examples.
R=sky@chromium.org,oshima@chromium.org,tfarina@chromium.org
Patch from Gajendra Singh <wxjg68@motorola.com>
Review URL: http://codereview.chromium.org/7911001
Patch from Gajendra Singh <wxjg68@motorola.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101298 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Thanks to Kristian Høgsberg (krh@bitplanet.net) who submited the Wayland API changes.
I've also updated the native_widget_wayland.* to match the current implementations.
BUG=
TEST=
Review URL: http://codereview.chromium.org/7862021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101198 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7890037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101196 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
| |
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101160 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
TBR=sky
Review URL: http://codereview.chromium.org/7886042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101156 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
TBR=backer@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7890043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101134 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 1de05c148460b26037b069501c19ee0c20aeb4ad.
TBR=backer@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7888049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101131 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It appears this code may predate base::SplitString. That function
makes this code a lot simpler.
Rather than trying to maintain Windows vs other newlines throughout,
use newlines as the line separator everywhere and convert to CRLF
only when calling Windows APIs.
Review URL: http://codereview.chromium.org/7889016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101110 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This depends on (and builds upon)
http://codereview.chromium.org/7864030/
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/7889004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101109 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using gtk_widget_set_size_request leaves the window in a very weird state: it
changes the apparent size, but if the backing X window was larger before the
request, then it doesn't get resized to the smaller size. So subsequent calls to
get the bounds of the widget gets the pre-maximized larger size. So use the
proper API (gtk_window_resize) to do the window resizing.
BUG=none
TEST=manually
Review URL: http://codereview.chromium.org/7887019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101083 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
R=sky@chromium.org
Review URL: http://codereview.chromium.org/7888032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101082 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
We don't want to SetCanvas (or prepare a canvas to be set), if the Layer is being updated externally.
BUG=none
TEST=TOUCH_UI build displays google.com
Review URL: http://codereview.chromium.org/7889035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101080 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
My caption workaround crrev.com/99498 caused some regressions.
Update ScopedRedrawLock usage and functionality.
Only adjust the visibility flag (not the aggregate window style).
Only lock windows that are already visible, track the lock count.
Force visibility on move/size WM_SYSCOMMAND for continuous feedback.
Fixes the window disappearance on Win XP crbug.com/95582.
May also fix the OnMouseRange crash crbug.com/95727.
Add debugging code for OnMouseRange crash crbug.com/95727.
Checks NativeWidgetWin destruction in DefWindowProc handling.
Add VLOG to track nested ScopedRedrawLocks for crbug.com/93530.
BUG=89820,95582,95727,93530
TEST=No problem on XP maximized title bar click.
Review URL: http://codereview.chromium.org/7844016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101033 0039d316-1c4b-4281-b951-d872f2087c98
|