| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_POPUP_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_POPUP_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_POPUP_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_POPUP_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
| 10 #include "chrome/common/notification_observer.h" |
| 10 #include "chrome/common/notification_registrar.h" | 11 #include "chrome/common/notification_registrar.h" |
| 11 | 12 |
| 12 class Profile; | 13 class Profile; |
| 13 class ExtensionPopup; | 14 class ExtensionPopup; |
| 14 | 15 |
| 15 // This extension function shows a pop-up extension view. It is asynchronous | 16 // This extension function shows a pop-up extension view. It is asynchronous |
| 16 // because the callback must be invoked only after the associated render | 17 // because the callback must be invoked only after the associated render |
| 17 // process/view has been created and fully initialized. | 18 // process/view has been created and fully initialized. |
| 18 class PopupShowFunction : public AsyncExtensionFunction, | 19 class PopupShowFunction : public AsyncExtensionFunction, |
| 19 public NotificationObserver { | 20 public NotificationObserver { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 // Event router class for events related to the chrome.popup.* set of APIs. | 43 // Event router class for events related to the chrome.popup.* set of APIs. |
| 43 class PopupEventRouter { | 44 class PopupEventRouter { |
| 44 public: | 45 public: |
| 45 static void OnPopupClosed(Profile* profile, | 46 static void OnPopupClosed(Profile* profile, |
| 46 int routing_id); | 47 int routing_id); |
| 47 private: | 48 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(PopupEventRouter); | 49 DISALLOW_COPY_AND_ASSIGN(PopupEventRouter); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_POPUP_API_H_ | 52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_POPUP_API_H_ |
| OLD | NEW |