Chromium Code Reviews| 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() {} | |
|
sadrul
2017/03/28 15:03:23
I think this can just be public
riajiang
2017/03/28 22:07:27
But the current pattern of other observer classes
sadrul
2017/03/29 16:13:19
Yes. I can't think of a good reason for doing this
riajiang
2017/03/29 17:27:35
I think I'll keep it here to be consistent for now
| |
| 30 }; | |
| 31 | |
| 32 } // namespace aura | |
| 33 | |
| 34 #endif // UI_AURA_MUS_FOCUS_SYNCHRONIZER_OBSERVER_H_ | |
| OLD | NEW |