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_PANELS_PANEL_HOST_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 10 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual ~PanelHost(); | 40 virtual ~PanelHost(); |
41 | 41 |
42 void Init(const GURL& url); | 42 void Init(const GURL& url); |
43 content::WebContents* web_contents() { return web_contents_.get(); } | 43 content::WebContents* web_contents() { return web_contents_.get(); } |
44 void DestroyWebContents(); | 44 void DestroyWebContents(); |
45 | 45 |
46 // Returns the icon for the current page. | 46 // Returns the icon for the current page. |
47 SkBitmap GetPageIcon() const; | 47 SkBitmap GetPageIcon() const; |
48 | 48 |
49 // content::WebContentsDelegate overrides. | 49 // content::WebContentsDelegate overrides. |
| 50 virtual content::WebContents* OpenURLFromTab( |
| 51 content::WebContents* source, |
| 52 const content::OpenURLParams& params) OVERRIDE; |
50 virtual void NavigationStateChanged(const content::WebContents* source, | 53 virtual void NavigationStateChanged(const content::WebContents* source, |
51 unsigned changed_flags) OVERRIDE; | 54 unsigned changed_flags) OVERRIDE; |
52 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; | 55 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; |
53 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE; | 56 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE; |
54 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; | 57 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; |
55 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 58 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
56 virtual void MoveContents(content::WebContents* source, | 59 virtual void MoveContents(content::WebContents* source, |
57 const gfx::Rect& pos) OVERRIDE; | 60 const gfx::Rect& pos) OVERRIDE; |
58 virtual bool IsPopupOrPanel( | 61 virtual bool IsPopupOrPanel( |
59 const content::WebContents* source) const OVERRIDE; | 62 const content::WebContents* source) const OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 base::WeakPtrFactory<PanelHost> weak_factory_; | 103 base::WeakPtrFactory<PanelHost> weak_factory_; |
101 | 104 |
102 scoped_ptr<PrefsTabHelper> prefs_tab_helper_; | 105 scoped_ptr<PrefsTabHelper> prefs_tab_helper_; |
103 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 106 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
104 scoped_ptr<content::WebContents> web_contents_; | 107 scoped_ptr<content::WebContents> web_contents_; |
105 | 108 |
106 DISALLOW_COPY_AND_ASSIGN(PanelHost); | 109 DISALLOW_COPY_AND_ASSIGN(PanelHost); |
107 }; | 110 }; |
108 | 111 |
109 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 112 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
OLD | NEW |