update calls to use new namespaces
This commit is contained in:
parent
5e198d9dc6
commit
8d8b8c590d
2 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@ AtomDesktopNativeWidgetAura::AtomDesktopNativeWidgetAura(
|
|||
views::internal::NativeWidgetDelegate* delegate)
|
||||
: views::DesktopNativeWidgetAura(delegate) {
|
||||
// This is to enable the override of OnWindowActivated
|
||||
aura::client::SetActivationChangeObserver(GetNativeWindow(), this);
|
||||
wm::SetActivationChangeObserver(GetNativeWindow(), this);
|
||||
}
|
||||
|
||||
void AtomDesktopNativeWidgetAura::Activate() {
|
||||
|
@ -24,14 +24,14 @@ void AtomDesktopNativeWidgetAura::Activate() {
|
|||
}
|
||||
|
||||
void AtomDesktopNativeWidgetAura::OnWindowActivated(
|
||||
aura::client::ActivationChangeObserver::ActivationReason reason,
|
||||
wm::ActivationChangeObserver::ActivationReason reason,
|
||||
aura::Window* gained_active,
|
||||
aura::Window* lost_active) {
|
||||
views::DesktopNativeWidgetAura::OnWindowActivated(
|
||||
reason, gained_active, lost_active);
|
||||
if (lost_active != nullptr) {
|
||||
auto* tooltip_controller = static_cast<views::corewm::TooltipController*>(
|
||||
aura::client::GetTooltipClient(lost_active->GetRootWindow()));
|
||||
wm::GetTooltipClient(lost_active->GetRootWindow()));
|
||||
|
||||
// This will cause the tooltip to be hidden when a window is deactivated,
|
||||
// as it should be.
|
||||
|
|
|
@ -20,7 +20,7 @@ class AtomDesktopNativeWidgetAura : public views::DesktopNativeWidgetAura {
|
|||
|
||||
private:
|
||||
void OnWindowActivated(
|
||||
aura::client::ActivationChangeObserver::ActivationReason reason,
|
||||
wm::ActivationChangeObserver::ActivationReason reason,
|
||||
aura::Window* gained_active,
|
||||
aura::Window* lost_active) override;
|
||||
DISALLOW_COPY_AND_ASSIGN(AtomDesktopNativeWidgetAura);
|
||||
|
|
Loading…
Reference in a new issue