| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/page/PagePopupController.h" | 32 #include "core/page/PagePopupController.h" |
| 33 | 33 |
| 34 #include "core/page/PagePopupClient.h" | 34 #include "core/page/PagePopupClient.h" |
| 35 #include "platform/text/PlatformLocale.h" | 35 #include "platform/text/PlatformLocale.h" |
| 36 #include "public/platform/Platform.h" | 36 #include "public/platform/Platform.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 DEFINE_GC_INFO(PagePopupController); | |
| 41 | |
| 42 PagePopupController::PagePopupController(PagePopupClient* client) | 40 PagePopupController::PagePopupController(PagePopupClient* client) |
| 43 : m_popupClient(client) | 41 : m_popupClient(client) |
| 44 { | 42 { |
| 45 ASSERT(client); | 43 ASSERT(client); |
| 46 ScriptWrappable::init(this); | 44 ScriptWrappable::init(this); |
| 47 } | 45 } |
| 48 | 46 |
| 49 PassRefPtrWillBeRawPtr<PagePopupController> PagePopupController::create(PagePopu
pClient* client) | 47 PassRefPtrWillBeRawPtr<PagePopupController> PagePopupController::create(PagePopu
pClient* client) |
| 50 { | 48 { |
| 51 return adoptRefWillBeNoop(new PagePopupController(client)); | 49 return adoptRefWillBeNoop(new PagePopupController(client)); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 { | 96 { |
| 99 m_popupClient = 0; | 97 m_popupClient = 0; |
| 100 } | 98 } |
| 101 | 99 |
| 102 void PagePopupController::histogramEnumeration(const String& name, int sample, i
nt boundaryValue) | 100 void PagePopupController::histogramEnumeration(const String& name, int sample, i
nt boundaryValue) |
| 103 { | 101 { |
| 104 blink::Platform::current()->histogramEnumeration(name.utf8().data(), sample,
boundaryValue); | 102 blink::Platform::current()->histogramEnumeration(name.utf8().data(), sample,
boundaryValue); |
| 105 } | 103 } |
| 106 | 104 |
| 107 } | 105 } |
| OLD | NEW |