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

Issue 1155533006: Don't check if a browser window is active when getting an application list in CrOS

Created:
5 years, 6 months ago by joone
Modified:
5 years, 6 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't check if a browser window is active when getting an application list in CrOS When running an extension with the minimized state, this is not added to the application list because it is not active. However, the application menu of the launcher is created from the application list so we don't see this minimized extension in the launcher even though it is shown up in the overview mode. Therefore, we don't need to check if a browser window is active to create an application list. BUG=495878

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -5 lines) Patch
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
joone
Please take a look at this CL.
5 years, 6 months ago (2015-06-03 02:20:41 UTC) #2
oshima
On 2015/06/03 02:20:41, joone wrote: > Please take a look at this CL. This may ...
5 years, 6 months ago (2015-06-03 17:04:36 UTC) #3
oshima
On 2015/06/03 17:04:36, oshima wrote: > On 2015/06/03 02:20:41, joone wrote: > > Please take ...
5 years, 6 months ago (2015-06-03 19:38:35 UTC) #4
joone
On 2015/06/03 19:38:35, oshima wrote: > On 2015/06/03 17:04:36, oshima wrote: > > On 2015/06/03 ...
5 years, 6 months ago (2015-06-04 23:03:56 UTC) #5
oshima
On 2015/06/04 23:03:56, joone wrote: > On 2015/06/03 19:38:35, oshima wrote: > > On 2015/06/03 ...
5 years, 6 months ago (2015-06-04 23:09:48 UTC) #6
joone
On 2015/06/04 23:09:48, oshima wrote: > On 2015/06/04 23:03:56, joone wrote: > > On 2015/06/03 ...
5 years, 6 months ago (2015-06-05 22:46:33 UTC) #7
oshima
So is it activating the window even for minimized window? What about ShowInactive? Is it ...
5 years, 6 months ago (2015-06-05 23:10:47 UTC) #8
joone
On 2015/06/05 23:10:47, oshima wrote: > So is it activating the window even for minimized ...
5 years, 6 months ago (2015-06-06 00:08:15 UTC) #9
oshima
5 years, 6 months ago (2015-06-06 00:40:37 UTC) #10
On 2015/06/06 00:08:15, joone wrote:
> On 2015/06/05 23:10:47, oshima wrote:
> > So is it activating the window even for minimized window? What about
> > ShowInactive? Is it still activating?
> 
> Yes, I got this call stack for minimized window.
> 
> base::debug::StackTrace::StackTrace
> BrowserList::SetLastActive 
> BrowserFrame::OnNativeWidgetActivationChanged 
> views::DesktopNativeWidgetAura::HandleActivationChanged 
> views::DesktopWindowTreeHostWin::HandleActivationChanged
> views::HWNDMessageHandler::PostProcessActivateMessage
> views::HWNDMessageHandler::OnWndProc
> gfx::WindowImpl::WndProc
> base::win::WrappedWindowProc<&gfx::WindowImpl::WndProc>
> 
> Which ShowInative?

never mind. looks like we do activate window even when showing in minimized
state. 
This is probably because we're not using SW_SHOWNA, but changing this behavior
is
way beyond your original scope. I'll take my opinion back and would suggest just
show it first then
minimize it. I'll update the comment in the original CL.

Powered by Google App Engine
This is Rietveld 408576698