Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1107333002: Wake Lock API implementation (Chromium part) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RenderViewHostImpl; 63 class RenderViewHostImpl;
64 class RenderWidgetHostImpl; 64 class RenderWidgetHostImpl;
65 class SavePackage; 65 class SavePackage;
66 class ScreenOrientationDispatcherHost; 66 class ScreenOrientationDispatcherHost;
67 class SiteInstance; 67 class SiteInstance;
68 class TestWebContents; 68 class TestWebContents;
69 class WakeLockDispatcherHost;
69 class WebContentsAudioMuter; 70 class WebContentsAudioMuter;
70 class WebContentsDelegate; 71 class WebContentsDelegate;
71 class WebContentsImpl; 72 class WebContentsImpl;
72 class WebContentsObserver; 73 class WebContentsObserver;
73 class WebContentsView; 74 class WebContentsView;
74 class WebContentsViewDelegate; 75 class WebContentsViewDelegate;
75 struct AXEventNotificationDetails; 76 struct AXEventNotificationDetails;
76 struct ColorSuggestion; 77 struct ColorSuggestion;
77 struct FaviconURL; 78 struct FaviconURL;
78 struct LoadNotificationDetails; 79 struct LoadNotificationDetails;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void DidGetRedirectForResourceRequest( 178 void DidGetRedirectForResourceRequest(
178 RenderFrameHost* render_frame_host, 179 RenderFrameHost* render_frame_host,
179 const ResourceRedirectDetails& details); 180 const ResourceRedirectDetails& details);
180 181
181 WebContentsView* GetView() const; 182 WebContentsView* GetView() const;
182 183
183 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { 184 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() {
184 return screen_orientation_dispatcher_host_.get(); 185 return screen_orientation_dispatcher_host_.get();
185 } 186 }
186 187
188 WakeLockDispatcherHost* wake_lock_dispatcher_host() {
189 return wake_lock_dispatcher_host_.get();
mlamouri (slow - plz ping) 2015/05/05 14:08:34 You don't seem to use that except for tests. Maybe
190 }
191
187 bool should_normally_be_visible() { return should_normally_be_visible_; } 192 bool should_normally_be_visible() { return should_normally_be_visible_; }
188 193
189 // Indicate if the window has been occluded, and pass this to the views, only 194 // Indicate if the window has been occluded, and pass this to the views, only
190 // if there is no active capture going on (otherwise it is dropped on the 195 // if there is no active capture going on (otherwise it is dropped on the
191 // floor). 196 // floor).
192 void WasOccluded(); 197 void WasOccluded();
193 void WasUnOccluded(); 198 void WasUnOccluded();
194 199
195 // Broadcasts the mode change to all frames. 200 // Broadcasts the mode change to all frames.
196 void SetAccessibilityMode(AccessibilityMode mode); 201 void SetAccessibilityMode(AccessibilityMode mode);
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 bool force_disable_overscroll_content_; 1246 bool force_disable_overscroll_content_;
1242 1247
1243 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1248 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1244 bool last_dialog_suppressed_; 1249 bool last_dialog_suppressed_;
1245 1250
1246 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; 1251 scoped_ptr<GeolocationServiceContext> geolocation_service_context_;
1247 1252
1248 scoped_ptr<ScreenOrientationDispatcherHost> 1253 scoped_ptr<ScreenOrientationDispatcherHost>
1249 screen_orientation_dispatcher_host_; 1254 screen_orientation_dispatcher_host_;
1250 1255
1256 scoped_ptr<WakeLockDispatcherHost> wake_lock_dispatcher_host_;
1257
1251 scoped_ptr<ManifestManagerHost> manifest_manager_host_; 1258 scoped_ptr<ManifestManagerHost> manifest_manager_host_;
1252 1259
1253 // The accessibility mode for all frames. This is queried when each frame 1260 // The accessibility mode for all frames. This is queried when each frame
1254 // is created, and broadcast to all frames when it changes. 1261 // is created, and broadcast to all frames when it changes.
1255 AccessibilityMode accessibility_mode_; 1262 AccessibilityMode accessibility_mode_;
1256 1263
1257 // Created on-demand to mute all audio output from this WebContents. 1264 // Created on-demand to mute all audio output from this WebContents.
1258 scoped_ptr<WebContentsAudioMuter> audio_muter_; 1265 scoped_ptr<WebContentsAudioMuter> audio_muter_;
1259 1266
1260 bool virtual_keyboard_requested_; 1267 bool virtual_keyboard_requested_;
(...skipping 21 matching lines...) Expand all
1282 // Adds/removes a callback called on creation of each new WebContents. 1289 // Adds/removes a callback called on creation of each new WebContents.
1283 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1290 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1284 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1291 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1285 1292
1286 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1293 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1287 }; 1294 };
1288 1295
1289 } // namespace content 1296 } // namespace content
1290 1297
1291 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1298 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698