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

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

Issue 9959130: [Web Intents] Display throbber when loading inline disposition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
diff --git a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
index 4fb85d673cf685295508f6dc5041990174ec788e..569321e59984711b99a52196f8f678f438f7a66e 100644
--- a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
+++ b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h
@@ -9,11 +9,15 @@
#include "base/compiler_specific.h"
#include "content/public/browser/web_contents_delegate.h"
+class WebIntentPicker;
+
// This class is the policy delegate for the rendered page in the intents
// inline disposition bubble.
class WebIntentInlineDispositionDelegate : public content::WebContentsDelegate {
public:
- WebIntentInlineDispositionDelegate();
+ // |picker| is notified when the web contents loading state changes. Must not
+ // be NULL.
+ explicit WebIntentInlineDispositionDelegate(WebIntentPicker* picker);
virtual ~WebIntentInlineDispositionDelegate();
// WebContentsDelegate implementation.
@@ -25,6 +29,11 @@ class WebIntentInlineDispositionDelegate : public content::WebContentsDelegate {
virtual content::WebContents* OpenURLFromTab(
content::WebContents* source,
const content::OpenURLParams& params) OVERRIDE;
+ virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
+
+ private:
+ // Picker to notify when loading state changes. Weak pointer.
+ WebIntentPicker* picker_;
};
#endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
« no previous file with comments | « chrome/browser/ui/gtk/web_intent_picker_gtk.cc ('k') | chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698