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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual void HandleKeyboardEvent( | 71 virtual void HandleKeyboardEvent( |
72 content::WebContents* source, | 72 content::WebContents* source, |
73 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 73 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
74 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; | 74 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; |
75 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, | 75 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, |
76 const gfx::Size& new_size) OVERRIDE; | 76 const gfx::Size& new_size) OVERRIDE; |
77 | 77 |
78 // content::WebContentsObserver overrides. | 78 // content::WebContentsObserver overrides. |
79 virtual void RenderViewCreated( | 79 virtual void RenderViewCreated( |
80 content::RenderViewHost* render_view_host) OVERRIDE; | 80 content::RenderViewHost* render_view_host) OVERRIDE; |
81 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 81 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
82 virtual void WebContentsDestroyed( | 82 virtual void WebContentsDestroyed( |
83 content::WebContents* web_contents) OVERRIDE; | 83 content::WebContents* web_contents) OVERRIDE; |
84 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 84 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
85 | 85 |
86 // ExtensionFunctionDispatcher::Delegate overrides. | 86 // ExtensionFunctionDispatcher::Delegate overrides. |
87 virtual extensions::WindowController* GetExtensionWindowController() const | 87 virtual extensions::WindowController* GetExtensionWindowController() const |
88 OVERRIDE; | 88 OVERRIDE; |
89 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 89 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
90 | 90 |
91 // Actions on web contents. | 91 // Actions on web contents. |
(...skipping 15 matching lines...) Expand all Loading... |
107 | 107 |
108 // The following factory is used to close the panel via the message loop. | 108 // The following factory is used to close the panel via the message loop. |
109 base::WeakPtrFactory<PanelHost> weak_factory_; | 109 base::WeakPtrFactory<PanelHost> weak_factory_; |
110 | 110 |
111 scoped_ptr<content::WebContents> web_contents_; | 111 scoped_ptr<content::WebContents> web_contents_; |
112 | 112 |
113 DISALLOW_COPY_AND_ASSIGN(PanelHost); | 113 DISALLOW_COPY_AND_ASSIGN(PanelHost); |
114 }; | 114 }; |
115 | 115 |
116 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 116 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
OLD | NEW |