OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 virtual void UpdatePreferredSize(const gfx::Size& pref_size); | 105 virtual void UpdatePreferredSize(const gfx::Size& pref_size); |
106 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 106 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
107 | 107 |
108 // Enable DOM UI. This has to be called before renderer is created. | 108 // Enable DOM UI. This has to be called before renderer is created. |
109 void EnableDOMUI(); | 109 void EnableDOMUI(); |
110 | 110 |
111 virtual void UpdateInspectorSetting(const std::string& key, | 111 virtual void UpdateInspectorSetting(const std::string& key, |
112 const std::string& value); | 112 const std::string& value); |
113 virtual void ClearInspectorSettings(); | 113 virtual void ClearInspectorSettings(); |
114 | 114 |
| 115 // Called when the render view has painted. |
| 116 void RenderWidgetHostDidPaint(); |
| 117 |
115 protected: | 118 protected: |
116 virtual ~BalloonHost(); | 119 virtual ~BalloonHost(); |
117 // Must override in platform specific implementations. | 120 // Must override in platform specific implementations. |
118 virtual void InitRenderWidgetHostView() = 0; | 121 virtual void InitRenderWidgetHostView() = 0; |
119 virtual RenderWidgetHostView* render_widget_host_view() const = 0; | 122 virtual RenderWidgetHostView* render_widget_host_view() const = 0; |
120 | 123 |
121 // Owned pointer to the host for the renderer process. | 124 // Owned pointer to the host for the renderer process. |
122 RenderViewHost* render_view_host_; | 125 RenderViewHost* render_view_host_; |
123 | 126 |
124 private: | 127 private: |
(...skipping 20 matching lines...) Expand all Loading... |
145 | 148 |
146 // Handles requests to extension APIs. Will only be non-NULL if we are | 149 // Handles requests to extension APIs. Will only be non-NULL if we are |
147 // rendering a page from an extension. | 150 // rendering a page from an extension. |
148 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 151 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
149 | 152 |
150 // A flag to enable DOM UI. | 153 // A flag to enable DOM UI. |
151 bool enable_dom_ui_; | 154 bool enable_dom_ui_; |
152 }; | 155 }; |
153 | 156 |
154 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ | 157 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ |
OLD | NEW |