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 30 matching lines...) Expand all Loading... |
41 class WebColorChooser; | 41 class WebColorChooser; |
42 | 42 |
43 class ColorChooserUIController : public WebColorChooserClient, public WebCore::C
olorChooser { | 43 class ColorChooserUIController : public WebColorChooserClient, public WebCore::C
olorChooser { |
44 public: | 44 public: |
45 ColorChooserUIController(ChromeClientImpl*, WebCore::ColorChooserClient*); | 45 ColorChooserUIController(ChromeClientImpl*, WebCore::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; | 51 virtual void setSelectedColor(const WebCore::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; | 55 virtual void didChooseColor(const WebColor&) OVERRIDE FINAL; |
56 virtual void didEndChooser() OVERRIDE; | 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 ChromeClientImpl* m_chromeClient; | 64 ChromeClientImpl* m_chromeClient; |
65 WebCore::ColorChooserClient* m_client; | 65 WebCore::ColorChooserClient* m_client; |
66 }; | 66 }; |
67 | 67 |
68 } | 68 } |
69 | 69 |
70 #endif // ColorChooserUIController_h | 70 #endif // ColorChooserUIController_h |
OLD | NEW |