Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / views / extensions / extension_popup_aura.h
blobd9b8e50cc6bb25ec9364d2068701bed1492ebb46
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 {
13 public:
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(
25 aura::client::ActivationChangeObserver::ActivationReason reason,
26 aura::Window* gained_active,
27 aura::Window* lost_active) override;
29 private:
30 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupAura);
33 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_AURA_H_