0
Commit Graph

100 Commits

Author SHA1 Message Date
tapted@chromium.org
73c9fd0c41 Cleanups for aura/test/event_generator.h (resolve TODOs)
Some purely mechanical changes left over from r283694, now that
aura::test::EventGenerator has moved to ui::test in src/ui/events.

Moves aura/test/event_generator.* to event_generator_delegate_aura.*
Removes `using ui::test::EventGenerator;` declaration and redirects
includes that don't extend the delegate to include the ui/test
event_generator.h directly

BUG=378134

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285209

Review URL: https://codereview.chromium.org/406413004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285857 0039d316-1c4b-4281-b951-d872f2087c98
2014-07-28 01:48:52 +00:00
markusheintz@chromium.org
dd131d3723 Revert 285209 "Cleanups for aura/test/event_generator.h (resolve..."
> Cleanups for aura/test/event_generator.h (resolve TODOs)
> 
> Some purely mechanical changes left over from r283694, now that
> aura::test::EventGenerator has moved to ui::test in src/ui/events.
> 
> Moves aura/test/event_generator.* to event_generator_delegate_aura.*
> Removes `using ui::test::EventGenerator;` declaration and redirects
> includes that don't extend the delegate to include the ui/test
> event_generator.h directly
> 
> BUG=378134
> 
> Review URL: https://codereview.chromium.org/406413004

TBR=tapted@chromium.org

Review URL: https://codereview.chromium.org/413983006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285222 0039d316-1c4b-4281-b951-d872f2087c98
2014-07-24 13:18:41 +00:00
tapted@chromium.org
b89622c6a7 Cleanups for aura/test/event_generator.h (resolve TODOs)
Some purely mechanical changes left over from r283694, now that
aura::test::EventGenerator has moved to ui::test in src/ui/events.

Moves aura/test/event_generator.* to event_generator_delegate_aura.*
Removes `using ui::test::EventGenerator;` declaration and redirects
includes that don't extend the delegate to include the ui/test
event_generator.h directly

BUG=378134

Review URL: https://codereview.chromium.org/406413004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285209 0039d316-1c4b-4281-b951-d872f2087c98
2014-07-24 12:34:13 +00:00
rucifer1217@gmail.com
24f5e249b1 clean up coding style at ash folder.
BUG=none

Review URL: https://codereview.chromium.org/396273004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284594 0039d316-1c4b-4281-b951-d872f2087c98
2014-07-22 02:16:09 +00:00
yukishiino@chromium.org
00a38679d3 Fixes unittests with --enable-text-input-focus-manager flag enabled.
Some unittests get broken when --enable-text-input-focus-manager is enabled.  Fixes those tests.

BUG=290701
TEST=Run unittests.

Review URL: https://codereview.chromium.org/334573004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277444 0039d316-1c4b-4281-b951-d872f2087c98
2014-06-16 15:09:20 +00:00
skuhne@chromium.org
75a88c995a Fixing invalid window opacity/visibility combination with the shelf
BUG=351553
TEST=existing unit tests

Review URL: https://codereview.chromium.org/280383009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270293 0039d316-1c4b-4281-b951-d872f2087c98
2014-05-14 01:57:32 +00:00
kevers@chromium.org
2082d7d6d6 Fix calculation of usable area of screen when VK is shown.
First part of a 2-sided patch to fix scroll-into-view with VK overscroll.

BUG=370592

Review URL: https://codereview.chromium.org/276483002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270092 0039d316-1c4b-4281-b951-d872f2087c98
2014-05-13 14:44:23 +00:00
oshima@chromium.org
fdf74bff8c CleanUp: Introduce UserInfo. Move session_state stuff to ash/session.
BUG=None
R=nkostylev@chromium.org
TBR=sky@chromium.org

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267158

Review URL: https://codereview.chromium.org/253063002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267337 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-30 21:24:02 +00:00
kevers@chromium.org
25df7ada51 Reland enable VK overscroll by default. Fixed ash unittest.
BUG=242933

