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 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 #include "content/renderer/render_widget_fullscreen_pepper.h" | 102 #include "content/renderer/render_widget_fullscreen_pepper.h" |
103 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 103 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
104 #include "content/renderer/resizing_mode_selector.h" | 104 #include "content/renderer/resizing_mode_selector.h" |
105 #include "content/renderer/savable_resources.h" | 105 #include "content/renderer/savable_resources.h" |
106 #include "content/renderer/skia_benchmarking_extension.h" | 106 #include "content/renderer/skia_benchmarking_extension.h" |
107 #include "content/renderer/speech_recognition_dispatcher.h" | 107 #include "content/renderer/speech_recognition_dispatcher.h" |
108 #include "content/renderer/stats_collection_controller.h" | 108 #include "content/renderer/stats_collection_controller.h" |
109 #include "content/renderer/stats_collection_observer.h" | 109 #include "content/renderer/stats_collection_observer.h" |
110 #include "content/renderer/text_input_client_observer.h" | 110 #include "content/renderer/text_input_client_observer.h" |
111 #include "content/renderer/v8_value_converter_impl.h" | 111 #include "content/renderer/v8_value_converter_impl.h" |
| 112 #include "content/renderer/wake_lock_dispatcher.h" |
112 #include "content/renderer/web_ui_extension.h" | 113 #include "content/renderer/web_ui_extension.h" |
113 #include "content/renderer/web_ui_extension_data.h" | 114 #include "content/renderer/web_ui_extension_data.h" |
114 #include "content/renderer/web_ui_mojo.h" | 115 #include "content/renderer/web_ui_mojo.h" |
115 #include "content/renderer/websharedworker_proxy.h" | 116 #include "content/renderer/websharedworker_proxy.h" |
116 #include "media/audio/audio_output_device.h" | 117 #include "media/audio/audio_output_device.h" |
117 #include "media/base/filter_collection.h" | 118 #include "media/base/filter_collection.h" |
118 #include "media/base/media_switches.h" | 119 #include "media/base/media_switches.h" |
119 #include "media/filters/audio_renderer_impl.h" | 120 #include "media/filters/audio_renderer_impl.h" |
120 #include "media/filters/gpu_video_accelerator_factories.h" | 121 #include "media/filters/gpu_video_accelerator_factories.h" |
121 #include "net/base/data_url.h" | 122 #include "net/base/data_url.h" |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 top_controls_constraints_(cc::BOTH), | 726 top_controls_constraints_(cc::BOTH), |
726 #endif | 727 #endif |
727 has_scrolled_focused_editable_node_into_rect_(false), | 728 has_scrolled_focused_editable_node_into_rect_(false), |
728 speech_recognition_dispatcher_(NULL), | 729 speech_recognition_dispatcher_(NULL), |
729 media_stream_dispatcher_(NULL), | 730 media_stream_dispatcher_(NULL), |
730 browser_plugin_manager_(NULL), | 731 browser_plugin_manager_(NULL), |
731 devtools_agent_(NULL), | 732 devtools_agent_(NULL), |
732 accessibility_mode_(AccessibilityModeOff), | 733 accessibility_mode_(AccessibilityModeOff), |
733 renderer_accessibility_(NULL), | 734 renderer_accessibility_(NULL), |
734 mouse_lock_dispatcher_(NULL), | 735 mouse_lock_dispatcher_(NULL), |
| 736 wakelock_dispatcher_(NULL), |
735 #if defined(OS_ANDROID) | 737 #if defined(OS_ANDROID) |
736 expected_content_intent_id_(0), | 738 expected_content_intent_id_(0), |
737 #endif | 739 #endif |
738 #if defined(OS_WIN) | 740 #if defined(OS_WIN) |
739 focused_plugin_id_(-1), | 741 focused_plugin_id_(-1), |
740 #endif | 742 #endif |
741 #if defined(ENABLE_PLUGINS) | 743 #if defined(ENABLE_PLUGINS) |
742 plugin_find_handler_(NULL), | 744 plugin_find_handler_(NULL), |
743 focused_pepper_plugin_(NULL), | 745 focused_pepper_plugin_(NULL), |
744 pepper_last_mouse_event_target_(NULL), | 746 pepper_last_mouse_event_target_(NULL), |
(...skipping 3559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4304 WebURL url = icon_urls[i].iconURL(); | 4306 WebURL url = icon_urls[i].iconURL(); |
4305 std::vector<gfx::Size> sizes; | 4307 std::vector<gfx::Size> sizes; |
4306 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4308 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
4307 if (!url.isEmpty()) | 4309 if (!url.isEmpty()) |
4308 urls.push_back( | 4310 urls.push_back( |
4309 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4311 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
4310 } | 4312 } |
4311 SendUpdateFaviconURL(urls); | 4313 SendUpdateFaviconURL(urls); |
4312 } | 4314 } |
4313 | 4315 |
| 4316 blink::WebWakeLockClient* RenderViewImpl::wakeLockClient() { |
| 4317 if (!wakelock_dispatcher_) |
| 4318 wakelock_dispatcher_ = new WakeLockDispatcher(this); |
| 4319 return wakelock_dispatcher_; |
| 4320 } |
| 4321 |
4314 } // namespace content | 4322 } // namespace content |
OLD | NEW |