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

Unified Diff: chrome/browser/ui/intents/web_intent_picker_model.h

Issue 10827238: [WebIntents, Gtk] "Waiting for Suggestion" dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Gtk dialog to look decent. Created 8 years, 4 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/intents/web_intent_picker_model.h
diff --git a/chrome/browser/ui/intents/web_intent_picker_model.h b/chrome/browser/ui/intents/web_intent_picker_model.h
index 4c6504dc52cbb103097a4f20c577503563c9166f..be048767d118249f0bd0f5f11590899c9718dd10 100644
--- a/chrome/browser/ui/intents/web_intent_picker_model.h
+++ b/chrome/browser/ui/intents/web_intent_picker_model.h
@@ -143,6 +143,12 @@ class WebIntentPickerModel {
// Returns true if the picker is currently displaying an inline service.
bool IsInlineDisposition() const;
+ // Returns true if there is still a pending request for suggestions from CWS.
+ bool IsWaitingForSuggestions() const;
+
+ // Set the "waiting for suggestions" status to |waiting|
+ void SetWaitingForSuggestions(bool waiting);
+
// Returns the url of the intent service that is being displayed inline, or
// GURL::EmptyGURL() if none.
GURL inline_disposition_url() const { return inline_disposition_url_; }
@@ -177,6 +183,9 @@ class WebIntentPickerModel {
// finds a default service matching the intent being dispatched.
GURL default_service_url_;
+ // Indicates that there are still open requests to CWS.
+ bool waiting_for_suggestions_;
+
DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel);
};

Powered by Google App Engine
This is Rietveld 408576698