| 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/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 void PageQueryUsageAndQuotaCompleted( | 103 void PageQueryUsageAndQuotaCompleted( |
| 104 scoped_refptr<DevToolsProtocol::Command>, | 104 scoped_refptr<DevToolsProtocol::Command>, |
| 105 scoped_ptr<base::DictionaryValue> response_data); | 105 scoped_ptr<base::DictionaryValue> response_data); |
| 106 | 106 |
| 107 void NotifyScreencastVisibility(bool visible); | 107 void NotifyScreencastVisibility(bool visible); |
| 108 void SetColorPickerEnabled(bool enabled); | 108 void SetColorPickerEnabled(bool enabled); |
| 109 void UpdateColorPickerFrame(); | 109 void UpdateColorPickerFrame(); |
| 110 void ColorPickerFrameUpdated(bool succeeded, const SkBitmap& bitmap); | 110 void ColorPickerFrameUpdated(bool succeeded, const SkBitmap& bitmap); |
| 111 bool HandleMouseEvent(const blink::WebMouseEvent& event); | 111 bool HandleMouseEvent(const blink::WebMouseEvent& event); |
| 112 void UpdateColorPickerCursor(); |
| 112 | 113 |
| 113 // Input domain. | 114 // Input domain. |
| 114 scoped_refptr<DevToolsProtocol::Response> InputEmulateTouchFromMouseEvent( | 115 scoped_refptr<DevToolsProtocol::Response> InputEmulateTouchFromMouseEvent( |
| 115 scoped_refptr<DevToolsProtocol::Command> command); | 116 scoped_refptr<DevToolsProtocol::Command> command); |
| 116 | 117 |
| 117 RenderViewHostImpl* host_; | 118 RenderViewHostImpl* host_; |
| 118 scoped_refptr<DevToolsProtocol::Command> screencast_command_; | 119 scoped_refptr<DevToolsProtocol::Command> screencast_command_; |
| 119 bool has_last_compositor_frame_metadata_; | 120 bool has_last_compositor_frame_metadata_; |
| 120 cc::CompositorFrameMetadata last_compositor_frame_metadata_; | 121 cc::CompositorFrameMetadata last_compositor_frame_metadata_; |
| 121 base::TimeTicks last_frame_time_; | 122 base::TimeTicks last_frame_time_; |
| 122 int capture_retry_count_; | 123 int capture_retry_count_; |
| 123 bool color_picker_enabled_; | 124 bool color_picker_enabled_; |
| 124 SkBitmap color_picker_frame_; | 125 SkBitmap color_picker_frame_; |
| 126 int last_cursor_x_; |
| 127 int last_cursor_y_; |
| 125 RenderWidgetHost::MouseEventCallback mouse_event_callback_; | 128 RenderWidgetHost::MouseEventCallback mouse_event_callback_; |
| 126 base::WeakPtrFactory<RendererOverridesHandler> weak_factory_; | 129 base::WeakPtrFactory<RendererOverridesHandler> weak_factory_; |
| 127 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler); | 130 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler); |
| 128 }; | 131 }; |
| 129 | 132 |
| 130 } // namespace content | 133 } // namespace content |
| 131 | 134 |
| 132 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ | 135 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ |
| OLD | NEW |