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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 406483004: Initial implementation of API WakeLock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 class MouseLockDispatcher; 137 class MouseLockDispatcher;
138 class NavigationState; 138 class NavigationState;
139 class PepperPluginInstanceImpl; 139 class PepperPluginInstanceImpl;
140 class RenderViewImplTest; 140 class RenderViewImplTest;
141 class RenderViewObserver; 141 class RenderViewObserver;
142 class RenderViewTest; 142 class RenderViewTest;
143 class RendererAccessibility; 143 class RendererAccessibility;
144 class RendererDateTimePicker; 144 class RendererDateTimePicker;
145 class RendererWebColorChooserImpl; 145 class RendererWebColorChooserImpl;
146 class SpeechRecognitionDispatcher; 146 class SpeechRecognitionDispatcher;
147 class WakeLockDispatcher;
147 class WebPluginDelegateProxy; 148 class WebPluginDelegateProxy;
148 struct DropData; 149 struct DropData;
149 struct FaviconURL; 150 struct FaviconURL;
150 struct FileChooserParams; 151 struct FileChooserParams;
151 struct RenderViewImplParams; 152 struct RenderViewImplParams;
152 153
153 #if defined(OS_ANDROID) 154 #if defined(OS_ANDROID)
154 class WebMediaPlayerProxyAndroid; 155 class WebMediaPlayerProxyAndroid;
155 #endif 156 #endif
156 157
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 virtual void registerProtocolHandler(const blink::WebString& scheme, 451 virtual void registerProtocolHandler(const blink::WebString& scheme,
451 const blink::WebURL& base_url, 452 const blink::WebURL& base_url,
452 const blink::WebURL& url, 453 const blink::WebURL& url,
453 const blink::WebString& title); 454 const blink::WebString& title);
454 virtual void unregisterProtocolHandler(const blink::WebString& scheme, 455 virtual void unregisterProtocolHandler(const blink::WebString& scheme,
455 const blink::WebURL& base_url, 456 const blink::WebURL& base_url,
456 const blink::WebURL& url); 457 const blink::WebURL& url);
457 virtual blink::WebPageVisibilityState visibilityState() const; 458 virtual blink::WebPageVisibilityState visibilityState() const;
458 virtual blink::WebPushClient* webPushClient(); 459 virtual blink::WebPushClient* webPushClient();
459 virtual void draggableRegionsChanged(); 460 virtual void draggableRegionsChanged();
461 virtual blink::WebWakeLockClient* wakeLockClient();
460 462
461 #if defined(OS_ANDROID) 463 #if defined(OS_ANDROID)
462 virtual void scheduleContentIntent(const blink::WebURL& intent); 464 virtual void scheduleContentIntent(const blink::WebURL& intent);
463 virtual void cancelScheduledContentIntents(); 465 virtual void cancelScheduledContentIntents();
464 virtual blink::WebContentDetectionResult detectContentAround( 466 virtual blink::WebContentDetectionResult detectContentAround(
465 const blink::WebHitTestResult& touch_hit); 467 const blink::WebHitTestResult& touch_hit);
466 468
467 // Only used on Android since all other platforms implement 469 // Only used on Android since all other platforms implement
468 // date and time input fields using MULTIPLE_FIELDS_UI 470 // date and time input fields using MULTIPLE_FIELDS_UI
469 virtual bool openDateTimeChooser(const blink::WebDateTimeChooserParams&, 471 virtual bool openDateTimeChooser(const blink::WebDateTimeChooserParams&,
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 1061
1060 // Only valid if |accessibility_mode_| is anything other than 1062 // Only valid if |accessibility_mode_| is anything other than
1061 // AccessibilityModeOff. 1063 // AccessibilityModeOff.
1062 RendererAccessibility* renderer_accessibility_; 1064 RendererAccessibility* renderer_accessibility_;
1063 1065
1064 // Mouse Lock dispatcher attached to this view. 1066 // Mouse Lock dispatcher attached to this view.
1065 MouseLockDispatcher* mouse_lock_dispatcher_; 1067 MouseLockDispatcher* mouse_lock_dispatcher_;
1066 1068
1067 scoped_ptr<HistoryController> history_controller_; 1069 scoped_ptr<HistoryController> history_controller_;
1068 1070
1071 // The wake lock dispatcher attached to this view, lazily initialized.
1072 WakeLockDispatcher* wakelock_dispatcher_;
1073
1069 #if defined(OS_ANDROID) 1074 #if defined(OS_ANDROID)
1070 // Android Specific --------------------------------------------------------- 1075 // Android Specific ---------------------------------------------------------
1071 1076
1072 // Expected id of the next content intent launched. Used to prevent scheduled 1077 // Expected id of the next content intent launched. Used to prevent scheduled
1073 // intents to be launched if aborted. 1078 // intents to be launched if aborted.
1074 size_t expected_content_intent_id_; 1079 size_t expected_content_intent_id_;
1075 1080
1076 // List of click-based content detectors. 1081 // List of click-based content detectors.
1077 typedef std::vector< linked_ptr<ContentDetector> > ContentDetectorList; 1082 typedef std::vector< linked_ptr<ContentDetector> > ContentDetectorList;
1078 ContentDetectorList content_detectors_; 1083 ContentDetectorList content_detectors_;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 // use the Observer interface to filter IPC messages and receive frame change 1178 // use the Observer interface to filter IPC messages and receive frame change
1174 // notifications. 1179 // notifications.
1175 // --------------------------------------------------------------------------- 1180 // ---------------------------------------------------------------------------
1176 1181
1177 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1182 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1178 }; 1183 };
1179 1184
1180 } // namespace content 1185 } // namespace content
1181 1186
1182 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1187 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698