| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 | 52 |
| 53 ~ColorChooserUIController() override; | 53 ~ColorChooserUIController() override; |
| 54 DECLARE_VIRTUAL_TRACE(); | 54 DECLARE_VIRTUAL_TRACE(); |
| 55 | 55 |
| 56 virtual void OpenUI(); | 56 virtual void OpenUI(); |
| 57 | 57 |
| 58 // ColorChooser functions: | 58 // ColorChooser functions: |
| 59 void SetSelectedColor(const Color&) final; | 59 void SetSelectedColor(const Color&) final; |
| 60 void EndChooser() override; | 60 void EndChooser() override; |
| 61 AXObjectImpl* RootAXObject() override; | 61 AXObject* RootAXObject() override; |
| 62 | 62 |
| 63 // WebColorChooserClient functions: | 63 // WebColorChooserClient functions: |
| 64 void DidChooseColor(const WebColor&) final; | 64 void DidChooseColor(const WebColor&) final; |
| 65 void DidEndChooser() final; | 65 void DidEndChooser() final; |
| 66 | 66 |
| 67 protected: | 67 protected: |
| 68 ColorChooserUIController(LocalFrame*, ColorChooserClient*); | 68 ColorChooserUIController(LocalFrame*, ColorChooserClient*); |
| 69 | 69 |
| 70 void OpenColorChooser(); | 70 void OpenColorChooser(); |
| 71 std::unique_ptr<WebColorChooser> chooser_; | 71 std::unique_ptr<WebColorChooser> chooser_; |
| 72 Member<ColorChooserClient> client_; | 72 Member<ColorChooserClient> client_; |
| 73 | 73 |
| 74 Member<LocalFrame> frame_; | 74 Member<LocalFrame> frame_; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // ColorChooserUIController_h | 79 #endif // ColorChooserUIController_h |
| OLD | NEW |