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

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

Issue 10910064: Extension Commands: Add [Manage Shortcuts] link to the Extension Install Bubble (Views and GTK only) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_INSTALLED_BUBBLE_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // BubbleDelegateGtk: 74 // BubbleDelegateGtk:
75 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; 75 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE;
76 76
77 // Calls Release() internally. Called internally via PostTask. 77 // Calls Release() internally. Called internally via PostTask.
78 void Close(); 78 void Close();
79 79
80 static void OnButtonClick(GtkWidget* button, 80 static void OnButtonClick(GtkWidget* button,
81 ExtensionInstalledBubbleGtk* toolbar); 81 ExtensionInstalledBubbleGtk* toolbar);
82 82
83 // Link button callbacks.
84 CHROMEGTK_CALLBACK_0(ExtensionInstalledBubbleGtk, void, OnLinkClicked);
85
83 const extensions::Extension* extension_; 86 const extensions::Extension* extension_;
84 Browser* browser_; 87 Browser* browser_;
85 SkBitmap icon_; 88 SkBitmap icon_;
86 content::NotificationRegistrar registrar_; 89 content::NotificationRegistrar registrar_;
87 BubbleType type_; 90 BubbleType type_;
88 91
89 // The number of times to retry showing the bubble if the browser action 92 // The number of times to retry showing the bubble if the browser action
90 // toolbar is animating. 93 // toolbar is animating.
91 int animation_wait_retries_; 94 int animation_wait_retries_;
92 95
93 // The 'x' that the user can press to hide the bubble shelf. 96 // The 'x' that the user can press to hide the bubble shelf.
94 scoped_ptr<CustomDrawButton> close_button_; 97 scoped_ptr<CustomDrawButton> close_button_;
95 98
96 BubbleGtk* bubble_; 99 BubbleGtk* bubble_;
97 100
98 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleGtk); 101 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleGtk);
99 }; 102 };
100 103
101 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_ 104 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_GTK_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698