Original commit broke ash_unittests for restoration of work area after login.  With overscrolling, the size of the work area is no longer changes as the keyboard is shown or hidden.

Review URL: https://codereview.chromium.org/266513003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267267 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-30 18:10:25 +00:00
oshima@chromium.org
6e50d42bdd Revert 267158 "CleanUp: Introduce UserInfo. Move session_state s..."
> CleanUp: Introduce UserInfo. Move session_state stuff to ash/session.
> 
> BUG=None
> R=nkostylev@chromium.org
> TBR=sky@chromium.org
> 
> Review URL: https://codereview.chromium.org/253063002

TBR=oshima@chromium.org

Review URL: https://codereview.chromium.org/260783002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267250 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-30 17:15:12 +00:00
oshima@chromium.org
5a40d60411 CleanUp: Introduce UserInfo. Move session_state stuff to ash/session.
BUG=None
R=nkostylev@chromium.org
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/253063002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267158 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-30 10:33:51 +00:00
sadrul@chromium.org
3193ea724c aura: A couple of API cleanups.
* Make Window::SetTransform() non-virtual.
* Remove Window::SetEventFilter() (and use AddPreTargetHandler() instead).

BUG=none
R=sky@chromium.org

Review URL: https://codereview.chromium.org/248773002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265755 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-23 22:19:19 +00:00
bshe@chromium.org
39e9521b57 Currently, we try to set virtual keyboard window height both
in native code and in VK's javascript code through window.resizeTo
It sometimes creates conflict and cause strange animation issues.

In this CL, the window height logic in native side is removed.
The default window height is set to 0 and we expect javascript
will set the window to correct height.
If window is resized from a non zero height to another non
zeor height, we current dont do any animation.

BUG=363622

Review URL: https://codereview.chromium.org/240443006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265712 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-23 20:00:01 +00:00
oshima@chromium.org
f5c9dbcb85 Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash.
Other notable changes:
* Removed WindowTreeHostFactory as this is no longer necessary.
* Moved RootWindowTransformer to ash/host
* Removed Set/GetInsets which are no longer necessary (a code in SetInsets is now a part of
SetRootWindowTransformer)
* Added TransformerHelper that implements common behavior to transform root window for AshWindowTreeHost
* Added DEPS files
* Updated metro_viewer code to make sure it creates ash::AshRemoteWindowHostTree

A few more simplifications to come:
* Simplify RootWindowTransformer
* Eliminate EnvObserver in AshWindowTreeHostX11

I'll also work on DEPS reorg to make it more explicit under ash/

BUG=355771
TEST=No functional change. ui/aura/window_tree_host_x11_unittests has been moved to ash/host/ash_window_tree_host_x11_unittests

Review URL: https://codereview.chromium.org/201573015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263192 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-11 08:13:45 +00:00
kevers@chromium.org
a0b3fb8891 Make keyboard controller a singleton.
BUG=358191

Review URL: https://codereview.chromium.org/219503003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262177 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-07 19:26:03 +00:00
oshima@chromium.org
093b8d64a1 Eliminate ash::internal namespace
Plus obvious style nit fixes.

BUG=None
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/224113005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261522 0039d316-1c4b-4281-b951-d872f2087c98
2014-04-03 20:59:28 +00:00
kevers@chromium.org
602022b901 Prevent system modal dialog from blocking events to the virtual keyboard.
BUG=https://code.google.com/p/chrome-os-partner/issues/detail?id=27142

Review URL: https://codereview.chromium.org/216743004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260576 0039d316-1c4b-4281-b951-d872f2087c98
2014-03-31 17:07:31 +00:00
tdanderson@google.com
cd9f71df4e Move TestEventHandler to ui/events/test
TestEventHandler is not aura-specific, so move it from ui/aura/test
to ui/events/test.

