| OLD | NEW |
| (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_ | |
| OLD | NEW |