| 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" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 void Open(SkColor initial_color, | 34 void Open(SkColor initial_color, |
| 35 const std::vector<content::ColorSuggestion>& suggestions); | 35 const std::vector<content::ColorSuggestion>& suggestions); |
| 36 | 36 |
| 37 blink::WebColorChooserClient* client() { return client_; } | 37 blink::WebColorChooserClient* client() { return client_; } |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 // RenderFrameObserver implementation: | 40 // RenderFrameObserver implementation: |
| 41 // Don't destroy the RendererWebColorChooserImpl when the RenderFrame goes | 41 // Don't destroy the RendererWebColorChooserImpl when the RenderFrame goes |
| 42 // away. RendererWebColorChooserImpl is owned by | 42 // away. RendererWebColorChooserImpl is owned by |
| 43 // blink::ColorChooserUIController. | 43 // blink::ColorChooserUIController. |
| 44 virtual void OnDestruct() OVERRIDE {} | 44 virtual void OnDestruct() override {} |
| 45 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 45 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 46 | 46 |
| 47 void OnDidChooseColorResponse(int color_chooser_id, SkColor color); | 47 void OnDidChooseColorResponse(int color_chooser_id, SkColor color); |
| 48 void OnDidEndColorChooser(int color_chooser_id); | 48 void OnDidEndColorChooser(int color_chooser_id); |
| 49 | 49 |
| 50 int identifier_; | 50 int identifier_; |
| 51 blink::WebColorChooserClient* client_; | 51 blink::WebColorChooserClient* client_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(RendererWebColorChooserImpl); | 53 DISALLOW_COPY_AND_ASSIGN(RendererWebColorChooserImpl); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace content | 56 } // namespace content |
| 57 | 57 |
| 58 #endif // CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ | 58 #endif // CONTENT_RENDERER_RENDERER_WEBCOLORCHOOSER_IMPL_H_ |
| OLD | NEW |