| 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 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 10 #include "content/public/browser/web_contents_delegate.h" | 10 #include "content/public/browser/web_contents_delegate.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // WebContentsDelegate implementation. | 33 // WebContentsDelegate implementation. |
| 34 virtual bool IsPopupOrPanel( | 34 virtual bool IsPopupOrPanel( |
| 35 const content::WebContents* source) const OVERRIDE; | 35 const content::WebContents* source) const OVERRIDE; |
| 36 virtual bool ShouldAddNavigationToHistory( | 36 virtual bool ShouldAddNavigationToHistory( |
| 37 const history::HistoryAddPageArgs& add_page_args, | 37 const history::HistoryAddPageArgs& add_page_args, |
| 38 content::NavigationType navigation_type) OVERRIDE; | 38 content::NavigationType navigation_type) OVERRIDE; |
| 39 virtual content::WebContents* OpenURLFromTab( | 39 virtual content::WebContents* OpenURLFromTab( |
| 40 content::WebContents* source, | 40 content::WebContents* source, |
| 41 const content::OpenURLParams& params) OVERRIDE; | 41 const content::OpenURLParams& params) OVERRIDE; |
| 42 virtual void AddNewContents(content::WebContents* source, | 42 virtual bool AddNewContents(content::WebContents* source, |
| 43 content::WebContents* new_contents, | 43 content::WebContents* new_contents, |
| 44 WindowOpenDisposition disposition, | 44 WindowOpenDisposition disposition, |
| 45 const gfx::Rect& initial_pos, | 45 const gfx::Rect& initial_pos, |
| 46 bool user_gesture) OVERRIDE; | 46 bool user_gesture) OVERRIDE; |
| 47 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; | 47 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; |
| 48 virtual void ResizeDueToAutoResize(content::WebContents* source, | 48 virtual void ResizeDueToAutoResize(content::WebContents* source, |
| 49 const gfx::Size& pref_size) OVERRIDE; | 49 const gfx::Size& pref_size) OVERRIDE; |
| 50 | 50 |
| 51 // content::WebContentsObserver | 51 // content::WebContentsObserver |
| 52 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 52 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 67 // The WebContents container. Weak pointer. | 67 // The WebContents container. Weak pointer. |
| 68 content::WebContents* web_contents_; | 68 content::WebContents* web_contents_; |
| 69 | 69 |
| 70 Browser* browser_; // Weak pointer. | 70 Browser* browser_; // Weak pointer. |
| 71 | 71 |
| 72 // Dispatch handler for extension APIs. | 72 // Dispatch handler for extension APIs. |
| 73 ExtensionFunctionDispatcher extension_function_dispatcher_; | 73 ExtensionFunctionDispatcher extension_function_dispatcher_; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ | 76 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ |
| OLD | NEW |