1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_AURA_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_AURA_H_
8 #include "chrome/browser/ui/views/extensions/extension_popup.h"
9 #include "ui/wm/public/activation_change_observer.h"
11 class ExtensionPopupAura
: public ExtensionPopup
,
12 public aura::client::ActivationChangeObserver
{
14 ExtensionPopupAura(extensions::ExtensionViewHost
* host
,
15 views::View
* anchor_view
,
16 views::BubbleBorder::Arrow arrow
,
17 ShowAction show_action
);
18 ~ExtensionPopupAura() override
;
20 // views::WidgetObserver overrides.
21 void OnWidgetDestroying(views::Widget
* widget
) override
;
23 // aura::client::ActivationChangeObserver overrides.
24 void OnWindowActivated(aura::Window
* gained_active
,
25 aura::Window
* lost_active
) override
;
28 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupAura
);
31 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_AURA_H_