OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_PROTOCOL_PAGE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_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/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 const std::string& security_origin, | 83 const std::string& security_origin, |
84 scoped_refptr<DevToolsProtocol::Command> command); | 84 scoped_refptr<DevToolsProtocol::Command> command); |
85 | 85 |
86 Response SetColorPickerEnabled(bool enabled); | 86 Response SetColorPickerEnabled(bool enabled); |
87 | 87 |
88 private: | 88 private: |
89 void UpdateTouchEventEmulationState(); | 89 void UpdateTouchEventEmulationState(); |
90 | 90 |
91 void NotifyScreencastVisibility(bool visible); | 91 void NotifyScreencastVisibility(bool visible); |
92 void InnerSwapCompositorFrame(); | 92 void InnerSwapCompositorFrame(); |
93 void ScreencastFrameCaptured(const std::string& format, | 93 void ScreencastFrameCaptured(const cc::CompositorFrameMetadata& metadata, |
94 int quality, | |
95 const cc::CompositorFrameMetadata& metadata, | |
96 const SkBitmap& bitmap, | 94 const SkBitmap& bitmap, |
97 ReadbackResponse response); | 95 ReadbackResponse response); |
| 96 void ScreencastFrameEncoded(const cc::CompositorFrameMetadata& metadata, |
| 97 const std::string& data); |
98 | 98 |
99 void ScreenshotCaptured( | 99 void ScreenshotCaptured( |
100 scoped_refptr<DevToolsProtocol::Command> command, | 100 scoped_refptr<DevToolsProtocol::Command> command, |
101 const unsigned char* png_data, | 101 const unsigned char* png_data, |
102 size_t png_size); | 102 size_t png_size); |
103 | 103 |
104 void OnColorPicked(int r, int g, int b, int a); | 104 void OnColorPicked(int r, int g, int b, int a); |
105 | 105 |
106 void QueryUsageAndQuotaCompleted( | 106 void QueryUsageAndQuotaCompleted( |
107 scoped_refptr<DevToolsProtocol::Command> command, | 107 scoped_refptr<DevToolsProtocol::Command> command, |
(...skipping 21 matching lines...) Expand all Loading... |
129 base::WeakPtrFactory<PageHandler> weak_factory_; | 129 base::WeakPtrFactory<PageHandler> weak_factory_; |
130 | 130 |
131 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 131 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
132 }; | 132 }; |
133 | 133 |
134 } // namespace page | 134 } // namespace page |
135 } // namespace devtools | 135 } // namespace devtools |
136 } // namespace content | 136 } // namespace content |
137 | 137 |
138 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 138 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
OLD | NEW |