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 * | 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 if (m_client) | 80 if (m_client) |
81 m_client->didEndChooser(); | 81 m_client->didEndChooser(); |
82 } | 82 } |
83 | 83 |
84 void ColorChooserUIController::openColorChooser() { | 84 void ColorChooserUIController::openColorChooser() { |
85 DCHECK(!m_chooser); | 85 DCHECK(!m_chooser); |
86 WebLocalFrameImpl* frame = WebLocalFrameImpl::fromFrame(m_frame); | 86 WebLocalFrameImpl* frame = WebLocalFrameImpl::fromFrame(m_frame); |
87 WebFrameClient* webFrameClient = frame->client(); | 87 WebFrameClient* webFrameClient = frame->client(); |
88 if (!webFrameClient) | 88 if (!webFrameClient) |
89 return; | 89 return; |
90 m_chooser = wrapUnique(webFrameClient->createColorChooser( | 90 m_chooser = WTF::wrapUnique(webFrameClient->createColorChooser( |
91 this, static_cast<WebColor>(m_client->currentColor().rgb()), | 91 this, static_cast<WebColor>(m_client->currentColor().rgb()), |
92 m_client->suggestions())); | 92 m_client->suggestions())); |
93 } | 93 } |
94 | 94 |
95 } // namespace blink | 95 } // namespace blink |
OLD | NEW |