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

Side by Side Diff: aura/focus_manager.h

Issue 7886042: Move Aura to UI subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef AURA_FOCUS_MANAGER_H_
6 #define AURA_FOCUS_MANAGER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10
11 namespace aura {
12 class Window;
13
14 namespace internal {
15
16 // The FocusManager, when attached to a Window, tracks changes to keyboard input
17 // focus within that Window's hierarchy.
18 class FocusManager {
19 public:
20 explicit FocusManager(Window* owner);
21 ~FocusManager();
22
23 void SetFocusedWindow(Window* window);
24
25 Window* focused_window() { return focused_window_; }
26
27 private:
28 Window* owner_;
29 Window* focused_window_;
30
31 DISALLOW_COPY_AND_ASSIGN(FocusManager);
32 };
33
34 } // namespace internal
35 } // namespace aura
36
37 #endif // AURA_FOCUS_MANAGER_H_
OLDNEW
« no previous file with comments | « aura/event_x.cc ('k') | aura/focus_manager.cc » ('j') | ui/aura/aura.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698