OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_DOMAIN_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_DOMAIN_HANDLER_H_ |
| 7 |
| 8 #include "content/browser/devtools/protocol/devtools_protocol_handler.h" |
| 9 |
| 10 namespace content { |
| 11 namespace devtools { |
| 12 namespace page { |
| 13 |
| 14 class Handler { |
| 15 public: |
| 16 typedef DevToolsProtocolFrontend::Response Response; |
| 17 |
| 18 Handler(); |
| 19 virtual ~Handler(); |
| 20 |
| 21 void OnClientDetached(); |
| 22 void SetRenderViewHost(RenderViewHostImpl* host); |
| 23 void SetFrontend(scoped_ptr<Frontend> frontend); |
| 24 |
| 25 Response Enable(); |
| 26 Response Disable(); |
| 27 |
| 28 Response Reload(const bool* ignoreCache, |
| 29 const std::string* script_to_evaluate_on_load, |
| 30 const std::string* script_preprocessor); |
| 31 |
| 32 Response Navigate(const std::string& url, FrameId* frame_id); |
| 33 |
| 34 Response GetNavigationHistory(int* current_index, |
| 35 std::vector<NavigationEntry>* entries); |
| 36 |
| 37 Response NavigateToHistoryEntry(int entry_id); |
| 38 Response SetTouchEmulationEnabled(bool enabled); |
| 39 Response CaptureScreenshot(std::string* data); |
| 40 Response CanScreencast(bool* result); |
| 41 Response CanEmulate(bool* result); |
| 42 |
| 43 Response StartScreencast(const std::string* format, |
| 44 const int* quality, |
| 45 const int* max_width, |
| 46 const int* max_height); |
| 47 |
| 48 Response StopScreencast(); |
| 49 Response HandleJavaScriptDialog(bool accept, const std::string* prompt_text); |
| 50 |
| 51 Response QueryUsageAndQuota(const std::string& security_origin, |
| 52 Quota* quota, |
| 53 Usage* usage); |
| 54 |
| 55 Response SetColorPickerEnabled(bool enabled); |
| 56 |
| 57 private: |
| 58 scoped_ptr<Frontend> frontend_; |
| 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(Handler); |
| 61 }; |
| 62 |
| 63 } // namespace page |
| 64 } // namespace devtools |
| 65 } // namespace content |
| 66 |
| 67 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_DOMAIN_HANDLER_H_ |
OLD | NEW |