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

Unified Diff: content/browser/devtools/protocol/color_picker.h

Issue 2817593004: [DevTools] Move eye dropper functionality from protocol to embedder (Closed)
Patch Set: rebased Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/devtools/protocol/color_picker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/color_picker.h
diff --git a/content/browser/devtools/protocol/color_picker.h b/content/browser/devtools/protocol/color_picker.h
deleted file mode 100644
index 3a443f7d186c46843d49f9b8349bd036e121348d..0000000000000000000000000000000000000000
--- a/content/browser/devtools/protocol/color_picker.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_COLOR_PICKER_H_
-#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_COLOR_PICKER_H_
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "content/public/browser/readback_types.h"
-#include "content/public/browser/render_widget_host.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-
-namespace blink {
-class WebMouseEvent;
-}
-
-namespace content {
-
-class RenderWidgetHostImpl;
-
-namespace protocol {
-
-class ColorPicker {
- public:
- typedef base::Callback<void(int, int, int, int)> ColorPickedCallback;
-
- explicit ColorPicker(ColorPickedCallback callback);
- virtual ~ColorPicker();
-
- void SetRenderWidgetHost(RenderWidgetHostImpl* host);
- void SetEnabled(bool enabled);
- void OnSwapCompositorFrame();
-
- private:
- void UpdateFrame();
- void ResetFrame();
- void FrameUpdated(const SkBitmap&, ReadbackResponse);
- bool HandleMouseEvent(const blink::WebMouseEvent& event);
- void UpdateCursor();
-
- ColorPickedCallback callback_;
- bool enabled_;
- SkBitmap frame_;
- int last_cursor_x_;
- int last_cursor_y_;
- RenderWidgetHost::MouseEventCallback mouse_event_callback_;
- RenderWidgetHostImpl* host_;
- base::WeakPtrFactory<ColorPicker> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ColorPicker);
-};
-
-} // namespace protocol
-} // namespace content
-
-#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_COLOR_PICKER_H_
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/devtools/protocol/color_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698