| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 class MediaWebContentsObserver; | 58 class MediaWebContentsObserver; |
| 59 class PluginContentOriginWhitelist; | 59 class PluginContentOriginWhitelist; |
| 60 class PowerSaveBlocker; | 60 class PowerSaveBlocker; |
| 61 class RenderViewHost; | 61 class RenderViewHost; |
| 62 class RenderViewHostDelegateView; | 62 class RenderViewHostDelegateView; |
| 63 class RenderWidgetHostImpl; | 63 class RenderWidgetHostImpl; |
| 64 class SavePackage; | 64 class SavePackage; |
| 65 class ScreenOrientationDispatcherHost; | 65 class ScreenOrientationDispatcherHost; |
| 66 class SiteInstance; | 66 class SiteInstance; |
| 67 class TestWebContents; | 67 class TestWebContents; |
| 68 class WakeLockDispatcherHost; |
| 68 class WebContentsAudioMuter; | 69 class WebContentsAudioMuter; |
| 69 class WebContentsDelegate; | 70 class WebContentsDelegate; |
| 70 class WebContentsImpl; | 71 class WebContentsImpl; |
| 71 class WebContentsObserver; | 72 class WebContentsObserver; |
| 72 class WebContentsView; | 73 class WebContentsView; |
| 73 class WebContentsViewDelegate; | 74 class WebContentsViewDelegate; |
| 74 struct AXEventNotificationDetails; | 75 struct AXEventNotificationDetails; |
| 75 struct ColorSuggestion; | 76 struct ColorSuggestion; |
| 76 struct FaviconURL; | 77 struct FaviconURL; |
| 77 struct LoadNotificationDetails; | 78 struct LoadNotificationDetails; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 182 |
| 182 // Notify observers that the web contents has been focused. | 183 // Notify observers that the web contents has been focused. |
| 183 void NotifyWebContentsFocused(); | 184 void NotifyWebContentsFocused(); |
| 184 | 185 |
| 185 WebContentsView* GetView() const; | 186 WebContentsView* GetView() const; |
| 186 | 187 |
| 187 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { | 188 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { |
| 188 return screen_orientation_dispatcher_host_.get(); | 189 return screen_orientation_dispatcher_host_.get(); |
| 189 } | 190 } |
| 190 | 191 |
| 192 WakeLockDispatcherHost* wake_lock_dispatcher_host() { |
| 193 return wake_lock_dispatcher_host_.get(); |
| 194 } |
| 195 |
| 191 bool should_normally_be_visible() { return should_normally_be_visible_; } | 196 bool should_normally_be_visible() { return should_normally_be_visible_; } |
| 192 | 197 |
| 193 // Indicate if the window has been occluded, and pass this to the views, only | 198 // Indicate if the window has been occluded, and pass this to the views, only |
| 194 // if there is no active capture going on (otherwise it is dropped on the | 199 // if there is no active capture going on (otherwise it is dropped on the |
| 195 // floor). | 200 // floor). |
| 196 void WasOccluded(); | 201 void WasOccluded(); |
| 197 void WasUnOccluded(); | 202 void WasUnOccluded(); |
| 198 | 203 |
| 199 // Broadcasts the mode change to all frames. | 204 // Broadcasts the mode change to all frames. |
| 200 void SetAccessibilityMode(AccessibilityMode mode); | 205 void SetAccessibilityMode(AccessibilityMode mode); |
| (...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 bool force_disable_overscroll_content_; | 1267 bool force_disable_overscroll_content_; |
| 1263 | 1268 |
| 1264 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1269 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1265 bool last_dialog_suppressed_; | 1270 bool last_dialog_suppressed_; |
| 1266 | 1271 |
| 1267 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; | 1272 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; |
| 1268 | 1273 |
| 1269 scoped_ptr<ScreenOrientationDispatcherHost> | 1274 scoped_ptr<ScreenOrientationDispatcherHost> |
| 1270 screen_orientation_dispatcher_host_; | 1275 screen_orientation_dispatcher_host_; |
| 1271 | 1276 |
| 1277 scoped_ptr<WakeLockDispatcherHost> wake_lock_dispatcher_host_; |
| 1278 |
| 1272 scoped_ptr<ManifestManagerHost> manifest_manager_host_; | 1279 scoped_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1273 | 1280 |
| 1274 // The accessibility mode for all frames. This is queried when each frame | 1281 // The accessibility mode for all frames. This is queried when each frame |
| 1275 // is created, and broadcast to all frames when it changes. | 1282 // is created, and broadcast to all frames when it changes. |
| 1276 AccessibilityMode accessibility_mode_; | 1283 AccessibilityMode accessibility_mode_; |
| 1277 | 1284 |
| 1278 // Created on-demand to mute all audio output from this WebContents. | 1285 // Created on-demand to mute all audio output from this WebContents. |
| 1279 scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1286 scoped_ptr<WebContentsAudioMuter> audio_muter_; |
| 1280 | 1287 |
| 1281 bool virtual_keyboard_requested_; | 1288 bool virtual_keyboard_requested_; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1303 // Adds/removes a callback called on creation of each new WebContents. | 1310 // Adds/removes a callback called on creation of each new WebContents. |
| 1304 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1311 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1305 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1312 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1306 | 1313 |
| 1307 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1314 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1308 }; | 1315 }; |
| 1309 | 1316 |
| 1310 } // namespace content | 1317 } // namespace content |
| 1311 | 1318 |
| 1312 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1319 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |