| 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 NavigationStateChanged(const content::WebContents* source, | 54 virtual void NavigationStateChanged(const content::WebContents* source, |
| 55 unsigned changed_flags) OVERRIDE; | 55 unsigned changed_flags) OVERRIDE; |
| 56 virtual void AddNewContents(content::WebContents* source, | 56 virtual void AddNewContents(content::WebContents* source, |
| 57 content::WebContents* new_contents, | 57 content::WebContents* new_contents, |
| 58 WindowOpenDisposition disposition, | 58 WindowOpenDisposition disposition, |
| 59 const gfx::Rect& initial_pos, | 59 const gfx::Rect& initial_pos, |
| 60 bool user_gesture, | 60 bool user_gesture, |
| 61 bool* was_blocked) OVERRIDE; | 61 bool* was_blocked) OVERRIDE; |
| 62 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; | 62 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; |
| 63 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE; | 63 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE; |
| 64 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; | 64 virtual void LoadingStateChanged(content::WebContents* source, |
| 65 bool to_different_document) OVERRIDE; |
| 65 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 66 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 66 virtual void MoveContents(content::WebContents* source, | 67 virtual void MoveContents(content::WebContents* source, |
| 67 const gfx::Rect& pos) OVERRIDE; | 68 const gfx::Rect& pos) OVERRIDE; |
| 68 virtual bool IsPopupOrPanel( | 69 virtual bool IsPopupOrPanel( |
| 69 const content::WebContents* source) const OVERRIDE; | 70 const content::WebContents* source) const OVERRIDE; |
| 70 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; | 71 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; |
| 71 virtual void HandleKeyboardEvent( | 72 virtual void HandleKeyboardEvent( |
| 72 content::WebContents* source, | 73 content::WebContents* source, |
| 73 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 74 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 74 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; | 75 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 108 |
| 108 scoped_ptr<content::WebContents> web_contents_; | 109 scoped_ptr<content::WebContents> web_contents_; |
| 109 | 110 |
| 110 // The following factory is used to close the panel via the message loop. | 111 // The following factory is used to close the panel via the message loop. |
| 111 base::WeakPtrFactory<PanelHost> weak_factory_; | 112 base::WeakPtrFactory<PanelHost> weak_factory_; |
| 112 | 113 |
| 113 DISALLOW_COPY_AND_ASSIGN(PanelHost); | 114 DISALLOW_COPY_AND_ASSIGN(PanelHost); |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 117 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
| OLD | NEW |