| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "content/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 409 |
| 410 OnSetRendererPrefs(renderer_prefs); | 410 OnSetRendererPrefs(renderer_prefs); |
| 411 | 411 |
| 412 host_window_ = parent_hwnd; | 412 host_window_ = parent_hwnd; |
| 413 | 413 |
| 414 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 414 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 415 if (command_line.HasSwitch(switches::kEnableAccessibility)) | 415 if (command_line.HasSwitch(switches::kEnableAccessibility)) |
| 416 WebAccessibilityCache::enableAccessibility(); | 416 WebAccessibilityCache::enableAccessibility(); |
| 417 | 417 |
| 418 #if defined(ENABLE_P2P_APIS) | 418 #if defined(ENABLE_P2P_APIS) |
| 419 p2p_socket_dispatcher_ = new P2PSocketDispatcher(this); | 419 p2p_socket_dispatcher_ = new content::P2PSocketDispatcher(this); |
| 420 #endif | 420 #endif |
| 421 | 421 |
| 422 new MHTMLGenerator(this); | 422 new MHTMLGenerator(this); |
| 423 | 423 |
| 424 devtools_agent_ = new DevToolsAgent(this); | 424 devtools_agent_ = new DevToolsAgent(this); |
| 425 | 425 |
| 426 if (command_line.HasSwitch(switches::kEnableMediaStream)) { | 426 if (command_line.HasSwitch(switches::kEnableMediaStream)) { |
| 427 media_stream_impl_ = new MediaStreamImpl( | 427 media_stream_impl_ = new MediaStreamImpl( |
| 428 RenderThread::current()->video_capture_impl_manager()); | 428 RenderThread::current()->video_capture_impl_manager()); |
| 429 } | 429 } |
| (...skipping 4131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4561 } | 4561 } |
| 4562 | 4562 |
| 4563 void RenderView::OnEnableViewSourceMode() { | 4563 void RenderView::OnEnableViewSourceMode() { |
| 4564 if (!webview()) | 4564 if (!webview()) |
| 4565 return; | 4565 return; |
| 4566 WebFrame* main_frame = webview()->mainFrame(); | 4566 WebFrame* main_frame = webview()->mainFrame(); |
| 4567 if (!main_frame) | 4567 if (!main_frame) |
| 4568 return; | 4568 return; |
| 4569 main_frame->enableViewSourceMode(true); | 4569 main_frame->enableViewSourceMode(true); |
| 4570 } | 4570 } |
| 4571 | |
| OLD | NEW |