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

Side by Side Diff: ash/wm/activation_controller.h

Issue 9719037: Aura: Add non-browser windows into the list of "Alt + Tab" cycle list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 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
« no previous file with comments | « no previous file | ash/wm/activation_controller.cc » ('j') | ash/wm/activation_controller.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WM_ACTIVATION_CONTROLLER_H_ 5 #ifndef ASH_WM_ACTIVATION_CONTROLLER_H_
6 #define ASH_WM_ACTIVATION_CONTROLLER_H_ 6 #define ASH_WM_ACTIVATION_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 ActivationController(); 28 ActivationController();
29 virtual ~ActivationController(); 29 virtual ~ActivationController();
30 30
31 // Returns true if |window| exists within a container that supports 31 // Returns true if |window| exists within a container that supports
32 // activation. |event| is the revent responsible for initiating the change, or 32 // activation. |event| is the revent responsible for initiating the change, or
33 // NULL if there is no event. 33 // NULL if there is no event.
34 static aura::Window* GetActivatableWindow(aura::Window* window, 34 static aura::Window* GetActivatableWindow(aura::Window* window,
35 const aura::Event* event); 35 const aura::Event* event);
36 36
37 // Determines if the given window itself can be activated or not. Returns
sky 2012/03/27 14:59:58 How about: Returns true if |window| can be activat
yoshiki 2012/03/28 15:08:41 Done. Thanks, I've used it. And the comment has be
38 // true if the window itself can be activated. (If it has a modal child
39 // window, it cannot be activated, because the focus is propagated) Otherwise,
40 // return false.
41 static bool CanActivateWindowItself(aura::Window* window);
sky 2012/03/27 14:59:58 Just CanActivateWindow, and this should be a metho
yoshiki 2012/03/28 15:08:41 Done.
42
37 // Overridden from aura::client::ActivationClient: 43 // Overridden from aura::client::ActivationClient:
38 virtual void ActivateWindow(aura::Window* window) OVERRIDE; 44 virtual void ActivateWindow(aura::Window* window) OVERRIDE;
39 virtual void DeactivateWindow(aura::Window* window) OVERRIDE; 45 virtual void DeactivateWindow(aura::Window* window) OVERRIDE;
40 virtual aura::Window* GetActiveWindow() OVERRIDE; 46 virtual aura::Window* GetActiveWindow() OVERRIDE;
41 virtual bool OnWillFocusWindow(aura::Window* window, 47 virtual bool OnWillFocusWindow(aura::Window* window,
42 const aura::Event* event) OVERRIDE; 48 const aura::Event* event) OVERRIDE;
43 49
44 // Overridden from aura::WindowObserver: 50 // Overridden from aura::WindowObserver:
45 virtual void OnWindowVisibilityChanged(aura::Window* window, 51 virtual void OnWindowVisibilityChanged(aura::Window* window,
46 bool visible) OVERRIDE; 52 bool visible) OVERRIDE;
(...skipping 27 matching lines...) Expand all
74 // change notifications causing activation. 80 // change notifications causing activation.
75 bool updating_activation_; 81 bool updating_activation_;
76 82
77 DISALLOW_COPY_AND_ASSIGN(ActivationController); 83 DISALLOW_COPY_AND_ASSIGN(ActivationController);
78 }; 84 };
79 85
80 } // namespace internal 86 } // namespace internal
81 } // namespace ash 87 } // namespace ash
82 88
83 #endif // ASH_WM_ACTIVATION_CONTROLLER_H_ 89 #endif // ASH_WM_ACTIVATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/activation_controller.cc » ('j') | ash/wm/activation_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698