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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 WebContentsImpl* GetWebContents(); | 87 WebContentsImpl* GetWebContents(); |
88 void NotifyScreencastVisibility(bool visible); | 88 void NotifyScreencastVisibility(bool visible); |
89 void InnerSwapCompositorFrame(); | 89 void InnerSwapCompositorFrame(); |
90 void ScreencastFrameCaptured(const cc::CompositorFrameMetadata& metadata, | 90 void ScreencastFrameCaptured(const cc::CompositorFrameMetadata& metadata, |
91 const SkBitmap& bitmap, | 91 const SkBitmap& bitmap, |
92 ReadbackResponse response); | 92 ReadbackResponse response); |
93 void ScreencastFrameEncoded(const cc::CompositorFrameMetadata& metadata, | 93 void ScreencastFrameEncoded(const cc::CompositorFrameMetadata& metadata, |
94 const base::Time& timestamp, | 94 const base::Time& timestamp, |
95 const std::string& data); | 95 const std::string& data); |
96 | 96 |
97 void ScreenshotCaptured( | 97 void ScreenshotCaptured(DevToolsCommandId command_id, |
98 DevToolsCommandId command_id, | 98 const unsigned char* png_data, |
99 const unsigned char* png_data, | 99 size_t png_size); |
100 size_t png_size); | |
101 | 100 |
102 void OnColorPicked(int r, int g, int b, int a); | 101 void OnColorPicked(int r, int g, int b, int a); |
103 | 102 |
104 // NotificationObserver overrides. | 103 // NotificationObserver overrides. |
105 void Observe(int type, | 104 void Observe(int type, |
106 const NotificationSource& source, | 105 const NotificationSource& source, |
107 const NotificationDetails& details) override; | 106 const NotificationDetails& details) override; |
108 | 107 |
109 bool enabled_; | 108 bool enabled_; |
110 | 109 |
(...skipping 19 matching lines...) Expand all Loading... |
130 base::WeakPtrFactory<PageHandler> weak_factory_; | 129 base::WeakPtrFactory<PageHandler> weak_factory_; |
131 | 130 |
132 DISALLOW_COPY_AND_ASSIGN(PageHandler); | 131 DISALLOW_COPY_AND_ASSIGN(PageHandler); |
133 }; | 132 }; |
134 | 133 |
135 } // namespace page | 134 } // namespace page |
136 } // namespace devtools | 135 } // namespace devtools |
137 } // namespace content | 136 } // namespace content |
138 | 137 |
139 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ | 138 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_PAGE_HANDLER_H_ |
OLD | NEW |