Home | History | Annotate | Download | only in wm

Lines Matching full:aura

14 #include "ui/aura/client/activation_change_observer.h"
15 #include "ui/aura/client/activation_delegate.h"
16 #include "ui/aura/client/aura_constants.h"
17 #include "ui/aura/client/focus_client.h"
18 #include "ui/aura/env.h"
19 #include "ui/aura/root_window.h"
20 #include "ui/aura/window.h"
21 #include "ui/aura/window_delegate.h"
50 bool BelongsToContainerWithEqualOrGreaterId(const aura::Window* window,
61 bool SupportsChildActivation(aura::Window* window) {
69 bool HasModalTransientChild(aura::Window* window) {
70 aura::Window::Windows::const_iterator it;
74 if ((*it)->GetProperty(aura::client::kModalKey) == ui::MODAL_TYPE_WINDOW)
91 bool VisibilityMatches(aura::Window* window, ActivateVisibilityType type) {
103 bool CanActivateWindowWithEvent(aura::Window* window,
108 (!aura::client::GetActivationDelegate(window) ||
109 aura::client::GetActivationDelegate(window)->ShouldActivate()) &&
119 void StackTransientParentsBelowModalWindow(aura::Window* window) {
120 if (window->GetProperty(aura::client::kModalKey) != ui::MODAL_TYPE_WINDOW)
123 aura::Window* transient_parent = window->transient_parent();
130 aura::Window* FindFocusableWindowFor(aura::Window* window) {
142 aura::client::FocusClient* focus_client,
149 aura::Env::GetInstance()->AddObserver(this);
154 aura::Env::GetInstance()->RemoveObserver(this);
159 aura::Window* ActivationController::GetActivatableWindow(
160 aura::Window* window,
162 aura::Window* parent = window->parent();
163 aura::Window* child = window;
177 bool ActivationController::CanActivateWindow(aura::Window* window) const {
183 // ActivationController, aura::client::ActivationClient implementation:
186 aura::client::ActivationChangeObserver* observer) {
191 aura::client::ActivationChangeObserver* observer) {
195 void ActivationController::ActivateWindow(aura::Window* window) {
199 void ActivationController::DeactivateWindow(aura::Window* window) {
204 aura::Window* ActivationController::GetActiveWindow() {
208 aura::Window* ActivationController::GetActivatableWindow(aura::Window* window) {
212 aura::Window* ActivationController::GetToplevelWindow(aura::Window* window) {
216 bool ActivationController::OnWillFocusWindow(aura::Window* window,
223 // ActivationController, aura::WindowObserver implementation:
225 void ActivationController::OnWindowVisibilityChanged(aura::Window* window,
228 aura::Window* next_window = ActivateNextWindow(window);
238 void ActivationController::OnWindowDestroying(aura::Window* window) {
243 FOR_EACH_OBSERVER(aura::client::ActivationChangeObserver,
252 // ActivationController, aura::EnvObserver implementation:
254 void ActivationController::OnWindowInitialized(aura::Window* window) {
259 // ActivationController, aura::RootWindowObserver implementation:
261 void ActivationController::OnWindowFocused(aura::Window* gained_focus,
262 aura::Window* lost_focus) {
296 void ActivationController::ActivateWindowWithEvent(aura::Window* window,
305 aura::Window* original_active_window = window;
321 aura::Window* old_active = active_window_;
325 !window->Contains(aura::client::GetFocusClient(window)->
327 aura::client::GetFocusClient(window)->FocusWindow(window);
335 FOR_EACH_OBSERVER(aura::client::ActivationChangeObserver,
338 if (aura::client::GetActivationChangeObserver(old_active)) {
339 aura::client::GetActivationChangeObserver(old_active)->OnWindowActivated(
342 if (aura::client::GetActivationChangeObserver(window)) {
343 aura::client::GetActivationChangeObserver(window)->OnWindowActivated(
348 aura::Window* ActivationController::ActivateNextWindow(aura::Window* window) {
349 aura::Window* next_window = NULL;
357 aura::Window* ActivationController::GetTopmostWindowToActivate(
358 aura::Window* ignore) const {
362 aura::RootWindow* root = ignore->GetRootWindow();
366 aura::Window* container = Shell::GetContainer(root, kWindowContainerIds[i]);
374 aura::Window* window = NULL;
377 aura::Window::Windows containers = Shell::GetContainersFromAllRootWindows(
380 for (aura::Window::Windows::const_iterator iter = containers.begin();
388 aura::Window* ActivationController::GetTopmostWindowToActivateInContainer(
389 aura::Window* container,
390 aura::Window* ignore) const {
391 for (aura::Window::Windows::const_reverse_iterator i =
404 aura::Window* window = static_cast<aura::Window*>(event->target());
407 aura::client::GetFocusClient(window)->FocusWindow(