OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #ifndef ColorChooserUIController_h | 26 #ifndef ColorChooserUIController_h |
27 #define ColorChooserUIController_h | 27 #define ColorChooserUIController_h |
28 | 28 |
29 #include "platform/ColorChooser.h" | 29 #include "platform/ColorChooser.h" |
30 #include "platform/text/PlatformLocale.h" | 30 #include "platform/text/PlatformLocale.h" |
31 #include "public/web/WebColorChooserClient.h" | 31 #include "public/web/WebColorChooserClient.h" |
32 #include "wtf/OwnPtr.h" | 32 #include "wtf/OwnPtr.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace blink { |
35 class ColorChooserClient; | 35 class ColorChooserClient; |
36 class LocalFrame; | 36 class LocalFrame; |
37 } | 37 } |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class WebColorChooser; | 41 class WebColorChooser; |
42 | 42 |
43 class ColorChooserUIController : public WebColorChooserClient, public WebCore::C
olorChooser { | 43 class ColorChooserUIController : public WebColorChooserClient, public blink::Col
orChooser { |
44 public: | 44 public: |
45 ColorChooserUIController(WebCore::LocalFrame*, WebCore::ColorChooserClient*)
; | 45 ColorChooserUIController(blink::LocalFrame*, blink::ColorChooserClient*); |
46 virtual ~ColorChooserUIController(); | 46 virtual ~ColorChooserUIController(); |
47 | 47 |
48 virtual void openUI(); | 48 virtual void openUI(); |
49 | 49 |
50 // ColorChooser functions: | 50 // ColorChooser functions: |
51 virtual void setSelectedColor(const WebCore::Color&) OVERRIDE FINAL; | 51 virtual void setSelectedColor(const blink::Color&) OVERRIDE FINAL; |
52 virtual void endChooser() OVERRIDE; | 52 virtual void endChooser() OVERRIDE; |
53 | 53 |
54 // WebColorChooserClient functions: | 54 // WebColorChooserClient functions: |
55 virtual void didChooseColor(const WebColor&) OVERRIDE FINAL; | 55 virtual void didChooseColor(const WebColor&) OVERRIDE FINAL; |
56 virtual void didEndChooser() OVERRIDE FINAL; | 56 virtual void didEndChooser() OVERRIDE FINAL; |
57 | 57 |
58 protected: | 58 protected: |
59 void openColorChooser(); | 59 void openColorChooser(); |
60 OwnPtr<WebColorChooser> m_chooser; | 60 OwnPtr<WebColorChooser> m_chooser; |
61 | 61 |
62 private: | 62 private: |
63 | 63 |
64 WebCore::LocalFrame* m_frame; | 64 blink::LocalFrame* m_frame; |
65 WebCore::ColorChooserClient* m_client; | 65 blink::ColorChooserClient* m_client; |
66 }; | 66 }; |
67 | 67 |
68 } | 68 } |
69 | 69 |
70 #endif // ColorChooserUIController_h | 70 #endif // ColorChooserUIController_h |
OLD | NEW |