| 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 17 matching lines...) Expand all Loading... |
| 28 #include "content/common/clipboard_messages.h" | 28 #include "content/common/clipboard_messages.h" |
| 29 #include "content/common/content_constants.h" | 29 #include "content/common/content_constants.h" |
| 30 #include "content/common/content_switches.h" | 30 #include "content/common/content_switches.h" |
| 31 #include "content/common/database_messages.h" | 31 #include "content/common/database_messages.h" |
| 32 #include "content/common/drag_messages.h" | 32 #include "content/common/drag_messages.h" |
| 33 #include "content/common/file_system/file_system_dispatcher.h" | 33 #include "content/common/file_system/file_system_dispatcher.h" |
| 34 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" | 34 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" |
| 35 #include "content/common/json_value_serializer.h" | 35 #include "content/common/json_value_serializer.h" |
| 36 #include "content/common/notification_service.h" | 36 #include "content/common/notification_service.h" |
| 37 #include "content/common/pepper_messages.h" | 37 #include "content/common/pepper_messages.h" |
| 38 #include "content/common/pepper_plugin_registry.h" | |
| 39 #include "content/common/quota_dispatcher.h" | 38 #include "content/common/quota_dispatcher.h" |
| 40 #include "content/common/renderer_preferences.h" | 39 #include "content/common/renderer_preferences.h" |
| 41 #include "content/common/request_extra_data.h" | 40 #include "content/common/request_extra_data.h" |
| 42 #include "content/common/url_constants.h" | 41 #include "content/common/url_constants.h" |
| 43 #include "content/common/view_messages.h" | 42 #include "content/common/view_messages.h" |
| 44 #include "content/renderer/content_renderer_client.h" | 43 #include "content/renderer/content_renderer_client.h" |
| 45 #include "content/renderer/devtools_agent.h" | 44 #include "content/renderer/devtools_agent.h" |
| 46 #include "content/renderer/device_orientation_dispatcher.h" | 45 #include "content/renderer/device_orientation_dispatcher.h" |
| 47 #include "content/renderer/mhtml_generator.h" | 46 #include "content/renderer/mhtml_generator.h" |
| 48 #include "content/renderer/external_popup_menu.h" | 47 #include "content/renderer/external_popup_menu.h" |
| (...skipping 4549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4598 } | 4597 } |
| 4599 | 4598 |
| 4600 void RenderView::OnEnableViewSourceMode() { | 4599 void RenderView::OnEnableViewSourceMode() { |
| 4601 if (!webview()) | 4600 if (!webview()) |
| 4602 return; | 4601 return; |
| 4603 WebFrame* main_frame = webview()->mainFrame(); | 4602 WebFrame* main_frame = webview()->mainFrame(); |
| 4604 if (!main_frame) | 4603 if (!main_frame) |
| 4605 return; | 4604 return; |
| 4606 main_frame->enableViewSourceMode(true); | 4605 main_frame->enableViewSourceMode(true); |
| 4607 } | 4606 } |
| OLD | NEW |