BUG=354564
R=sadrul@chromium.org, sky@chromium.org

Review URL: https://codereview.chromium.org/206593004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258425 0039d316-1c4b-4281-b951-d872f2087c98
2014-03-20 21:54:21 +00:00
flackr@chromium.org
2c5db9ee28 Use active window if on current workspace for fullscreen mode.
BUG=330566,340647
TEST=WindowSelectorTest.FullscreenWindow,RootWindowControllerTest.GetWindowForFullscreenMode,RootWindowControllerTest.MultipleDisplaysGetWindowForFullscreenMode,PanelWindowResizerTest.AttachToSecondFullscreenDisplay
TEST=Open a panel and navigate a browser to an html5 fullscreen page, and fullscreen it. Alt+tab to the panel, should be able to see the panel.

Review URL: https://codereview.chromium.org/149493008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253794 0039d316-1c4b-4281-b951-d872f2087c98
2014-02-27 13:58:14 +00:00
ben@chromium.org
fcc51c95bc Move root_window.* to window_event_dispatcher.*
http://crbug.com/308843
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/174803002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252651 0039d316-1c4b-4281-b951-d872f2087c98
2014-02-21 21:31:26 +00:00
bshe@chromium.org
1025937e97 Restore screen work area after login
When user login, a new virtual keyboard is created. If the old virtual keyboard
was showing before user login, we need to notfiy keyboard bounds observers that
old virtual keyboard window occupy no space on screen. Otherwise, Ash still thinks
the work area should exclude virtual keyboard area even the keyboard is not showing.
This CL fixed the bug.

BUG=342524

Review URL: https://codereview.chromium.org/159473002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250892 0039d316-1c4b-4281-b951-d872f2087c98
2014-02-13 01:25:50 +00:00
kevers@chromium.org
183e28d67e Limit display of the virtual keyboard to state changes triggered from a user gesture.
This patch reuses OnTextInputStateChanged, which was previously Android specific, but which includes not only type information, but whether the virtual keyboard should be displayed. This is the first step in consolidating the IPC messages between RenderWidget and RenderWidgetHostView for IME messages.  Ideally, we can phase out OnTextInputTypeChanged in favor of the approach used by Android across all platforms.



BUG=289659, 294191, 331690

Review URL: https://codereview.chromium.org/29943002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245932 0039d316-1c4b-4281-b951-d872f2087c98
2014-01-20 18:18:02 +00:00
sky@chromium.org
52b02a76f7 Makes Window::Init take a WindowLayerType instead of LayerType.
BUG=none
TEST=none
R=ben@chromium.org

Review URL: https://codereview.chromium.org/121773003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243656 0039d316-1c4b-4281-b951-d872f2087c98
2014-01-08 21:41:50 +00:00
tfarina@chromium.org
5b251f10c0 wm: public window_types.
Patch manually generated by:

$ git grep -l aura::client::WINDOW_TYPE | xargs sed -i -e 's/aura::client::WINDOW_TYPE/ui::wm::WINDOW_TYPE/g'
$ git commit -a -m.
$ git clang-format HEAD^ --style=Chromium
$ git commit -a -m.

* Move window_types.h header from ui/aura/client/ to ui/wm/public/

BUG=319638
TEST=ash_unittests, aura_unittests, views_unittests, unit_tests
R=ben@chromium.org

Review URL: https://codereview.chromium.org/115153002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241752 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-19 01:50:05 +00:00
oshima@chromium.org
2816c24679 Make sure the dragged window is smaller than work area in the target display.
- makes sure that minimum amount of window is visible when dropped.

- When moving a window to another due to display disconnect, try to keep relative position in the work are, rather than absolute position to the root window.

BUG=321702
TEST=covered by test
RootWindowController::MoveWindows_Basic
DragWindowResizerTest::WindowDragWithMultiDisplays

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240542

R=mukai@chromium.org, varkha@chromium.org

