Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1333)

Issue 22715005: Use overview mode for alt-tab cycling. (Closed)

Created:
7 years, 4 months ago by flackr
Modified:
7 years, 4 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Use overview mode for alt-tab cycling. BUG=263481, 264289 TEST=WindowSelectorTest.BasicCycle TEST=Enable --ash-enable-overview-mode and use alt-tab to cycle through MRU windows. Cycling is done in overview mode on active display. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216874

Patch Set 1 #

Total comments: 25

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -107 lines) Patch
M ash/accelerators/accelerator_controller.cc View 2 chunks +14 lines, -0 lines 0 comments Download
M ash/wm/window_selector.h View 1 3 chunks +62 lines, -21 lines 0 comments Download
M ash/wm/window_selector.cc View 1 4 chunks +411 lines, -83 lines 0 comments Download
M ash/wm/window_selector_controller.h View 4 chunks +15 lines, -0 lines 0 comments Download
M ash/wm/window_selector_controller.cc View 1 2 chunks +62 lines, -1 line 0 comments Download
M ash/wm/window_selector_unittest.cc View 1 4 chunks +50 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
flackr
Hi James, Would you mind reviewing this patch to enable alt-tab cycling in overview mode ...
7 years, 4 months ago (2013-08-09 17:57:27 UTC) #1
James Cook
On 2013/08/09 17:57:27, flackr wrote: > Hi James, > > Would you mind reviewing this ...
7 years, 4 months ago (2013-08-09 19:26:14 UTC) #2
James Cook
Load balancing code reviews -> to Dan
7 years, 4 months ago (2013-08-09 19:54:46 UTC) #3
Daniel Erat
LGTM with nits https://codereview.chromium.org/22715005/diff/1/ash/wm/window_selector.cc File ash/wm/window_selector.cc (right): https://codereview.chromium.org/22715005/diff/1/ash/wm/window_selector.cc#newcode56 ash/wm/window_selector.cc:56: widget->GetNativeWindow()->SetName("OverviewWindowCopy"); nit: include |src_window|'s id and/or ...
7 years, 4 months ago (2013-08-09 20:54:35 UTC) #4
flackr
https://codereview.chromium.org/22715005/diff/1/ash/wm/window_selector.cc File ash/wm/window_selector.cc (right): https://codereview.chromium.org/22715005/diff/1/ash/wm/window_selector.cc#newcode56 ash/wm/window_selector.cc:56: widget->GetNativeWindow()->SetName("OverviewWindowCopy"); On 2013/08/09 20:54:35, Daniel Erat wrote: > nit: ...
7 years, 4 months ago (2013-08-09 22:15:35 UTC) #5
Daniel Erat
lgtm https://codereview.chromium.org/22715005/diff/1/ash/wm/window_selector.cc File ash/wm/window_selector.cc (right): https://codereview.chromium.org/22715005/diff/1/ash/wm/window_selector.cc#newcode292 ash/wm/window_selector.cc:292: layer_ = views::corewm::RecreateWindowLayers(window_, true); On 2013/08/09 22:15:36, flackr ...
7 years, 4 months ago (2013-08-09 22:19:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/22715005/11001
7 years, 4 months ago (2013-08-10 01:00:49 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=186143
7 years, 4 months ago (2013-08-10 06:29:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/22715005/11001
7 years, 4 months ago (2013-08-10 13:24:06 UTC) #9
commit-bot: I haz the power
Change committed as 216874
7 years, 4 months ago (2013-08-10 15:41:45 UTC) #10
Dan Beam
ASAN bots are complaining [ RUN ] WindowSelectorTest.Basic Xlib: extension "RANDR" missing on display ":9". ...
7 years, 4 months ago (2013-08-11 03:51:20 UTC) #11
flackr
7 years, 4 months ago (2013-08-11 03:54:44 UTC) #12
Message was sent while issue was closed.
On 2013/08/11 03:51:20, Dan Beam wrote:
> ASAN bots are complaining
> 
> [ RUN      ] WindowSelectorTest.Basic
> Xlib:  extension "RANDR" missing on display ":9".
> =================================================================
> ==7171==ERROR: AddressSanitizer: heap-use-after-free on address 0x60e0002743c8
> at pc 0x11a3f46 bp 0x7fff03177950 sp 0x7fff03177948
> READ of size 8 at 0x60e0002743c8 thread T0
>     #0 0x11a3f45 in size
>
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_vector.h:571:0
>     #1 0x11a3f45 in size
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../base/memory/scoped_vector.h:48:0
>     #2 0x11a3f45 in ash::WindowSelector::OnEvent(ui::Event*)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ash/wm/window_selector.cc:364:0
>     #3 0x1371837 in DispatchEvent
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/base/events/event_dispatcher.cc:145:0
>     #4 0x1371837 in
>
ui::EventDispatcher::DispatchEventToEventHandlers(std::vector<ui::EventHandler*,
> std::allocator<ui::EventHandler*> >&, ui::Event*)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/base/events/event_dispatcher.cc:124:0
>     #5 0x1370b62 in ui::EventDispatcher::ProcessEvent(ui::EventTarget*,
> ui::Event*)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/base/events/event_dispatcher.cc:82:0
>     #6 0x13708a9 in
ui::EventDispatcherDelegate::DispatchEvent(ui::EventTarget*,
> ui::Event*)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/base/events/event_dispatcher.cc:48:0
>     #7 0x12eb007 in ProcessEvent
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/aura/root_window.cc:759:0
>     #8 0x12eb007 in
> aura::RootWindow::DispatchMouseEventToTarget(ui::MouseEvent*, aura::Window*)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/aura/root_window.cc:1079:0
>     #9 0x12e82c5 in aura::RootWindow::DispatchMouseEventImpl(ui::MouseEvent*)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/aura/root_window.cc:1018:0
>     #10 0x12e7fea in aura::RootWindow::OnHostMouseEvent(ui::MouseEvent*)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/aura/root_window.cc:912:0
>     #11 0x12e839f in non-virtual thunk to
> aura::RootWindow::OnHostMouseEvent(ui::MouseEvent*)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/aura/root_window.cc:913:0
>     #12 0xca2c4b in aura::test::EventGenerator::DoDispatchEvent(ui::Event*,
> bool)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/aura/test/event_generator.cc:540:0
>     #13 0xc9e8a7 in Dispatch
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/aura/test/event_generator.cc:420:0
>     #14 0xc9e8a7 in aura::test::EventGenerator::ReleaseButton(int)
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ui/aura/test/event_generator.cc:473:0
>     #15 0xb184f5 in ClickWindow
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ash/wm/window_selector_unittest.cc:146:0
>     #16 0xb184f5 in ash::internal::WindowSelectorTest_Basic_Test::TestBody()
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../ash/wm/window_selector_unittest.cc:175:0
>     #17 0x1436df7 in testing::Test::Run()
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../testing/gtest/src/gtest.cc:2067:0
>     #18 0x1438bfc in testing::TestInfo::Run()
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../testing/gtest/src/gtest.cc:2244:0
>     #19 0x1439a42 in testing::TestCase::Run()
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../testing/gtest/src/gtest.cc:2351:0
>     #20 0x1446d25 in testing::internal::UnitTestImpl::RunAllTests()
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../testing/gtest/src/gtest.cc:4177:0
>     #21 0x144622c in impl
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../testing/gtest/src/gtest.cc:2051:0
>     #22 0x144622c in testing::UnitTest::Run()
>
/mnt/data/b/build/slave/Linux_Chromium_OS_ASAN_Builder/build/src/out/Release/../../testing/gtest/src/gtest.cc:3810:0

Just put up the fix here:
https://codereview.chromium.org/22775003/

Powered by Google App Engine
This is Rietveld 408576698