| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class WebDateTimeChooserCompletionImpl : public WebDateTimeChooserCompletion { | 40 class WebDateTimeChooserCompletionImpl : public WebDateTimeChooserCompletion { |
| 41 public: | 41 public: |
| 42 WebDateTimeChooserCompletionImpl(ExternalDateTimeChooser* chooser) | 42 WebDateTimeChooserCompletionImpl(ExternalDateTimeChooser* chooser) |
| 43 : m_chooser(chooser) | 43 : m_chooser(chooser) |
| 44 { | 44 { |
| 45 } | 45 } |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 virtual void didChooseValue(const WebString& value) override | 48 void didChooseValue(const WebString& value) override |
| 49 { | 49 { |
| 50 m_chooser->didChooseValue(value); | 50 m_chooser->didChooseValue(value); |
| 51 delete this; | 51 delete this; |
| 52 } | 52 } |
| 53 | 53 |
| 54 virtual void didChooseValue(double value) override | 54 void didChooseValue(double value) override |
| 55 { | 55 { |
| 56 m_chooser->didChooseValue(value); | 56 m_chooser->didChooseValue(value); |
| 57 delete this; | 57 delete this; |
| 58 } | 58 } |
| 59 | 59 |
| 60 virtual void didCancelChooser() override | 60 void didCancelChooser() override |
| 61 { | 61 { |
| 62 m_chooser->didCancelChooser(); | 62 m_chooser->didCancelChooser(); |
| 63 delete this; | 63 delete this; |
| 64 } | 64 } |
| 65 | 65 |
| 66 RefPtr<ExternalDateTimeChooser> m_chooser; | 66 RefPtr<ExternalDateTimeChooser> m_chooser; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 ExternalDateTimeChooser::~ExternalDateTimeChooser() | 69 ExternalDateTimeChooser::~ExternalDateTimeChooser() |
| 70 { | 70 { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 } | 167 } |
| 168 | 168 |
| 169 AXObject* ExternalDateTimeChooser::rootAXObject() | 169 AXObject* ExternalDateTimeChooser::rootAXObject() |
| 170 { | 170 { |
| 171 return 0; | 171 return 0; |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace blink | 174 } // namespace blink |
| 175 | 175 |
| 176 #endif | 176 #endif |
| OLD | NEW |