Review URL: https://codereview.chromium.org/93873013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241114 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-17 02:22:25 +00:00
hashimoto@chromium.org
402af44265 Revert 240542 "Make sure the dragged window is smaller than work..."
Faling in ash_unittests DragWindowResizerTest.WindowDragWithMultiDisplays:
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%281%29/builds/37164
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/27462
http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASAN%20Tests%20%281%29/builds/14494

> Make sure the dragged window is smaller than work area in the target display.
> 
> - makes sure that minimum amount of window is visible when dropped.
> 
> - When moving a window to another due to display disconnect, try to keep relative position in the work are, rather than absolute position to the root window.
> 
> BUG=321702
> TEST=covered by test
> RootWindowController::MoveWindows_Basic
> DragWindowResizerTest::WindowDragWithMultiDisplays
> 
> Review URL: https://codereview.chromium.org/93873013

TBR=oshima@chromium.org

Review URL: https://codereview.chromium.org/108343005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240587 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-13 11:19:32 +00:00
oshima@chromium.org
4aa67549b1 Make sure the dragged window is smaller than work area in the target display.
- makes sure that minimum amount of window is visible when dropped.

- When moving a window to another due to display disconnect, try to keep relative position in the work are, rather than absolute position to the root window.

BUG=321702
TEST=covered by test
RootWindowController::MoveWindows_Basic
DragWindowResizerTest::WindowDragWithMultiDisplays

Review URL: https://codereview.chromium.org/93873013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240542 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-13 08:21:27 +00:00
shuchen@chromium.org
647b484972 [Input View] Makes the input view window support window.resizeTo() and w3c visibility API in its web contents.
BUG=chromium:316524
TEST=Locally verified in sandbox.

Review URL: https://codereview.chromium.org/97013002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240323 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-12 14:24:24 +00:00
flackr@chromium.org
2c9171d286 Ignore non-active fullscreen windows for shelf state.
BUG=319889
TEST=ShelfLayoutManagerTest.FullscreenWindowInFrontHidesShelf, ShelfLayoutManagerTest.FullscreenWindowOnSecondDisplay,WorkspaceLayoutManagerTest.NotifyFullscreenChanges
TEST=Navigate to a site using HTML5 fullscreen API, alt tab away to another window and back. Window remains fullscreen but shelf shows while another window is in front.

Review URL: https://codereview.chromium.org/100903002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239859 0039d316-1c4b-4281-b951-d872f2087c98
2013-12-10 21:55:10 +00:00
bshe@chromium.org
51f43811e8 Add a full screen virtual keyboard to virtual keyboard root window
This relands https://codereview.chromium.org/47873003. It was reverted
because of VirtualKeyboardWindowControllerTest.VirtualKeyboardWindowTest
test crash on win8_aura.

R=oshima@chromium.org
TBR=jamescook, sadrul
BUG=310331
TEST=
1. add keyboard-usability-experiment flag
2. hook up an external screen
3. boot device
expected: a full screen keyboard on one of the screen

Review URL: https://codereview.chromium.org/62833010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235795 0039d316-1c4b-4281-b951-d872f2087c98
2013-11-18 19:32:50 +00:00
thakis@chromium.org
58ba19cd3d Revert r235502 "Add a full screen virtual keyboard to virtual keyboard root window"
Test has been failing on Win8 Aura since it landed.

