| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 private: | 26 private: |
| 27 scoped_ptr<DevToolsProtocol::Response> GrantPermissionsForSetFileInputFiles( | 27 scoped_ptr<DevToolsProtocol::Response> GrantPermissionsForSetFileInputFiles( |
| 28 DevToolsProtocol::Command* command); | 28 DevToolsProtocol::Command* command); |
| 29 scoped_ptr<DevToolsProtocol::Response> PageHandleJavaScriptDialog( | 29 scoped_ptr<DevToolsProtocol::Response> PageHandleJavaScriptDialog( |
| 30 DevToolsProtocol::Command* command); | 30 DevToolsProtocol::Command* command); |
| 31 scoped_ptr<DevToolsProtocol::Response> PageNavigate( | 31 scoped_ptr<DevToolsProtocol::Response> PageNavigate( |
| 32 DevToolsProtocol::Command* command); | 32 DevToolsProtocol::Command* command); |
| 33 scoped_ptr<DevToolsProtocol::Response> PageCaptureScreenshot( | 33 scoped_ptr<DevToolsProtocol::Response> PageCaptureScreenshot( |
| 34 DevToolsProtocol::Command* command); | 34 DevToolsProtocol::Command* command); |
| 35 | 35 |
| 36 bool CaptureScreenshot(std::string* base_64_data); | 36 bool CaptureScreenshot(const std::string& format, |
| 37 int quality, |
| 38 double scale, |
| 39 std::string* base_64_data); |
| 37 | 40 |
| 38 DevToolsAgentHost* agent_; | 41 DevToolsAgentHost* agent_; |
| 39 | 42 |
| 40 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler); | 43 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler); |
| 41 }; | 44 }; |
| 42 | 45 |
| 43 } // namespace content | 46 } // namespace content |
| 44 | 47 |
| 45 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ | 48 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ |
| OLD | NEW |