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

Side by Side Diff: chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h" 5 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h"
6 6
7 #include "apps/app_window.h" 7 #include "apps/app_window.h"
8 #include "apps/app_window_registry.h" 8 #include "apps/app_window_registry.h"
9 #include "ash/ash_switches.h" 9 #include "ash/ash_switches.h"
10 #include "ash/desktop_background/user_wallpaper_delegate.h" 10 #include "ash/desktop_background/user_wallpaper_delegate.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // found past M-32. A global event handler filter (pre and post) might fix 89 // found past M-32. A global event handler filter (pre and post) might fix
90 // that problem in conjunction with a depth counter - but - for the menu 90 // that problem in conjunction with a depth counter - but - for the menu
91 // execution we come here after the loop was finished (so it's not nested 91 // execution we come here after the loop was finished (so it's not nested
92 // anymore) and the root window should therefore still have the event which 92 // anymore) and the root window should therefore still have the event which
93 // lead to the menu invocation, but it is not. By fixing that problem this 93 // lead to the menu invocation, but it is not. By fixing that problem this
94 // would "magically work". 94 // would "magically work".
95 aura::Window::Windows root_window_list = ash::Shell::GetAllRootWindows(); 95 aura::Window::Windows root_window_list = ash::Shell::GetAllRootWindows();
96 for (aura::Window::Windows::iterator it = root_window_list.begin(); 96 for (aura::Window::Windows::iterator it = root_window_list.begin();
97 it != root_window_list.end(); 97 it != root_window_list.end();
98 ++it) { 98 ++it) {
99 if (IsUserEvent((*it)->GetDispatcher()->current_event())) 99 if (IsUserEvent((*it)->GetHost()->dispatcher()->current_event()))
100 return true; 100 return true;
101 } 101 }
102 return false; 102 return false;
103 } 103 }
104 104
105 // Records the type of window which was transferred to another desktop. 105 // Records the type of window which was transferred to another desktop.
106 void RecordUMAForTransferredWindowType(aura::Window* window) { 106 void RecordUMAForTransferredWindowType(aura::Window* window) {
107 // We need to figure out what kind of window this is to record the transfer. 107 // We need to figure out what kind of window this is to record the transfer.
108 Browser* browser = chrome::FindBrowserWithWindow(window); 108 Browser* browser = chrome::FindBrowserWithWindow(window);
109 ash::MultiProfileUMA::TeleportWindowType window_type = 109 ash::MultiProfileUMA::TeleportWindowType window_type =
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 window->Show(); 864 window->Show();
865 else 865 else
866 window->Hide(); 866 window->Hide();
867 867
868 // Make sure that animations have no influence on the window state after the 868 // Make sure that animations have no influence on the window state after the
869 // call. 869 // call.
870 DCHECK_EQ(visible, window->IsVisible()); 870 DCHECK_EQ(visible, window->IsVisible());
871 } 871 }
872 872
873 } // namespace chrome 873 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/find_bar/find_bar_host_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698