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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
11 11
12 class WebIntentPicker;
13
12 // This class is the policy delegate for the rendered page in the intents 14 // This class is the policy delegate for the rendered page in the intents
13 // inline disposition bubble. 15 // inline disposition bubble.
14 class WebIntentInlineDispositionDelegate : public content::WebContentsDelegate { 16 class WebIntentInlineDispositionDelegate : public content::WebContentsDelegate {
15 public: 17 public:
16 WebIntentInlineDispositionDelegate(); 18 explicit WebIntentInlineDispositionDelegate(WebIntentPicker* picker);
James Hawkins 2012/04/11 18:05:46 Document |picker|.
binji 2012/04/12 17:48:49 Done.
17 virtual ~WebIntentInlineDispositionDelegate(); 19 virtual ~WebIntentInlineDispositionDelegate();
18 20
19 // WebContentsDelegate implementation. 21 // WebContentsDelegate implementation.
20 virtual bool IsPopupOrPanel( 22 virtual bool IsPopupOrPanel(
21 const content::WebContents* source) const OVERRIDE; 23 const content::WebContents* source) const OVERRIDE;
22 virtual bool ShouldAddNavigationToHistory( 24 virtual bool ShouldAddNavigationToHistory(
23 const history::HistoryAddPageArgs& add_page_args, 25 const history::HistoryAddPageArgs& add_page_args,
24 content::NavigationType navigation_type) OVERRIDE; 26 content::NavigationType navigation_type) OVERRIDE;
25 virtual content::WebContents* OpenURLFromTab( 27 virtual content::WebContents* OpenURLFromTab(
26 content::WebContents* source, 28 content::WebContents* source,
27 const content::OpenURLParams& params) OVERRIDE; 29 const content::OpenURLParams& params) OVERRIDE;
30 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
31
32 private:
33 // Picker to notify when loading state changes.
34 WebIntentPicker* picker_;
James Hawkins 2012/04/11 18:05:46 Document ownership.
binji 2012/04/12 17:48:49 Done.
28 }; 35 };
29 36
30 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ 37 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698