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 4152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4582 } | 4582 } |
4583 | 4583 |
4584 void RenderView::OnEnableViewSourceMode() { | 4584 void RenderView::OnEnableViewSourceMode() { |
4585 if (!webview()) | 4585 if (!webview()) |
4586 return; | 4586 return; |
4587 WebFrame* main_frame = webview()->mainFrame(); | 4587 WebFrame* main_frame = webview()->mainFrame(); |
4588 if (!main_frame) | 4588 if (!main_frame) |
4589 return; | 4589 return; |
4590 main_frame->enableViewSourceMode(true); | 4590 main_frame->enableViewSourceMode(true); |
4591 } | 4591 } |
4592 | |
OLD | NEW |