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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 54 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
55 virtual void MoveContents(content::WebContents* source, | 55 virtual void MoveContents(content::WebContents* source, |
56 const gfx::Rect& pos) OVERRIDE; | 56 const gfx::Rect& pos) OVERRIDE; |
57 virtual bool IsPopupOrPanel( | 57 virtual bool IsPopupOrPanel( |
58 const content::WebContents* source) const OVERRIDE; | 58 const content::WebContents* source) const OVERRIDE; |
59 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; | 59 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; |
60 virtual bool IsApplication() const OVERRIDE; | 60 virtual bool IsApplication() const OVERRIDE; |
61 virtual bool HandleContextMenu( | 61 virtual bool HandleContextMenu( |
62 const content::ContextMenuParams& params) OVERRIDE; | 62 const content::ContextMenuParams& params) OVERRIDE; |
63 virtual void HandleKeyboardEvent( | 63 virtual void HandleKeyboardEvent( |
| 64 content::WebContents* source, |
64 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 65 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
65 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; | 66 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; |
66 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, | 67 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, |
67 const gfx::Size& new_size) OVERRIDE; | 68 const gfx::Size& new_size) OVERRIDE; |
68 | 69 |
69 // content::WebContentsObserver overrides. | 70 // content::WebContentsObserver overrides. |
70 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 71 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
71 virtual void WebContentsDestroyed( | 72 virtual void WebContentsDestroyed( |
72 content::WebContents* web_contents) OVERRIDE; | 73 content::WebContents* web_contents) OVERRIDE; |
73 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 74 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
(...skipping 23 matching lines...) Expand all Loading... |
97 // The following factory is used to close the panel via the message loop. | 98 // The following factory is used to close the panel via the message loop. |
98 base::WeakPtrFactory<PanelHost> weak_factory_; | 99 base::WeakPtrFactory<PanelHost> weak_factory_; |
99 | 100 |
100 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 101 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
101 scoped_ptr<content::WebContents> web_contents_; | 102 scoped_ptr<content::WebContents> web_contents_; |
102 | 103 |
103 DISALLOW_COPY_AND_ASSIGN(PanelHost); | 104 DISALLOW_COPY_AND_ASSIGN(PanelHost); |
104 }; | 105 }; |
105 | 106 |
106 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 107 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
OLD | NEW |