| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void 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, |
| 71 bool* was_blocked) OVERRIDE; |
| 71 | 72 |
| 72 // content::WebContentsObserver implementation: | 73 // content::WebContentsObserver implementation: |
| 73 virtual void RenderViewCreated( | 74 virtual void RenderViewCreated( |
| 74 content::RenderViewHost* render_view_host) OVERRIDE; | 75 content::RenderViewHost* render_view_host) OVERRIDE; |
| 75 virtual void RenderViewReady() OVERRIDE; | 76 virtual void RenderViewReady() OVERRIDE; |
| 76 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 77 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
| 77 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 78 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 78 | 79 |
| 79 // Message handlers | 80 // Message handlers |
| 80 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 81 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 97 // Site instance for the balloon/profile, to be used for opening new links. | 98 // Site instance for the balloon/profile, to be used for opening new links. |
| 98 scoped_refptr<content::SiteInstance> site_instance_; | 99 scoped_refptr<content::SiteInstance> site_instance_; |
| 99 | 100 |
| 100 // A flag to enable Web UI. | 101 // A flag to enable Web UI. |
| 101 bool enable_web_ui_; | 102 bool enable_web_ui_; |
| 102 | 103 |
| 103 ExtensionFunctionDispatcher extension_function_dispatcher_; | 104 ExtensionFunctionDispatcher extension_function_dispatcher_; |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 107 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
| OLD | NEW |