OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "content/public/common/color_suggestion.h" | 12 #include "content/public/common/color_suggestion.h" |
13 #include "content/public/renderer/render_frame_observer.h" | 13 #include "content/public/renderer/render_frame_observer.h" |
14 #include "third_party/WebKit/public/web/WebColorChooser.h" | 14 #include "third_party/WebKit/public/web/WebColorChooser.h" |
15 #include "third_party/WebKit/public/web/WebColorChooserClient.h" | 15 #include "third_party/WebKit/public/web/WebColorChooserClient.h" |
16 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
17 | 17 |
18 namespace blink { | |
19 class WebFrame; | |
20 } | |
21 | |
22 namespace content { | 18 namespace content { |
23 | 19 |
24 class RendererWebColorChooserImpl : public blink::WebColorChooser, | 20 class RendererWebColorChooserImpl : public blink::WebColorChooser, |
25 public RenderFrameObserver { | 21 public RenderFrameObserver { |
26 public: | 22 public: |
27 explicit RendererWebColorChooserImpl(RenderFrame* render_frame, | 23 explicit RendererWebColorChooserImpl(RenderFrame* render_frame, |
28 blink::WebColorChooserClient*); | 24 blink::WebColorChooserClient*); |
29 ~RendererWebColorChooserImpl() override; | 25 ~RendererWebColorChooserImpl() override; |
30 | 26 |
31 // blink::WebColorChooser implementation: | 27 // blink::WebColorChooser implementation: |
(...skipping 18 matching lines...) Expand all Loading... |
50 | 46 |
51 int identifier_; | 47 int identifier_; |
52 blink::WebColorChooserClient* client_; | 48 blink::WebColorChooserClient* client_; |
53 | 49 |
54 DISALLOW_COPY_AND_ASSIGN(RendererWebColorChooserImpl); | 50 DISALLOW_COPY_AND_ASSIGN(RendererWebColorChooserImpl); |
55 }; | 51 }; |
56 | 52 |
57 } // namespace content | 53 } // namespace content |
58 | 54 |
59 #endif // CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ | 55 #endif // CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ |
OLD | NEW |