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 "content/public/browser/web_contents_delegate.h" | 10 #include "content/public/browser/web_contents_delegate.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const content::OpenURLParams& params) override; | 52 const content::OpenURLParams& params) override; |
53 void NavigationStateChanged(content::WebContents* source, | 53 void NavigationStateChanged(content::WebContents* source, |
54 content::InvalidateTypes changed_flags) override; | 54 content::InvalidateTypes changed_flags) override; |
55 void AddNewContents(content::WebContents* source, | 55 void AddNewContents(content::WebContents* source, |
56 content::WebContents* new_contents, | 56 content::WebContents* new_contents, |
57 WindowOpenDisposition disposition, | 57 WindowOpenDisposition disposition, |
58 const gfx::Rect& initial_rect, | 58 const gfx::Rect& initial_rect, |
59 bool user_gesture, | 59 bool user_gesture, |
60 bool* was_blocked) override; | 60 bool* was_blocked) override; |
61 void ActivateContents(content::WebContents* contents) override; | 61 void ActivateContents(content::WebContents* contents) override; |
62 void DeactivateContents(content::WebContents* contents) override; | |
63 void LoadingStateChanged(content::WebContents* source, | 62 void LoadingStateChanged(content::WebContents* source, |
64 bool to_different_document) override; | 63 bool to_different_document) override; |
65 void CloseContents(content::WebContents* source) override; | 64 void CloseContents(content::WebContents* source) override; |
66 void MoveContents(content::WebContents* source, | 65 void MoveContents(content::WebContents* source, |
67 const gfx::Rect& pos) override; | 66 const gfx::Rect& pos) override; |
68 bool IsPopupOrPanel(const content::WebContents* source) const override; | 67 bool IsPopupOrPanel(const content::WebContents* source) const override; |
69 void ContentsZoomChange(bool zoom_in) override; | 68 void ContentsZoomChange(bool zoom_in) override; |
70 void HandleKeyboardEvent( | 69 void HandleKeyboardEvent( |
71 content::WebContents* source, | 70 content::WebContents* source, |
72 const content::NativeWebKeyboardEvent& event) override; | 71 const content::NativeWebKeyboardEvent& event) override; |
(...skipping 23 matching lines...) Expand all Loading... |
96 | 95 |
97 scoped_ptr<content::WebContents> web_contents_; | 96 scoped_ptr<content::WebContents> web_contents_; |
98 | 97 |
99 // 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. |
100 base::WeakPtrFactory<PanelHost> weak_factory_; | 99 base::WeakPtrFactory<PanelHost> weak_factory_; |
101 | 100 |
102 DISALLOW_COPY_AND_ASSIGN(PanelHost); | 101 DISALLOW_COPY_AND_ASSIGN(PanelHost); |
103 }; | 102 }; |
104 | 103 |
105 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 104 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
OLD | NEW |