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

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: added visibility check to browsertest Created 5 years, 3 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 RenderWidgetHostImpl; 63 class RenderWidgetHostImpl;
64 class RenderWidgetHostInputEventRouter; 64 class RenderWidgetHostInputEventRouter;
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 WakeLockServiceContext;
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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 const std::string& encoding) override; 415 const std::string& encoding) override;
415 WebContents* GetAsWebContents() override; 416 WebContents* GetAsWebContents() override;
416 bool IsNeverVisible() override; 417 bool IsNeverVisible() override;
417 AccessibilityMode GetAccessibilityMode() const override; 418 AccessibilityMode GetAccessibilityMode() const override;
418 void AccessibilityEventReceived( 419 void AccessibilityEventReceived(
419 const std::vector<AXEventNotificationDetails>& details) override; 420 const std::vector<AXEventNotificationDetails>& details) override;
420 RenderFrameHost* GetGuestByInstanceID( 421 RenderFrameHost* GetGuestByInstanceID(
421 RenderFrameHost* render_frame_host, 422 RenderFrameHost* render_frame_host,
422 int browser_plugin_instance_id) override; 423 int browser_plugin_instance_id) override;
423 GeolocationServiceContext* GetGeolocationServiceContext() override; 424 GeolocationServiceContext* GetGeolocationServiceContext() override;
425 WakeLockServiceContext* GetWakeLockServiceContext() override;
424 void EnterFullscreenMode(const GURL& origin) override; 426 void EnterFullscreenMode(const GURL& origin) override;
425 void ExitFullscreenMode() override; 427 void ExitFullscreenMode() override;
426 bool ShouldRouteMessageEvent( 428 bool ShouldRouteMessageEvent(
427 RenderFrameHost* target_rfh, 429 RenderFrameHost* target_rfh,
428 SiteInstance* source_site_instance) const override; 430 SiteInstance* source_site_instance) const override;
429 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 431 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
430 #if defined(OS_WIN) 432 #if defined(OS_WIN)
431 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; 433 gfx::NativeViewAccessible GetParentNativeViewAccessible() override;
432 #endif 434 #endif
433 435
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 scoped_ptr<OpenURLParams> delayed_open_url_params_; 1277 scoped_ptr<OpenURLParams> delayed_open_url_params_;
1276 1278
1277 // Whether overscroll should be unconditionally disabled. 1279 // Whether overscroll should be unconditionally disabled.
1278 bool force_disable_overscroll_content_; 1280 bool force_disable_overscroll_content_;
1279 1281
1280 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1282 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1281 bool last_dialog_suppressed_; 1283 bool last_dialog_suppressed_;
1282 1284
1283 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; 1285 scoped_ptr<GeolocationServiceContext> geolocation_service_context_;
1284 1286
1287 scoped_ptr<WakeLockServiceContext> wake_lock_service_context_;
1288
1285 scoped_ptr<ScreenOrientationDispatcherHost> 1289 scoped_ptr<ScreenOrientationDispatcherHost>
1286 screen_orientation_dispatcher_host_; 1290 screen_orientation_dispatcher_host_;
1287 1291
1288 scoped_ptr<ManifestManagerHost> manifest_manager_host_; 1292 scoped_ptr<ManifestManagerHost> manifest_manager_host_;
1289 1293
1290 // The accessibility mode for all frames. This is queried when each frame 1294 // The accessibility mode for all frames. This is queried when each frame
1291 // is created, and broadcast to all frames when it changes. 1295 // is created, and broadcast to all frames when it changes.
1292 AccessibilityMode accessibility_mode_; 1296 AccessibilityMode accessibility_mode_;
1293 1297
1294 // Monitors power levels for audio streams associated with this WebContents. 1298 // Monitors power levels for audio streams associated with this WebContents.
(...skipping 29 matching lines...) Expand all
1324 // Adds/removes a callback called on creation of each new WebContents. 1328 // Adds/removes a callback called on creation of each new WebContents.
1325 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1329 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1326 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1330 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1327 1331
1328 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1332 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1329 }; 1333 };
1330 1334
1331 } // namespace content 1335 } // namespace content
1332 1336
1333 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1337 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/wake_lock/wake_lock_service_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698