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

Side by Side Diff: sky/tools/debugger/focus_rules.h

Issue 718573002: Revert "Remove aura and make a pure mojo::View version of the aura::Window FocusController." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/tools/debugger/debugger.cc ('k') | sky/tools/debugger/focus_rules.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SKY_TOOLS_DEBUGGER_FOCUS_RULES_H_
6 #define SKY_TOOLS_DEBUGGER_FOCUS_RULES_H_
7
8 #include "mojo/services/window_manager/window_manager_app.h"
9 #include "ui/aura/window.h"
10 #include "ui/wm/core/focus_rules.h"
11
12 namespace sky {
13 namespace debugger {
14
15 class FocusRules : public wm::FocusRules {
16 public:
17 FocusRules(mojo::WindowManagerApp* window_manager_app, mojo::View* content);
18 virtual ~FocusRules();
19
20 private:
21 // Overridden from wm::FocusRules:
22 bool IsToplevelWindow(aura::Window* window) const override;
23 bool CanActivateWindow(aura::Window* window) const override;
24 bool CanFocusWindow(aura::Window* window) const override;
25 aura::Window* GetToplevelWindow(aura::Window* window) const override;
26 aura::Window* GetActivatableWindow(aura::Window* window) const override;
27 aura::Window* GetFocusableWindow(aura::Window* window) const override;
28 aura::Window* GetNextActivatableWindow(aura::Window* ignore) const override;
29
30 mojo::View* content_;
31 mojo::WindowManagerApp* window_manager_app_;
32
33 DISALLOW_COPY_AND_ASSIGN(FocusRules);
34 };
35
36 } // namespace debugger
37 } // namespace sky
38
39 #endif // SKY_TOOLS_DEBUGGER_FOCUS_RULES_H_
OLDNEW
« no previous file with comments | « sky/tools/debugger/debugger.cc ('k') | sky/tools/debugger/focus_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698