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