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

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

Issue 474243003: DevTools: make eye dropper live (refresh on frame update). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments addressed. Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/devtools/renderer_overrides_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 bool success, 100 bool success,
101 const SkBitmap& bitmap); 101 const SkBitmap& bitmap);
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 ResetColorPickerFrame();
110 void ColorPickerFrameUpdated(bool succeeded, const SkBitmap& bitmap); 111 void ColorPickerFrameUpdated(bool succeeded, const SkBitmap& bitmap);
111 bool HandleMouseEvent(const blink::WebMouseEvent& event); 112 bool HandleMouseEvent(const blink::WebMouseEvent& event);
113 void UpdateColorPickerCursor();
112 114
113 // Input domain. 115 // Input domain.
114 scoped_refptr<DevToolsProtocol::Response> InputEmulateTouchFromMouseEvent( 116 scoped_refptr<DevToolsProtocol::Response> InputEmulateTouchFromMouseEvent(
115 scoped_refptr<DevToolsProtocol::Command> command); 117 scoped_refptr<DevToolsProtocol::Command> command);
116 118
117 RenderViewHostImpl* host_; 119 RenderViewHostImpl* host_;
118 scoped_refptr<DevToolsProtocol::Command> screencast_command_; 120 scoped_refptr<DevToolsProtocol::Command> screencast_command_;
119 bool has_last_compositor_frame_metadata_; 121 bool has_last_compositor_frame_metadata_;
120 cc::CompositorFrameMetadata last_compositor_frame_metadata_; 122 cc::CompositorFrameMetadata last_compositor_frame_metadata_;
121 base::TimeTicks last_frame_time_; 123 base::TimeTicks last_frame_time_;
122 int capture_retry_count_; 124 int capture_retry_count_;
123 bool color_picker_enabled_; 125 bool color_picker_enabled_;
124 SkBitmap color_picker_frame_; 126 SkBitmap color_picker_frame_;
127 int last_cursor_x_;
128 int last_cursor_y_;
125 RenderWidgetHost::MouseEventCallback mouse_event_callback_; 129 RenderWidgetHost::MouseEventCallback mouse_event_callback_;
126 base::WeakPtrFactory<RendererOverridesHandler> weak_factory_; 130 base::WeakPtrFactory<RendererOverridesHandler> weak_factory_;
127 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler); 131 DISALLOW_COPY_AND_ASSIGN(RendererOverridesHandler);
128 }; 132 };
129 133
130 } // namespace content 134 } // namespace content
131 135
132 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_ 136 #endif // CONTENT_BROWSER_DEVTOOLS_RENDERER_OVERRIDES_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/renderer_overrides_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698