Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ | |
| 6 #define CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorChooser.h" | |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorChooserClient .h" | |
| 12 | |
| 13 #if defined(ENABLE_INPUT_COLOR) | |
| 14 | |
| 15 class RenderViewImpl; | |
| 16 class WebColorChooserClient; | |
| 17 | |
| 18 class RendererWebColorChooserImpl : public WebKit::WebColorChooser { | |
| 19 public: | |
| 20 explicit RendererWebColorChooserImpl(RenderViewImpl* sender); | |
| 21 virtual ~RendererWebColorChooserImpl(); | |
| 22 | |
| 23 virtual void open(WebKit::WebColor); | |
|
yosin_UTC9
2011/12/06 07:11:17
Please insert OVERRIDE before semi-colon for overr
| |
| 24 virtual void cleanup(); | |
| 25 virtual void setSelectedColor(WebKit::WebColor); | |
| 26 | |
| 27 virtual void didChooseColor(WebKit::WebColor); | |
| 28 virtual void didCleanup(); | |
| 29 | |
| 30 virtual WebKit::WebColorChooserClient* client(); | |
| 31 virtual void setClient(WebKit::WebColorChooserClient*); | |
| 32 | |
| 33 private: | |
| 34 RenderViewImpl* sender_; | |
| 35 scoped_ptr<WebKit::WebColorChooserClient> client_; | |
| 36 }; | |
|
yosin_UTC9
2011/12/06 07:11:17
Please add DISALLOW_COPY_AND_ASSIGN(RendererWebCo
| |
| 37 | |
| 38 #endif // defined(ENABLE_INPUT_COLOR) | |
| 39 | |
| 40 #endif // CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ | |
| OLD | NEW |