| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual void NavigationStateChanged(const content::WebContents* source, | 46 virtual void NavigationStateChanged(const content::WebContents* source, |
| 47 unsigned changed_flags) OVERRIDE; | 47 unsigned changed_flags) OVERRIDE; |
| 48 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; | 48 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; |
| 49 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE; | 49 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE; |
| 50 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; | 50 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; |
| 51 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 51 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 52 virtual void MoveContents(content::WebContents* source, | 52 virtual void MoveContents(content::WebContents* source, |
| 53 const gfx::Rect& pos) OVERRIDE; | 53 const gfx::Rect& pos) OVERRIDE; |
| 54 virtual bool IsPopupOrPanel( | 54 virtual bool IsPopupOrPanel( |
| 55 const content::WebContents* source) const OVERRIDE; | 55 const content::WebContents* source) const OVERRIDE; |
| 56 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; |
| 56 virtual bool IsApplication() const OVERRIDE; | 57 virtual bool IsApplication() const OVERRIDE; |
| 58 virtual bool HandleContextMenu( |
| 59 const content::ContextMenuParams& params) OVERRIDE; |
| 60 virtual void HandleKeyboardEvent( |
| 61 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 57 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, | 62 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, |
| 58 const gfx::Size& new_size) OVERRIDE; | 63 const gfx::Size& new_size) OVERRIDE; |
| 59 | 64 |
| 60 // content::WebContentsObserver overrides. | 65 // content::WebContentsObserver overrides. |
| 61 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 66 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
| 62 virtual void WebContentsDestroyed( | 67 virtual void WebContentsDestroyed( |
| 63 content::WebContents* web_contents) OVERRIDE; | 68 content::WebContents* web_contents) OVERRIDE; |
| 64 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 69 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 65 | 70 |
| 66 // ExtensionFunctionDispatcher::Delegate overrides. | 71 // ExtensionFunctionDispatcher::Delegate overrides. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 82 // The following factory is used to close the panel via the message loop. | 87 // The following factory is used to close the panel via the message loop. |
| 83 base::WeakPtrFactory<PanelHost> weak_factory_; | 88 base::WeakPtrFactory<PanelHost> weak_factory_; |
| 84 | 89 |
| 85 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 90 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
| 86 scoped_ptr<content::WebContents> web_contents_; | 91 scoped_ptr<content::WebContents> web_contents_; |
| 87 | 92 |
| 88 DISALLOW_COPY_AND_ASSIGN(PanelHost); | 93 DISALLOW_COPY_AND_ASSIGN(PanelHost); |
| 89 }; | 94 }; |
| 90 | 95 |
| 91 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 96 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
| OLD | NEW |