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

Unified Diff: chrome/browser/ui/gtk/web_intent_picker_gtk.h

Issue 9837011: [Web Intents] CWS inline install for GTK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
Index: chrome/browser/ui/gtk/web_intent_picker_gtk.h
diff --git a/chrome/browser/ui/gtk/web_intent_picker_gtk.h b/chrome/browser/ui/gtk/web_intent_picker_gtk.h
index bdd86d385a471f25b355148973c86916de6ebe81..7ff3bc2227193023f48350522d68ce6eef1145de 100644
--- a/chrome/browser/ui/gtk/web_intent_picker_gtk.h
+++ b/chrome/browser/ui/gtk/web_intent_picker_gtk.h
@@ -27,6 +27,7 @@ class CustomDrawButton;
class GURL;
class TabContentsContainerGtk;
class TabContentsWrapper;
+class ThrobberGtk;
class WebIntentPickerDelegate;
// Gtk implementation of WebIntentPicker.
@@ -43,6 +44,8 @@ class WebIntentPickerGtk : public WebIntentPicker,
// WebIntentPicker implementation.
virtual void Close() OVERRIDE;
+ virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE;
+ virtual void OnExtensionInstallFailure(const std::string& id) OVERRIDE;
// WebIntentPickerModelObserver implementation.
virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE;
@@ -90,6 +93,16 @@ class WebIntentPickerGtk : public WebIntentPicker,
// Update the suggested extension table from |model_|.
void UpdateSuggestedExtensions();
+ // Enables/disables all service buttons and extension suggestions.
+ void SetWidgetsEnabled(bool enabled);
+
+ // Adds a throbber to the extension at |index|. Returns the alignment widget
+ // containing the throbber.
+ GtkWidget* AddThrobberToExtensionAt(size_t index);
+
+ // Removes the added throbber.
+ void RemoveThrobber();
+
// Create a new widget displaying |rating| as 5 star images. Rating should be
// in the range [0, 5].
GtkWidget* CreateStarsWidget(double rating);
@@ -124,6 +137,9 @@ class WebIntentPickerGtk : public WebIntentPicker,
// A button to close the picker.
scoped_ptr<CustomDrawButton> close_button_;
+ // The throbber to display when installing an extension.
+ scoped_ptr<ThrobberGtk> throbber_;
+
// A weak pointer to the constrained window.
ConstrainedWindowGtk* window_;

Powered by Google App Engine
This is Rietveld 408576698