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

Side by Side Diff: ash/shell.h

Issue 14222019: Trying to activate a window in a workspace other than the current is ignored while a system modal d… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef ASH_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE; 466 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE;
467 467
468 // Overridden from ui::EventTarget: 468 // Overridden from ui::EventTarget:
469 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE; 469 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE;
470 virtual EventTarget* GetParentTarget() OVERRIDE; 470 virtual EventTarget* GetParentTarget() OVERRIDE;
471 virtual void OnEvent(ui::Event* event) OVERRIDE; 471 virtual void OnEvent(ui::Event* event) OVERRIDE;
472 472
473 // Overridden from aura::client::ActivationChangeObserver: 473 // Overridden from aura::client::ActivationChangeObserver:
474 virtual void OnWindowActivated(aura::Window* gained_active, 474 virtual void OnWindowActivated(aura::Window* gained_active,
475 aura::Window* lost_active) OVERRIDE; 475 aura::Window* lost_active) OVERRIDE;
476 virtual void OnWindowActivationRequestCompleted(
477 aura::Window* request_active, aura::Window* actual_active) OVERRIDE;
476 478
477 static Shell* instance_; 479 static Shell* instance_;
478 480
479 // If set before the Shell is initialized, the mouse cursor will be hidden 481 // If set before the Shell is initialized, the mouse cursor will be hidden
480 // when the screen is initially created. 482 // when the screen is initially created.
481 static bool initially_hide_cursor_; 483 static bool initially_hide_cursor_;
482 484
483 ScreenAsh* screen_; 485 ScreenAsh* screen_;
484 486
485 // Active root window. Never becomes NULL during the session. 487 // Active root window. Never becomes NULL during the session.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 584
583 // For testing only: simulate that a modal window is open 585 // For testing only: simulate that a modal window is open
584 bool simulate_modal_window_open_for_testing_; 586 bool simulate_modal_window_open_for_testing_;
585 587
586 DISALLOW_COPY_AND_ASSIGN(Shell); 588 DISALLOW_COPY_AND_ASSIGN(Shell);
587 }; 589 };
588 590
589 } // namespace ash 591 } // namespace ash
590 592
591 #endif // ASH_SHELL_H_ 593 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698