Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/browser/devtools/renderer_overrides_handler.h

Issue 508973003: DevTools: Protocol handler generator for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 scoped_ptr<base::DictionaryValue> response_data); 114 scoped_ptr<base::DictionaryValue> response_data);
115 115
116 void NotifyScreencastVisibility(bool visible); 116 void NotifyScreencastVisibility(bool visible);
117 void SetColorPickerEnabled(bool enabled); 117 void SetColorPickerEnabled(bool enabled);
118 void UpdateColorPickerFrame(); 118 void UpdateColorPickerFrame();
119 void ResetColorPickerFrame(); 119 void ResetColorPickerFrame();
120 void ColorPickerFrameUpdated(bool succeeded, const SkBitmap& bitmap); 120 void ColorPickerFrameUpdated(bool succeeded, const SkBitmap& bitmap);
121 bool HandleMouseEvent(const blink::WebMouseEvent& event); 121 bool HandleMouseEvent(const blink::WebMouseEvent& event);
122 void UpdateColorPickerCursor(); 122 void UpdateColorPickerCursor();
123 123
124 // Input domain.
125 scoped_refptr<DevToolsProtocol::Response> InputEmulateTouchFromMouseEvent(
126 scoped_refptr<DevToolsProtocol::Command> command);
127
128 void UpdateTouchEventEmulationState(); 124 void UpdateTouchEventEmulationState();
129 125
130 RenderViewHostImpl* host_; 126 RenderViewHostImpl* host_;
131 bool page_domain_enabled_; 127 bool page_domain_enabled_;
132 scoped_refptr<DevToolsProtocol::Command> screencast_command_; 128 scoped_refptr<DevToolsProtocol::Command> screencast_command_;
133 bool has_last_compositor_frame_metadata_; 129 bool has_last_compositor_frame_metadata_;
134 cc::CompositorFrameMetadata last_compositor_frame_metadata_; 130 cc::CompositorFrameMetadata last_compositor_frame_metadata_;
135 base::TimeTicks last_frame_time_; 131 base::TimeTicks last_frame_time_;
136 int capture_retry_count_; 132 int capture_retry_count_;
137 bool touch_emulation_enabled_; 133 bool touch_emulation_enabled_;
138 bool color_picker_enabled_; 134 bool color_picker_enabled_;
139 SkBitmap color_picker_frame_; 135 SkBitmap color_picker_frame_;
140 int last_cursor_x_; 136 int last_cursor_x_;
141 int last_cursor_y_; 137 int last_cursor_y_;
142 RenderWidgetHost::MouseEventCallback mouse_event_callback_; 138 RenderWidgetHost::MouseEventCallback mouse_event_callback_;
143 base::WeakPtrFactory<RendererOverridesHandler> weak_factory_; 139 base::WeakPtrFactory<RendererOverridesHandler> weak_factory_;
144 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler); 140 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler);
145 }; 141 };
146 142
147 } // namespace content 143 } // namespace content
148 144
149 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ 145 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698