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

Side by Side Diff: mojo/services/window_manager/focus_controller.h

Issue 737913002: Dispatch key events to the currently focused window. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Redo FocusController storage so that it is a local property on a view. Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_ 5 #ifndef MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_
6 #define MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_ 6 #define MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 scoped_ptr<FocusRules> rules_; 89 scoped_ptr<FocusRules> rules_;
90 90
91 ObserverList<FocusControllerObserver> focus_controller_observers_; 91 ObserverList<FocusControllerObserver> focus_controller_observers_;
92 92
93 ScopedObserver<View, ViewObserver> observer_manager_; 93 ScopedObserver<View, ViewObserver> observer_manager_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(FocusController); 95 DISALLOW_COPY_AND_ASSIGN(FocusController);
96 }; 96 };
97 97
98 // Sets/Gets the focus controller for a root view.
99 void SetFocusController(View* view, FocusController* focus_controller);
100 FocusController* GetFocusController(View* view);
101
98 } // namespace mojo 102 } // namespace mojo
99 103
100 #endif // MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_ 104 #endif // MOJO_SERIVCES_WINDOW_MANAGER_FOCUS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « mojo/services/window_manager/basic_focus_rules.cc ('k') | mojo/services/window_manager/focus_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698