| 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 18 matching lines...) Expand all Loading... |
| 29 #include "core/page/PagePopupClient.h" | 29 #include "core/page/PagePopupClient.h" |
| 30 #include "web/ColorChooserUIController.h" | 30 #include "web/ColorChooserUIController.h" |
| 31 #include "wtf/OwnPtr.h" | 31 #include "wtf/OwnPtr.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class ChromeClientImpl; | 35 class ChromeClientImpl; |
| 36 class ColorChooserClient; | 36 class ColorChooserClient; |
| 37 class PagePopup; | 37 class PagePopup; |
| 38 | 38 |
| 39 class ColorChooserPopupUIController FINAL : public ColorChooserUIController, pub
lic PagePopupClient { | 39 class ColorChooserPopupUIController final : public ColorChooserUIController, pub
lic PagePopupClient { |
| 40 | 40 |
| 41 public: | 41 public: |
| 42 ColorChooserPopupUIController(LocalFrame*, ChromeClientImpl*, ColorChooserCl
ient*); | 42 ColorChooserPopupUIController(LocalFrame*, ChromeClientImpl*, ColorChooserCl
ient*); |
| 43 virtual ~ColorChooserPopupUIController(); | 43 virtual ~ColorChooserPopupUIController(); |
| 44 | 44 |
| 45 // ColorChooserUIController functions: | 45 // ColorChooserUIController functions: |
| 46 virtual void openUI() OVERRIDE; | 46 virtual void openUI() override; |
| 47 | 47 |
| 48 // ColorChooser functions | 48 // ColorChooser functions |
| 49 virtual void endChooser() OVERRIDE; | 49 virtual void endChooser() override; |
| 50 virtual AXObject* rootAXObject() OVERRIDE; | 50 virtual AXObject* rootAXObject() override; |
| 51 | 51 |
| 52 // PagePopupClient functions: | 52 // PagePopupClient functions: |
| 53 virtual IntSize contentSize() OVERRIDE; | 53 virtual IntSize contentSize() override; |
| 54 virtual void writeDocument(SharedBuffer*) OVERRIDE; | 54 virtual void writeDocument(SharedBuffer*) override; |
| 55 virtual Locale& locale() OVERRIDE; | 55 virtual Locale& locale() override; |
| 56 virtual void setValueAndClosePopup(int, const String&) OVERRIDE; | 56 virtual void setValueAndClosePopup(int, const String&) override; |
| 57 virtual void setValue(const String&) OVERRIDE; | 57 virtual void setValue(const String&) override; |
| 58 virtual void closePopup() OVERRIDE; | 58 virtual void closePopup() override; |
| 59 virtual Element& ownerElement() OVERRIDE; | 59 virtual Element& ownerElement() override; |
| 60 virtual void didClosePopup() OVERRIDE; | 60 virtual void didClosePopup() override; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 void openPopup(); | 63 void openPopup(); |
| 64 | 64 |
| 65 ChromeClientImpl* m_chromeClient; | 65 ChromeClientImpl* m_chromeClient; |
| 66 ColorChooserClient* m_client; | 66 ColorChooserClient* m_client; |
| 67 PagePopup* m_popup; | 67 PagePopup* m_popup; |
| 68 Locale& m_locale; | 68 Locale& m_locale; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } | 71 } |
| 72 | 72 |
| 73 #endif // ColorChooserPopupUIController_h | 73 #endif // ColorChooserPopupUIController_h |
| OLD | NEW |