| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 UI_AURA_MUS_FOCUS_SYNCHRONIZER_OBSERVER_H_ |
| 6 #define UI_AURA_MUS_FOCUS_SYNCHRONIZER_OBSERVER_H_ |
| 7 |
| 8 #include "ui/aura/aura_export.h" |
| 9 |
| 10 namespace aura { |
| 11 class Window; |
| 12 |
| 13 namespace client { |
| 14 class FocusClient; |
| 15 } |
| 16 |
| 17 // FocusSynchronizerObserver gets notified when the active focus client and the |
| 18 // window it's associated with (active focus client root) maintained by |
| 19 // FocusSynchronizer changed. To get notified when the actual focused window |
| 20 // gets changed, use FocusChangeObserver instead. |
| 21 class AURA_EXPORT FocusSynchronizerObserver { |
| 22 public: |
| 23 // Called from FocusSynchronizer::SetActiveFocusClient() to notify its |
| 24 // observers of active focus client and active focus client root changes. |
| 25 virtual void OnActiveFocusClientChanged(client::FocusClient* focus_client, |
| 26 Window* focus_client_root) {} |
| 27 |
| 28 protected: |
| 29 virtual ~FocusSynchronizerObserver() {} |
| 30 }; |
| 31 |
| 32 } // namespace aura |
| 33 |
| 34 #endif // UI_AURA_MUS_FOCUS_SYNCHRONIZER_OBSERVER_H_ |
| OLD | NEW |