diff options
author | hirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 07:49:37 +0000 |
---|---|---|
committer | hirono@chromium.org <hirono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 07:49:37 +0000 |
commit | 76af173df21260cd16aaa05a2a804ae84551c17b (patch) | |
tree | 83c549e31ab5e78b768475d3090f977d4e989035 /apps | |
parent | 4fcee3e803fd33ec5702c409156011aaa82ebe8b (diff) | |
download | chromium_src-76af173df21260cd16aaa05a2a804ae84551c17b.zip chromium_src-76af173df21260cd16aaa05a2a804ae84551c17b.tar.gz chromium_src-76af173df21260cd16aaa05a2a804ae84551c17b.tar.bz2 |
Make ShellWindowRegistry#shell_windows_ sorted by the last time when the window is activated.
This change enables us to get the latest activated window from shell_windows_.
This CL includes following changes:
* Changes the type of shell_windows_ from set to list.
* Added 'ShellWindowRegistry#ShellWindowActivated' function that is called from
shell window when it is activated.
BUG=238901
Review URL: https://chromiumcodereview.appspot.com/14949019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_shim/app_shim_host_mac.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_shim/app_shim_host_mac.cc b/apps/app_shim/app_shim_host_mac.cc index bfe28f9..822a1b0 100644 --- a/apps/app_shim/app_shim_host_mac.cc +++ b/apps/app_shim/app_shim_host_mac.cc @@ -81,10 +81,11 @@ void AppShimHost::OnFocus() { return; extensions::ShellWindowRegistry* registry = extensions::ShellWindowRegistry::Get(profile_); - const std::set<ShellWindow*> windows = + const extensions::ShellWindowRegistry::ShellWindowList windows = registry->GetShellWindowsForApp(app_id_); std::set<gfx::NativeWindow> native_windows; - for (std::set<ShellWindow*>::const_iterator i = windows.begin(); + for (extensions::ShellWindowRegistry::ShellWindowList::const_iterator i = + windows.begin(); i != windows.end(); ++i) { native_windows.insert((*i)->GetNativeWindow()); |