Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Unified Diff: chrome/browser/ui/views/extensions/extension_popup_aura.h

Issue 980663003: MacViews: Refactor aura dependency from ExtensionPopup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aura-window
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/extensions/extension_popup_aura.h
diff --git a/chrome/browser/ui/views/extensions/extension_popup_aura.h b/chrome/browser/ui/views/extensions/extension_popup_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd9542de5313fbce7bfa80c7ec556cdbd3133109
--- /dev/null
+++ b/chrome/browser/ui/views/extensions/extension_popup_aura.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_AURA_H_
+#define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_AURA_H_
+
+#include "chrome/browser/ui/views/extensions/extension_popup.h"
+#include "ui/wm/public/activation_change_observer.h"
+
+class ExtensionPopupAura : public ExtensionPopup,
+ public aura::client::ActivationChangeObserver {
+ public:
+ ExtensionPopupAura(extensions::ExtensionViewHost* host,
+ views::View* anchor_view,
+ views::BubbleBorder::Arrow arrow,
+ ShowAction show_action);
+ ~ExtensionPopupAura() override;
+
+ // views::WidgetObserver overrides.
+ void OnWidgetDestroying(views::Widget* widget) override;
+ void OnWidgetActivationChanged(views::Widget* widget, bool active) override;
+
+ // aura::client::ActivationChangeObserver overrides.
+ void OnWindowActivated(aura::Window* gained_active,
+ aura::Window* lost_active) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ExtensionPopupAura);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_AURA_H_

Powered by Google App Engine
This is Rietveld 408576698