| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 PagePopupController::PagePopupController(PagePopup& popup, PagePopupClient* clie
nt) | 40 PagePopupController::PagePopupController(PagePopup& popup, PagePopupClient* clie
nt) |
| 41 : m_popup(popup) | 41 : m_popup(popup) |
| 42 , m_popupClient(client) | 42 , m_popupClient(client) |
| 43 { | 43 { |
| 44 ASSERT(client); | 44 ASSERT(client); |
| 45 } | 45 } |
| 46 | 46 |
| 47 PassRefPtrWillBeRawPtr<PagePopupController> PagePopupController::create(PagePopu
p& popup, PagePopupClient* client) | 47 RawPtr<PagePopupController> PagePopupController::create(PagePopup& popup, PagePo
pupClient* client) |
| 48 { | 48 { |
| 49 return adoptRefWillBeNoop(new PagePopupController(popup, client)); | 49 return new PagePopupController(popup, client); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void PagePopupController::setValueAndClosePopup(int numValue, const String& stri
ngValue) | 52 void PagePopupController::setValueAndClosePopup(int numValue, const String& stri
ngValue) |
| 53 { | 53 { |
| 54 if (m_popupClient) | 54 if (m_popupClient) |
| 55 m_popupClient->setValueAndClosePopup(numValue, stringValue); | 55 m_popupClient->setValueAndClosePopup(numValue, stringValue); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void PagePopupController::setValue(const String& value) | 58 void PagePopupController::setValue(const String& value) |
| 59 { | 59 { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 { | 114 { |
| 115 m_popupClient = nullptr; | 115 m_popupClient = nullptr; |
| 116 } | 116 } |
| 117 | 117 |
| 118 void PagePopupController::setWindowRect(int x, int y, int width, int height) | 118 void PagePopupController::setWindowRect(int x, int y, int width, int height) |
| 119 { | 119 { |
| 120 m_popup.setWindowRect(IntRect(x, y, width, height)); | 120 m_popup.setWindowRect(IntRect(x, y, width, height)); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| OLD | NEW |