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

Side by Side Diff: aura/focus_manager.cc

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 #include "aura/focus_manager.h"
6
7 #include "aura/window.h"
8 #include "aura/window_delegate.h"
9
10 namespace aura {
11 namespace internal {
12
13 FocusManager::FocusManager(Window* owner)
14 : owner_(owner),
15 focused_window_(NULL) {
16 }
17
18 FocusManager::~FocusManager() {
19 }
20
21 void FocusManager::SetFocusedWindow(Window* focused_window) {
22 if (focused_window == focused_window_)
23 return;
24 if (focused_window_)
25 focused_window_->delegate()->OnBlur();
26 focused_window_ = focused_window;
27 if (focused_window_)
28 focused_window_->delegate()->OnFocus();
29 }
30
31 } // namespace internal
32 } // namespace aura
OLDNEW
« no previous file with comments | « aura/focus_manager.h ('k') | aura/hit_test.h » ('j') | ui/aura/aura.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698