mirror of
https://github.com/electron/electron.git
synced 2026-02-13 00:25:15 -05:00
43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
// Copyright (c) 2017 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef SHELL_BROWSER_UI_WIN_ATOM_DESKTOP_NATIVE_WIDGET_AURA_H_
|
|
#define SHELL_BROWSER_UI_WIN_ATOM_DESKTOP_NATIVE_WIDGET_AURA_H_
|
|
|
|
#include "shell/browser/native_window_views.h"
|
|
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
|
|
|
|
namespace views {
|
|
class DesktopWindowTreeHost;
|
|
}
|
|
|
|
namespace electron {
|
|
|
|
class AtomDesktopNativeWidgetAura : public views::DesktopNativeWidgetAura {
|
|
public:
|
|
explicit AtomDesktopNativeWidgetAura(NativeWindowViews* native_window_view);
|
|
|
|
// views::DesktopNativeWidgetAura:
|
|
void InitNativeWidget(const views::Widget::InitParams& params) override;
|
|
|
|
// internal::NativeWidgetPrivate:
|
|
void Activate() override;
|
|
|
|
private:
|
|
void OnWindowActivated(wm::ActivationChangeObserver::ActivationReason reason,
|
|
aura::Window* gained_active,
|
|
aura::Window* lost_active) override;
|
|
|
|
NativeWindowViews* native_window_view_;
|
|
|
|
// Owned by DesktopNativeWidgetAura.
|
|
views::DesktopWindowTreeHost* desktop_window_tree_host_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomDesktopNativeWidgetAura);
|
|
};
|
|
|
|
} // namespace electron
|
|
|
|
#endif // SHELL_BROWSER_UI_WIN_ATOM_DESKTOP_NATIVE_WIDGET_AURA_H_
|