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

Unified Diff: chrome/browser/gtk/extension_popup_gtk.h

Issue 1170001: GTK: allow inspecting of extension popups. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
« no previous file with comments | « chrome/browser/gtk/extension_installed_bubble_gtk.cc ('k') | chrome/browser/gtk/extension_popup_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/extension_popup_gtk.h
===================================================================
--- chrome/browser/gtk/extension_popup_gtk.h (revision 42274)
+++ chrome/browser/gtk/extension_popup_gtk.h (working copy)
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_GTK_EXTENSION_POPUP_GTK_H_
#include "base/scoped_ptr.h"
+#include "base/task.h"
#include "chrome/browser/gtk/info_bubble_gtk.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
@@ -20,12 +21,14 @@
public:
ExtensionPopupGtk(Browser* browser,
ExtensionHost* host,
- const gfx::Rect& relative_to);
+ const gfx::Rect& relative_to,
+ bool inspect);
virtual ~ExtensionPopupGtk();
static void Show(const GURL& url,
Browser* browser,
- const gfx::Rect& relative_to);
+ const gfx::Rect& relative_to,
+ bool inspect);
// NotificationObserver implementation.
virtual void Observe(NotificationType type,
@@ -46,6 +49,10 @@
return current_extension_popup_;
}
+ bool being_inspected() const {
+ return being_inspected_;
+ }
+
private:
// Shows the popup widget. Called after loading completes.
void ShowPopup();
@@ -65,6 +72,11 @@
static ExtensionPopupGtk* current_extension_popup_;
+ // Whether a devtools window is attached to this bubble.
+ bool being_inspected_;
+
+ ScopedRunnableMethodFactory<ExtensionPopupGtk> method_factory_;
+
// Used for testing. ---------------------------------------------------------
gfx::Rect GetViewBounds();
« no previous file with comments | « chrome/browser/gtk/extension_installed_bubble_gtk.cc ('k') | chrome/browser/gtk/extension_popup_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698