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

Side by Side Diff: components/mus/focus_controller.cc

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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
« no previous file with comments | « components/mus/focus_controller.h ('k') | components/mus/focus_controller_delegate.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/mus/focus_controller.h" 5 #include "components/mus/focus_controller.h"
6 6
7 #include "components/mus/focus_controller_delegate.h" 7 #include "components/mus/focus_controller_delegate.h"
8 #include "components/mus/server_view.h" 8 #include "components/mus/server_view.h"
9 #include "components/mus/server_view_drawn_tracker.h" 9 #include "components/mus/server_view_drawn_tracker.h"
10 10
11 namespace view_manager { 11 namespace mus {
12 12
13 FocusController::FocusController(FocusControllerDelegate* delegate) 13 FocusController::FocusController(FocusControllerDelegate* delegate)
14 : delegate_(delegate) {} 14 : delegate_(delegate) {}
15 15
16 FocusController::~FocusController() {} 16 FocusController::~FocusController() {}
17 17
18 void FocusController::SetFocusedView(ServerView* view) { 18 void FocusController::SetFocusedView(ServerView* view) {
19 if (GetFocusedView() == view) 19 if (GetFocusedView() == view)
20 return; 20 return;
21 21
(...skipping 19 matching lines...) Expand all
41 delegate_->OnFocusChanged(old, view); 41 delegate_->OnFocusChanged(old, view);
42 } 42 }
43 43
44 void FocusController::OnDrawnStateChanged(ServerView* ancestor, 44 void FocusController::OnDrawnStateChanged(ServerView* ancestor,
45 ServerView* view, 45 ServerView* view,
46 bool is_drawn) { 46 bool is_drawn) {
47 DCHECK(!is_drawn); // We only observe when drawn. 47 DCHECK(!is_drawn); // We only observe when drawn.
48 SetFocusedViewImpl(ancestor, CHANGE_SOURCE_DRAWN_STATE_CHANGED); 48 SetFocusedViewImpl(ancestor, CHANGE_SOURCE_DRAWN_STATE_CHANGED);
49 } 49 }
50 50
51 } // namespace view_manager 51 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/focus_controller.h ('k') | components/mus/focus_controller_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698