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

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

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 visitor->trace(m_client); 74 visitor->trace(m_client);
75 DateTimeChooser::trace(visitor); 75 DateTimeChooser::trace(visitor);
76 } 76 }
77 77
78 ExternalDateTimeChooser::ExternalDateTimeChooser(DateTimeChooserClient* client) 78 ExternalDateTimeChooser::ExternalDateTimeChooser(DateTimeChooserClient* client)
79 : m_client(client) 79 : m_client(client)
80 { 80 {
81 DCHECK(client); 81 DCHECK(client);
82 } 82 }
83 83
84 RawPtr<ExternalDateTimeChooser> ExternalDateTimeChooser::create(ChromeClientImpl * chromeClient, WebViewClient* webViewClient, DateTimeChooserClient* client, con st DateTimeChooserParameters& parameters) 84 ExternalDateTimeChooser* ExternalDateTimeChooser::create(ChromeClientImpl* chrom eClient, WebViewClient* webViewClient, DateTimeChooserClient* client, const Date TimeChooserParameters& parameters)
85 { 85 {
86 DCHECK(chromeClient); 86 DCHECK(chromeClient);
87 RawPtr<ExternalDateTimeChooser> chooser = new ExternalDateTimeChooser(client ); 87 ExternalDateTimeChooser* chooser = new ExternalDateTimeChooser(client);
88 if (!chooser->openDateTimeChooser(chromeClient, webViewClient, parameters)) 88 if (!chooser->openDateTimeChooser(chromeClient, webViewClient, parameters))
89 chooser.clear(); 89 chooser = nullptr;
90 return chooser.release(); 90 return chooser;
91 } 91 }
92 92
93 93
94 static WebDateTimeInputType toWebDateTimeInputType(const AtomicString& source) 94 static WebDateTimeInputType toWebDateTimeInputType(const AtomicString& source)
95 { 95 {
96 if (source == InputTypeNames::date) 96 if (source == InputTypeNames::date)
97 return WebDateTimeInputTypeDate; 97 return WebDateTimeInputTypeDate;
98 if (source == InputTypeNames::datetime) 98 if (source == InputTypeNames::datetime)
99 return WebDateTimeInputTypeDateTime; 99 return WebDateTimeInputTypeDateTime;
100 if (source == InputTypeNames::datetime_local) 100 if (source == InputTypeNames::datetime_local)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 172 }
173 173
174 AXObject* ExternalDateTimeChooser::rootAXObject() 174 AXObject* ExternalDateTimeChooser::rootAXObject()
175 { 175 {
176 return nullptr; 176 return nullptr;
177 } 177 }
178 178
179 } // namespace blink 179 } // namespace blink
180 180
181 #endif 181 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ExternalDateTimeChooser.h ('k') | third_party/WebKit/Source/web/ExternalPopupMenu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698