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

Side by Side Diff: ui/aura/client/focus_change_observer.h

Issue 11299219: Rework FocusManager as FocusClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/bench/bench_main.cc ('k') | ui/aura/client/focus_client.h » ('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_FOCUS_CHANGE_OBSERVER_H_ 5 #ifndef UI_AURA_CLIENT_FOCUS_CHANGE_OBSERVER_H_
6 #define UI_AURA_FOCUS_CHANGE_OBSERVER_H_ 6 #define UI_AURA_CLIENT_FOCUS_CHANGE_OBSERVER_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 9
10 namespace aura { 10 namespace aura {
11 class Window;
12 namespace client {
11 13
12 class Window; 14 // TODO(beng): this interface will be OBSOLETE by FocusChangeEvent.
13
14 class AURA_EXPORT FocusChangeObserver { 15 class AURA_EXPORT FocusChangeObserver {
15 public: 16 public:
16 // Called when |window| gains focus. 17 // Called when |window| gains focus.
17 virtual void OnWindowFocused(Window* window) = 0; 18 virtual void OnWindowFocused(Window* window) = 0;
18 19
19 protected: 20 protected:
20 virtual ~FocusChangeObserver() {} 21 virtual ~FocusChangeObserver() {}
21 }; 22 };
22 23
24 } // namespace client
23 } // namespace aura 25 } // namespace aura
24 26
25 #endif // UI_AURA_FOCUS_CHANGE_OBSERVER_H_ 27 #endif // UI_AURA_CLIENT_FOCUS_CHANGE_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/aura/bench/bench_main.cc ('k') | ui/aura/client/focus_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698