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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // Sets a BrowserPluginGuest object for this WebContents. If this WebContents | 147 // Sets a BrowserPluginGuest object for this WebContents. If this WebContents |
148 // has a BrowserPluginGuest then that implies that it is being hosted by | 148 // has a BrowserPluginGuest then that implies that it is being hosted by |
149 // a BrowserPlugin object in an embedder renderer process. | 149 // a BrowserPlugin object in an embedder renderer process. |
150 void SetBrowserPluginGuest(BrowserPluginGuest* guest); | 150 void SetBrowserPluginGuest(BrowserPluginGuest* guest); |
151 | 151 |
152 // Returns embedder browser plugin object, or NULL if this WebContents is not | 152 // Returns embedder browser plugin object, or NULL if this WebContents is not |
153 // an embedder. | 153 // an embedder. |
154 BrowserPluginEmbedder* GetBrowserPluginEmbedder() const; | 154 BrowserPluginEmbedder* GetBrowserPluginEmbedder() const; |
155 | 155 |
| 156 // Creates a BrowserPluginEmbedder object for this WebContents if one doesn't |
| 157 // already exist. |
| 158 void CreateBrowserPluginEmbedderIfNecessary(); |
| 159 |
156 // Gets the current fullscreen render widget's routing ID. Returns | 160 // Gets the current fullscreen render widget's routing ID. Returns |
157 // MSG_ROUTING_NONE when there is no fullscreen render widget. | 161 // MSG_ROUTING_NONE when there is no fullscreen render widget. |
158 int GetFullscreenWidgetRoutingID() const; | 162 int GetFullscreenWidgetRoutingID() const; |
159 | 163 |
160 // Invoked when visible SSL state (as defined by SSLStatus) changes. | 164 // Invoked when visible SSL state (as defined by SSLStatus) changes. |
161 void DidChangeVisibleSSLState(); | 165 void DidChangeVisibleSSLState(); |
162 | 166 |
163 // Informs the render view host and the BrowserPluginEmbedder, if present, of | 167 // Informs the render view host and the BrowserPluginEmbedder, if present, of |
164 // a Drag Source End. | 168 // a Drag Source End. |
165 void DragSourceEndedAt(int client_x, int client_y, int screen_x, | 169 void DragSourceEndedAt(int client_x, int client_y, int screen_x, |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 // Adds/removes a callback called on creation of each new WebContents. | 1288 // Adds/removes a callback called on creation of each new WebContents. |
1285 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1289 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1286 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1290 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1287 | 1291 |
1288 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1292 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1289 }; | 1293 }; |
1290 | 1294 |
1291 } // namespace content | 1295 } // namespace content |
1292 | 1296 |
1293 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1297 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |