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

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

Issue 698543005: Make a pure mojo::View version of the aura::Window FocusController. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Restore things lost from a deleted use_aura block in BUILD.gn files. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_SERIVCES_WINDOW_MANAGER_BASIC_FOCUS_RULES_H_
6 #define MOJO_SERIVCES_WINDOW_MANAGER_BASIC_FOCUS_RULES_H_
7
8 #include "mojo/services/window_manager/focus_rules.h"
9
10 namespace mojo {
11
12 class WindowManagerApp;
13 class View;
14
15 class BasicFocusRules : public FocusRules {
sky 2014/11/10 20:45:30 Description.
16 public:
17 BasicFocusRules(mojo::WindowManagerApp* window_manager_app,
18 mojo::View* window_container);
19 ~BasicFocusRules() override;
20
21 private:
22 // Overridden from mojo::FocusRules:
23 bool IsToplevelView(mojo::View* view) const override;
24 bool CanActivateView(mojo::View* view) const override;
25 bool CanFocusView(mojo::View* view) const override;
26 mojo::View* GetToplevelView(mojo::View* view) const override;
27 mojo::View* GetActivatableView(mojo::View* view) const override;
28 mojo::View* GetFocusableView(mojo::View* view) const override;
29 mojo::View* GetNextActivatableView(mojo::View* activatable) const override;
30
31 mojo::View* window_container_;
32 mojo::WindowManagerApp* window_manager_app_;
33
34 DISALLOW_COPY_AND_ASSIGN(BasicFocusRules);
35 };
36
37 } // namespace mojo
38
39 #endif // MOJO_SERIVCES_WINDOW_MANAGER_BASIC_FOCUS_RULES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698