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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 #include "content/renderer/render_widget_fullscreen_pepper.h" | 100 #include "content/renderer/render_widget_fullscreen_pepper.h" |
101 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 101 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
102 #include "content/renderer/resizing_mode_selector.h" | 102 #include "content/renderer/resizing_mode_selector.h" |
103 #include "content/renderer/savable_resources.h" | 103 #include "content/renderer/savable_resources.h" |
104 #include "content/renderer/skia_benchmarking_extension.h" | 104 #include "content/renderer/skia_benchmarking_extension.h" |
105 #include "content/renderer/speech_recognition_dispatcher.h" | 105 #include "content/renderer/speech_recognition_dispatcher.h" |
106 #include "content/renderer/stats_collection_controller.h" | 106 #include "content/renderer/stats_collection_controller.h" |
107 #include "content/renderer/stats_collection_observer.h" | 107 #include "content/renderer/stats_collection_observer.h" |
108 #include "content/renderer/text_input_client_observer.h" | 108 #include "content/renderer/text_input_client_observer.h" |
109 #include "content/renderer/v8_value_converter_impl.h" | 109 #include "content/renderer/v8_value_converter_impl.h" |
| 110 #include "content/renderer/wake_lock/wake_lock_dispatcher.h" |
110 #include "content/renderer/web_ui_extension.h" | 111 #include "content/renderer/web_ui_extension.h" |
111 #include "content/renderer/web_ui_extension_data.h" | 112 #include "content/renderer/web_ui_extension_data.h" |
112 #include "content/renderer/web_ui_mojo.h" | 113 #include "content/renderer/web_ui_mojo.h" |
113 #include "content/renderer/websharedworker_proxy.h" | 114 #include "content/renderer/websharedworker_proxy.h" |
114 #include "media/audio/audio_output_device.h" | 115 #include "media/audio/audio_output_device.h" |
115 #include "media/base/filter_collection.h" | 116 #include "media/base/filter_collection.h" |
116 #include "media/base/media_switches.h" | 117 #include "media/base/media_switches.h" |
117 #include "media/filters/audio_renderer_impl.h" | 118 #include "media/filters/audio_renderer_impl.h" |
118 #include "media/filters/gpu_video_accelerator_factories.h" | 119 #include "media/filters/gpu_video_accelerator_factories.h" |
119 #include "net/base/data_url.h" | 120 #include "net/base/data_url.h" |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 uses_temporary_zoom_level_(false), | 712 uses_temporary_zoom_level_(false), |
712 #if defined(OS_ANDROID) | 713 #if defined(OS_ANDROID) |
713 top_controls_constraints_(cc::BOTH), | 714 top_controls_constraints_(cc::BOTH), |
714 #endif | 715 #endif |
715 has_scrolled_focused_editable_node_into_rect_(false), | 716 has_scrolled_focused_editable_node_into_rect_(false), |
716 has_scrolled_main_frame_(false), | 717 has_scrolled_main_frame_(false), |
717 speech_recognition_dispatcher_(NULL), | 718 speech_recognition_dispatcher_(NULL), |
718 browser_plugin_manager_(NULL), | 719 browser_plugin_manager_(NULL), |
719 devtools_agent_(NULL), | 720 devtools_agent_(NULL), |
720 mouse_lock_dispatcher_(NULL), | 721 mouse_lock_dispatcher_(NULL), |
| 722 wakelock_dispatcher_(NULL), |
721 #if defined(OS_ANDROID) | 723 #if defined(OS_ANDROID) |
722 expected_content_intent_id_(0), | 724 expected_content_intent_id_(0), |
723 #endif | 725 #endif |
724 #if defined(OS_WIN) | 726 #if defined(OS_WIN) |
725 focused_plugin_id_(-1), | 727 focused_plugin_id_(-1), |
726 #endif | 728 #endif |
727 #if defined(ENABLE_PLUGINS) | 729 #if defined(ENABLE_PLUGINS) |
728 plugin_find_handler_(NULL), | 730 plugin_find_handler_(NULL), |
729 focused_pepper_plugin_(NULL), | 731 focused_pepper_plugin_(NULL), |
730 pepper_last_mouse_event_target_(NULL), | 732 pepper_last_mouse_event_target_(NULL), |
(...skipping 3600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4331 WebURL url = icon_urls[i].iconURL(); | 4333 WebURL url = icon_urls[i].iconURL(); |
4332 std::vector<gfx::Size> sizes; | 4334 std::vector<gfx::Size> sizes; |
4333 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4335 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
4334 if (!url.isEmpty()) | 4336 if (!url.isEmpty()) |
4335 urls.push_back( | 4337 urls.push_back( |
4336 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4338 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
4337 } | 4339 } |
4338 SendUpdateFaviconURL(urls); | 4340 SendUpdateFaviconURL(urls); |
4339 } | 4341 } |
4340 | 4342 |
| 4343 blink::WebWakeLockClient* RenderViewImpl::webWakeLockClient() { |
| 4344 if (!wakelock_dispatcher_) |
| 4345 wakelock_dispatcher_ = new WakeLockDispatcher(this); |
| 4346 return wakelock_dispatcher_; |
| 4347 } |
| 4348 |
4341 } // namespace content | 4349 } // namespace content |
OLD | NEW |