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

Unified Diff: chrome/browser/ui/panels/panel.h

Issue 10777004: Support chrome.windows extension API events for browserless Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac unit_test failure Created 8 years, 5 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/panels/panel.h
diff --git a/chrome/browser/ui/panels/panel.h b/chrome/browser/ui/panels/panel.h
index 4a3d15db8a1e7e5c98bd76e2f9728746f7db8b03..3e4de7f1b88a225c2cd49f2c4f7441a1e1698eb5 100644
--- a/chrome/browser/ui/panels/panel.h
+++ b/chrome/browser/ui/panels/panel.h
@@ -20,6 +20,7 @@
class Browser;
class BrowserWindow;
+class ExtensionPanelEventRouter;
class ExtensionWindowController;
class GURL;
class NativePanel;
@@ -326,6 +327,10 @@ class Panel : public BaseWindow,
// Prepares a title string for display (removes embedded newlines, etc).
static void FormatTitleForDisplay(string16* title);
+ // Used to send Panel window events to listeners in extension process
+ // renderers. May return NULL.
+ ExtensionPanelEventRouter* GetEventRouter();
+
// The application name that is also the name of the window when the
// page content does not provide a title.
// This name should be set when the panel is created.

Powered by Google App Engine
This is Rietveld 408576698