[ RUN      ] VirtualKeyboardWindowControllerTest.VirtualKeyboardWindowTest
[1816:612:1115/193527:1412105:FATAL:display_manager.cc(571)] Check failed: 1u == updated_display_info_list.size() (1 vs. 2)Multiple display test does not work on Win8 bots. Please skip (don't disable) the test using SupportsMultipleDisplays()
Backtrace:
        base::debug::StackTrace::StackTrace [0x6C8EBBF1+33]
        logging::LogMessage::~LogMessage [0x6C71D2FE+94]
        ash::internal::DisplayManager::UpdateDisplays [0x5BA229F5+293]
        ash::internal::DisplayManager::OnNativeDisplaysChanged [0x5BA22173+2723]
        ash::internal::DisplayManager::InitFromCommandLine [0x5BA1E281+817]
        ash::Shell::Init [0x5B7628A2+210]
        ash::Shell::CreateInstance [0x5B75C8D9+361]
        ash::test::AshTestHelper::SetUp [0x01782E29+281]
        ash::test::AshTestBase::SetUp [0x017753AC+332]
        ash::test::VirtualKeyboardWindowControllerTest::SetUp [0x016A57D7+247]
        testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> [0x0174E3BF+319]
        testing::Test::Run [0x01738DDB+107]
        testing::TestInfo::Run [0x017397ED+221]
        testing::TestCase::Run [0x01739F9F+239]
        testing::internal::UnitTestImpl::RunAllTests [0x017408ED+701]
        testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> [0x0174EFE7+327]
        testing::UnitTest::Run [0x0173F150+192]
        base::TestSuite::Run [0x0172DD00+240]
        main [0x01647767+103]
        __tmainCRTStartup [0x018B870F+447] (f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c:555)
        mainCRTStartup [0x018B853F+15] (f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c:371)
        BaseThreadInitThunk [0x750D8543+14]
        RtlInitializeExceptionChain [0x775DAC69+133]
        RtlInitializeExceptionChain [0x775DAC3C+88]

http://build.chromium.org/p/chromium.win/builders/Win8%20Aura/builds/12680/steps/ash_unittests/logs/stdio

BUG=310331
TBR=bshe@chromium.org

Review URL: https://codereview.chromium.org/74693002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235520 0039d316-1c4b-4281-b951-d872f2087c98
2013-11-17 05:51:08 +00:00
bshe@chromium.org
a53dcc96cc Add a full screen virtual keyboard to virtual keyboard root window
BUG=310331
TEST=
1. add keyboard-usability-experiment flag
2. hook up an external screen
3. boot device
expected: a full screen keyboard on one of the screen

Review URL: https://codereview.chromium.org/47873003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235502 0039d316-1c4b-4281-b951-d872f2087c98
2013-11-16 02:56:10 +00:00
ben@chromium.org
c9390bdfb5 Eliminate Shell::RootWindowList in favor of aura::Window::Windows.
This is necessary as part of my plan to rework RootWindow, specifically making it not be a subclass of Window. (It will eventually be renamed WindowEventDispatcher). Code that expected to get the RootWindow interface from this type can still call GetDispatcher() on members of the returned vector of Windows.

R=oshima@chromium.org
http://crbug.com/308843

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233787

Review URL: https://codereview.chromium.org/64933002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233970 0039d316-1c4b-4281-b951-d872f2087c98
2013-11-08 20:33:13 +00:00
ben@chromium.org
8d25881d44 Revert 233787 "Eliminate Shell::RootWindowList in favor of aura:..."
> Eliminate Shell::RootWindowList in favor of aura::Window::Windows.
> 
> This is necessary as part of my plan to rework RootWindow, specifically making it not be a subclass of Window. (It will eventually be renamed WindowEventDispatcher). Code that expected to get the RootWindow interface from this type can still call GetDispatcher() on members of the returned vector of Windows.
> 
> R=oshima@chromium.org
> http://crbug.com/308843
> 
> Review URL: https://codereview.chromium.org/64933002

TBR=ben@chromium.org

Review URL: https://codereview.chromium.org/59153004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233813 0039d316-1c4b-4281-b951-d872f2087c98
2013-11-08 07:16:24 +00:00
ben@chromium.org
3433d4d6df Eliminate Shell::RootWindowList in favor of aura::Window::Windows.
This is necessary as part of my plan to rework RootWindow, specifically making it not be a subclass of Window. (It will eventually be renamed WindowEventDispatcher). Code that expected to get the RootWindow interface from this type can still call GetDispatcher() on members of the returned vector of Windows.

R=oshima@chromium.org
http://crbug.com/308843

Review URL: https://codereview.chromium.org/64933002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233787 0039d316-1c4b-4281-b951-d872f2087c98
2013-11-08 05:52:59 +00:00
ben@chromium.org
bf9cdb36cc Make GetRootWindow() return a Window instead of a RootWindow.
Also adds a typedef from RootWindow to WindowEventDispatcher, the eventual name of this type.
Adds a GetDispatcher() method that crawls up to the root Window and returns the WindowEventDispatcher.

R=sky@chromium.org
http://crbug.com/308843

Review URL: https://codereview.chromium.org/37733003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231077 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-25 19:22:45 +00:00
bshe@chromium.org
24ca45ded3 Add --keyboard-usability-test flag and always show keyboard unless manually hide
This flag is for testing virtual keyboard usability. It is intentionally excluded
from about:flag page because this flag is only intended to be used for our tests.
If the flag is set, virtual keyboard should always show unless user specifically
click hide keyboard key.


BUG=310327

Review URL: https://codereview.chromium.org/34783006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230928 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-25 03:37:44 +00:00
ben@chromium.org
e3225e03e8 Rename StackingClient -> WindowTreeClient
Remove SetDefaultParentForRootWindow from Window, and replace with new utility function ParentWindowForContext in window_tree_client.h
This is part of my current campaign to slim down the aura Window types. I will eventually move WindowTreeClient to a new ui/wm component that I plan to create.

R=erg@chromium.org
http://crbug.com/308844

Review URL: https://codereview.chromium.org/36473003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230501 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-23 20:44:37 +00:00
bshe@chromium.org
b6ba05d90a Only show virtual keyboard on primary root window
In order to display virtual keyboard(VK) only on primary root window,
this CL did
1. Shell takes ownership of keyboard controller(KC) instead of
RootWindowController
2. keyboard container window is owned by KC instead of its parent

There should only be one KC and one keyboard container at any time after
this change. keyboard container can be dynamically enabled/disabled on a
RootWindowController at runtime. If you want to do that,
you should DisableKeyboard on the previous RootWindowController first and
then EnableKeyboard on the new RootWindowController.

BUG=297858
TEST=
1. enable virtual keyboard from about::/flags on a Chromebook
2. plug in an external monitor

verify only one virtual keyboard shows

Review URL: https://codereview.chromium.org/25111002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227088 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-04 21:38:45 +00:00
sky@chromium.org
0fbfa97be5 Fixes use after free caused by delete in RootWindowController (2)
RootWindowController::CloseChildWindows() was explicitly deleting
windows. It should only do that for windows that are owned by the
parent, otherwise the window should be removed.

BUG=297028
TEST=covered by test now.
R=oshima@chromium.org
TBR=oshima@chromium.org

Review URL: https://codereview.chromium.org/25736004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226524 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-02 19:23:33 +00:00
dcheng@chromium.org
932fe5217a Revert 226347 "Fixes use after free caused by delete in RootWind..."
> Fixes use after free caused by delete in RootWindowController
> 
> RootWindowController::CloseChildWindows() was explicitly deleting
> windows. It should only do that for windows that are owned by the
> parent, otherwise the window should be removed.
> 
> BUG=297028
> TEST=covered by test now.
> R=oshima@chromium.org
> 
> Review URL: https://codereview.chromium.org/25374002

TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/25659002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226377 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-02 01:22:27 +00:00
sky@chromium.org
58ac8df1fd Fixes use after free caused by delete in RootWindowController
RootWindowController::CloseChildWindows() was explicitly deleting
windows. It should only do that for windows that are owned by the
parent, otherwise the window should be removed.

BUG=297028
TEST=covered by test now.
R=oshima@chromium.org

Review URL: https://codereview.chromium.org/25374002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226347 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-01 23:50:07 +00:00
rsadam@chromium.org
45c6667d9c Updates RootWindowController to delete the keyboard container before recreating the keyboard controller since the controller creates a new window in GetWindowContainer().
BUG=299787

Review URL: https://codereview.chromium.org/25105002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226324 0039d316-1c4b-4281-b951-d872f2087c98
2013-10-01 22:48:56 +00:00
oshima@chromium.org
a41b4e1e29 Rename WindowSettings to WindowState
Move window control methods from window_util.h to WindowState
Removed property_util which is no longer necessary.

BUG=272460

Review URL: https://chromiumcodereview.appspot.com/24108003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224288 0039d316-1c4b-4281-b951-d872f2087c98
2013-09-20 04:36:34 +00:00
mukai@chromium.org
e3bc88e953 RootWindowController::GetFullscreenWindow() should return the active one.
It returned the fullscreen window (if any) in the active workspace,
and a workspace could contain only one fullscreen window at most.
However, now there's only one desktop workspace which can contain
multiple fullscreen windows.

To follow the past state, it would be better to return the active
fullscreen window first.

TEST=covered by ash_unittests
R=oshima@chromium.org, sky@chromium.org
BUG=None

Review URL: https://chromiumcodereview.appspot.com/23534049

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221602 0039d316-1c4b-4281-b951-d872f2087c98
2013-09-06 06:22:06 +00:00
harrym@chromium.org
f54effec70 ash:Shelf - Enable Alternate Shelf and Side Shelf by default.
Updated and/or duplicated (updated with copy renamed *ForLegacyShelfLayout) unit tests as required.

BUG=246279
TBR=jamescook@chromium.org, skuhne@chromium.org

Review URL: https://codereview.chromium.org/22793011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221325 0039d316-1c4b-4281-b951-d872f2087c98
2013-09-05 01:09:02 +00:00
bshe@chromium.org
eff4c7fb9e Whitelist virtual keyboard container to process events at login screen
When user session is blocked (login screen, lock etc.), virtual keyboard container
window should still be able to process events to function properly.

BUG=263599
TEST=
1. Enable virtual keyboard
2. go to login screen
verify if you can use virtual keyboard to type you password and login

Review URL: https://chromiumcodereview.appspot.com/22465007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217159 0039d316-1c4b-4281-b951-d872f2087c98
2013-08-13 01:45:50 +00:00
oshima@chromium.org
cf6fea26f2 Create an invisible window during login so that
mouse can move between displays.

Added NoSessionAshTestBase for tests that should run before
a user logs in.

BUG=266987
TEST=covered by test
TBR=sky@chromium.org

Review URL: https://chromiumcodereview.appspot.com/21519002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216184 0039d316-1c4b-4281-b951-d872f2087c98
2013-08-07 14:24:01 +00:00
dzhioev@chromium.org
a44afbbd41 Modal window in user session not blocks user adding screen.
Added IsUserSessionBlocked method indicating whether user session blocked by
some overlying UI (it can be lock/login/user adding UI).
Replaced IsScreenLocked() [|| IsActiveUserSessionStarted()] with
IsUserSessionBlocked() in several places in order to keep focus and user input
in locked container.

BUG=none
TEST=ash_unittests
R=sky

Review URL: https://chromiumcodereview.appspot.com/19945004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213524 0039d316-1c4b-4281-b951-d872f2087c98
2013-07-24 21:49:35 +00:00
mukai@chromium.org
2a64b0a6ad Do not create workspace for fullscreen.
This CL still keeps some of multi-workspace code, but they are
a bit tough to test.

BUG=259568
R=jamescook@chromium.org
TEST=ash_unittests covers

Review URL: https://chromiumcodereview.appspot.com/19460014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213259 0039d316-1c4b-4281-b951-d872f2087c98
2013-07-23 23:15:54 +00:00