Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_ |
| OLD | NEW |