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

Side by Side Diff: ui/aura/desktop/desktop_activation_client.h

Issue 10827145: Convert Aura to use ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « ui/aura/demo/demo_main.cc ('k') | ui/aura/desktop/desktop_activation_client.cc » ('j') | no next file with comments »
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 UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ 5 #ifndef UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_
6 #define UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ 6 #define UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/scoped_observer.h" 10 #include "base/scoped_observer.h"
(...skipping 21 matching lines...) Expand all
32 explicit DesktopActivationClient(FocusManager* focus_manager); 32 explicit DesktopActivationClient(FocusManager* focus_manager);
33 virtual ~DesktopActivationClient(); 33 virtual ~DesktopActivationClient();
34 34
35 // ActivationClient: 35 // ActivationClient:
36 virtual void AddObserver(client::ActivationChangeObserver* observer) OVERRIDE; 36 virtual void AddObserver(client::ActivationChangeObserver* observer) OVERRIDE;
37 virtual void RemoveObserver( 37 virtual void RemoveObserver(
38 client::ActivationChangeObserver* observer) OVERRIDE; 38 client::ActivationChangeObserver* observer) OVERRIDE;
39 virtual void ActivateWindow(Window* window) OVERRIDE; 39 virtual void ActivateWindow(Window* window) OVERRIDE;
40 virtual void DeactivateWindow(Window* window) OVERRIDE; 40 virtual void DeactivateWindow(Window* window) OVERRIDE;
41 virtual aura::Window* GetActiveWindow() OVERRIDE; 41 virtual aura::Window* GetActiveWindow() OVERRIDE;
42 virtual bool OnWillFocusWindow(Window* window, const Event* event) OVERRIDE; 42 virtual bool OnWillFocusWindow(Window* window,
43 const ui::Event* event) OVERRIDE;
43 virtual bool CanActivateWindow(Window* window) const OVERRIDE; 44 virtual bool CanActivateWindow(Window* window) const OVERRIDE;
44 45
45 // Overridden from aura::WindowObserver: 46 // Overridden from aura::WindowObserver:
46 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 47 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
47 48
48 // Overridden from aura::EnvObserver: 49 // Overridden from aura::EnvObserver:
49 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; 50 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE;
50 51
51 // Overridden from aura::FocusChangeObserver: 52 // Overridden from aura::FocusChangeObserver:
52 virtual void OnWindowFocused(aura::Window* window) OVERRIDE; 53 virtual void OnWindowFocused(aura::Window* window) OVERRIDE;
(...skipping 16 matching lines...) Expand all
69 ObserverList<client::ActivationChangeObserver> observers_; 70 ObserverList<client::ActivationChangeObserver> observers_;
70 71
71 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; 72 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(DesktopActivationClient); 74 DISALLOW_COPY_AND_ASSIGN(DesktopActivationClient);
74 }; 75 };
75 76
76 } // namespace aura 77 } // namespace aura
77 78
78 #endif // UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_ 79 #endif // UI_AURA_DESKTOP_DESTKOP_ACTIVATION_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/desktop/desktop_activation_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698