Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Side by Side Diff: third_party/WebKit/Source/web/ColorChooserUIController.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/CompositorMutatorImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698