| 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/shell/renderer/shell_content_renderer_client.h" | 5 #include "content/shell/renderer/shell_content_renderer_client.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/debugger.h" | 9 #include "base/debug/debugger.h" |
| 10 #include "content/common/sandbox_win.h" | 10 #include "content/common/sandbox_win.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 using blink::WebLocalFrame; | 38 using blink::WebLocalFrame; |
| 39 using blink::WebMIDIAccessor; | 39 using blink::WebMIDIAccessor; |
| 40 using blink::WebMIDIAccessorClient; | 40 using blink::WebMIDIAccessorClient; |
| 41 using blink::WebMediaStreamCenter; | 41 using blink::WebMediaStreamCenter; |
| 42 using blink::WebMediaStreamCenterClient; | 42 using blink::WebMediaStreamCenterClient; |
| 43 using blink::WebPlugin; | 43 using blink::WebPlugin; |
| 44 using blink::WebPluginParams; | 44 using blink::WebPluginParams; |
| 45 using blink::WebRTCPeerConnectionHandler; | 45 using blink::WebRTCPeerConnectionHandler; |
| 46 using blink::WebRTCPeerConnectionHandlerClient; | 46 using blink::WebRTCPeerConnectionHandlerClient; |
| 47 using blink::WebThemeEngine; | 47 using blink::WebThemeEngine; |
| 48 using WebTestRunner::WebTestDelegate; | |
| 49 using WebTestRunner::WebTestInterfaces; | |
| 50 | 48 |
| 51 namespace content { | 49 namespace content { |
| 52 | 50 |
| 53 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
| 54 namespace { | 52 namespace { |
| 55 | 53 |
| 56 // DirectWrite only has access to %WINDIR%\Fonts by default. For developer | 54 // DirectWrite only has access to %WINDIR%\Fonts by default. For developer |
| 57 // side-loading, support kRegisterFontFiles to allow access to additional fonts. | 55 // side-loading, support kRegisterFontFiles to allow access to additional fonts. |
| 58 void RegisterSideloadedTypefaces(SkFontMgr* fontmgr) { | 56 void RegisterSideloadedTypefaces(SkFontMgr* fontmgr) { |
| 59 std::vector<std::string> files = GetSideloadFontFiles(); | 57 std::vector<std::string> files = GetSideloadFontFiles(); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 test_runner->proxy()->setDelegate( | 191 test_runner->proxy()->setDelegate( |
| 194 ShellRenderProcessObserver::GetInstance()->test_delegate()); | 192 ShellRenderProcessObserver::GetInstance()->test_delegate()); |
| 195 } | 193 } |
| 196 | 194 |
| 197 bool ShellContentRendererClient::AllowBrowserPlugin( | 195 bool ShellContentRendererClient::AllowBrowserPlugin( |
| 198 blink::WebPluginContainer* container) { | 196 blink::WebPluginContainer* container) { |
| 199 return true; | 197 return true; |
| 200 } | 198 } |
| 201 | 199 |
| 202 } // namespace content | 200 } // namespace content |
| OLD | NEW |