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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_popup_gtk.h

Issue 9968076: Remove Inspect Popup command from browser actions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Views compile failure Created 8 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" 12 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
13 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" 13 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 17
18 class Browser; 18 class Browser;
19 class ExtensionHost; 19 class ExtensionHost;
20 class GURL; 20 class GURL;
21 21
22 class ExtensionPopupGtk : public content::NotificationObserver, 22 class ExtensionPopupGtk : public content::NotificationObserver,
23 public BubbleDelegateGtk, 23 public BubbleDelegateGtk,
24 public ExtensionViewGtk::Container { 24 public ExtensionViewGtk::Container {
25 public: 25 public:
26 ExtensionPopupGtk(Browser* browser, 26 ExtensionPopupGtk(Browser* browser,
27 ExtensionHost* host, 27 ExtensionHost* host,
28 GtkWidget* anchor, 28 GtkWidget* anchor);
29 bool inspect);
30 virtual ~ExtensionPopupGtk(); 29 virtual ~ExtensionPopupGtk();
31 30
32 static void Show(const GURL& url, 31 static void Show(const GURL& url,
33 Browser* browser, 32 Browser* browser,
34 GtkWidget* anchor, 33 GtkWidget* anchor);
35 bool inspect);
36 34
37 // content::NotificationObserver implementation. 35 // content::NotificationObserver implementation.
38 virtual void Observe(int type, 36 virtual void Observe(int type,
39 const content::NotificationSource& source, 37 const content::NotificationSource& source,
40 const content::NotificationDetails& details) OVERRIDE; 38 const content::NotificationDetails& details) OVERRIDE;
41 39
42 // BubbleDelegateGtk implementation. 40 // BubbleDelegateGtk implementation.
43 virtual void BubbleClosing(BubbleGtk* bubble, 41 virtual void BubbleClosing(BubbleGtk* bubble,
44 bool closed_by_escape) OVERRIDE; 42 bool closed_by_escape) OVERRIDE;
45 43
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 96
99 // Used for testing. --------------------------------------------------------- 97 // Used for testing. ---------------------------------------------------------
100 gfx::Rect GetViewBounds(); 98 gfx::Rect GetViewBounds();
101 99
102 friend class BrowserActionTestUtil; 100 friend class BrowserActionTestUtil;
103 101
104 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupGtk); 102 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupGtk);
105 }; 103 };
106 104
107 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ 105 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698