| 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_NOTIFICATIONS_BALLOON_HOST_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual ~BalloonHost(); | 56 virtual ~BalloonHost(); |
| 57 | 57 |
| 58 scoped_ptr<content::WebContents> web_contents_; | 58 scoped_ptr<content::WebContents> web_contents_; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 // content::WebContentsDelegate implementation: | 61 // content::WebContentsDelegate implementation: |
| 62 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 62 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 63 virtual void HandleMouseDown() OVERRIDE; | 63 virtual void HandleMouseDown() OVERRIDE; |
| 64 virtual void ResizeDueToAutoResize(content::WebContents* source, | 64 virtual void ResizeDueToAutoResize(content::WebContents* source, |
| 65 const gfx::Size& pref_size) OVERRIDE; | 65 const gfx::Size& pref_size) OVERRIDE; |
| 66 virtual void AddNewContents(content::WebContents* source, | 66 virtual bool AddNewContents(content::WebContents* source, |
| 67 content::WebContents* new_contents, | 67 content::WebContents* new_contents, |
| 68 WindowOpenDisposition disposition, | 68 WindowOpenDisposition disposition, |
| 69 const gfx::Rect& initial_pos, | 69 const gfx::Rect& initial_pos, |
| 70 bool user_gesture) OVERRIDE; | 70 bool user_gesture) OVERRIDE; |
| 71 | 71 |
| 72 // content::WebContentsObserver implementation: | 72 // content::WebContentsObserver implementation: |
| 73 virtual void RenderViewCreated( | 73 virtual void RenderViewCreated( |
| 74 content::RenderViewHost* render_view_host) OVERRIDE; | 74 content::RenderViewHost* render_view_host) OVERRIDE; |
| 75 virtual void RenderViewReady() OVERRIDE; | 75 virtual void RenderViewReady() OVERRIDE; |
| 76 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 76 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 97 // Site instance for the balloon/profile, to be used for opening new links. | 97 // Site instance for the balloon/profile, to be used for opening new links. |
| 98 scoped_refptr<content::SiteInstance> site_instance_; | 98 scoped_refptr<content::SiteInstance> site_instance_; |
| 99 | 99 |
| 100 // A flag to enable Web UI. | 100 // A flag to enable Web UI. |
| 101 bool enable_web_ui_; | 101 bool enable_web_ui_; |
| 102 | 102 |
| 103 ExtensionFunctionDispatcher extension_function_dispatcher_; | 103 ExtensionFunctionDispatcher extension_function_dispatcher_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 106 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| OLD | NEW |