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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 m_chooser->didChooseValue(value); 55 m_chooser->didChooseValue(value);
56 delete this; 56 delete this;
57 } 57 }
58 58
59 void didCancelChooser() override 59 void didCancelChooser() override
60 { 60 {
61 m_chooser->didCancelChooser(); 61 m_chooser->didCancelChooser();
62 delete this; 62 delete this;
63 } 63 }
64 64
65 RefPtrWillBePersistent<ExternalDateTimeChooser> m_chooser; 65 Persistent<ExternalDateTimeChooser> m_chooser;
66 }; 66 };
67 67
68 ExternalDateTimeChooser::~ExternalDateTimeChooser() 68 ExternalDateTimeChooser::~ExternalDateTimeChooser()
69 { 69 {
70 } 70 }
71 71
72 DEFINE_TRACE(ExternalDateTimeChooser) 72 DEFINE_TRACE(ExternalDateTimeChooser)
73 { 73 {
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 ASSERT(client); 81 ASSERT(client);
82 } 82 }
83 83
84 PassRefPtrWillBeRawPtr<ExternalDateTimeChooser> ExternalDateTimeChooser::create( ChromeClientImpl* chromeClient, WebViewClient* webViewClient, DateTimeChooserCli ent* client, const DateTimeChooserParameters& parameters) 84 RawPtr<ExternalDateTimeChooser> ExternalDateTimeChooser::create(ChromeClientImpl * chromeClient, WebViewClient* webViewClient, DateTimeChooserClient* client, con st DateTimeChooserParameters& parameters)
85 { 85 {
86 ASSERT(chromeClient); 86 ASSERT(chromeClient);
87 RefPtrWillBeRawPtr<ExternalDateTimeChooser> chooser = adoptRefWillBeNoop(new ExternalDateTimeChooser(client)); 87 RawPtr<ExternalDateTimeChooser> chooser = new ExternalDateTimeChooser(client );
88 if (!chooser->openDateTimeChooser(chromeClient, webViewClient, parameters)) 88 if (!chooser->openDateTimeChooser(chromeClient, webViewClient, parameters))
89 chooser.clear(); 89 chooser.clear();
90 return chooser.release(); 90 return chooser.release();
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;
(...skipping 74 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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698