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

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

Issue 2933023002: PaymentHandler: PaymentRequestEvent.total should be |object| type. (Closed)
Patch Set: Created 3 years, 6 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 void ServiceWorkerGlobalScopeProxy::DispatchPaymentRequestEvent( 454 void ServiceWorkerGlobalScopeProxy::DispatchPaymentRequestEvent(
455 int event_id, 455 int event_id,
456 const WebPaymentRequestEventData& web_app_request) { 456 const WebPaymentRequestEventData& web_app_request) {
457 WaitUntilObserver* wait_until_observer = WaitUntilObserver::Create( 457 WaitUntilObserver* wait_until_observer = WaitUntilObserver::Create(
458 WorkerGlobalScope(), WaitUntilObserver::kPaymentRequest, event_id); 458 WorkerGlobalScope(), WaitUntilObserver::kPaymentRequest, event_id);
459 RespondWithObserver* respond_with_observer = 459 RespondWithObserver* respond_with_observer =
460 PaymentRequestRespondWithObserver::Create(WorkerGlobalScope(), event_id, 460 PaymentRequestRespondWithObserver::Create(WorkerGlobalScope(), event_id,
461 wait_until_observer); 461 wait_until_observer);
462 462
463 Event* event = PaymentRequestEvent::Create( 463 Event* event = PaymentRequestEvent::Create(
464 WorkerGlobalScope()->ScriptController()->GetScriptState(),
464 EventTypeNames::paymentrequest, 465 EventTypeNames::paymentrequest,
465 PaymentRequestEventDataConversion::ToPaymentRequestEventInit( 466 PaymentRequestEventDataConversion::ToPaymentRequestEventInit(
466 WorkerGlobalScope()->ScriptController()->GetScriptState(), 467 WorkerGlobalScope()->ScriptController()->GetScriptState(),
467 web_app_request), 468 web_app_request),
468 respond_with_observer, wait_until_observer); 469 respond_with_observer, wait_until_observer);
469 470
470 wait_until_observer->WillDispatchEvent(); 471 wait_until_observer->WillDispatchEvent();
471 respond_with_observer->WillDispatchEvent(); 472 respond_with_observer->WillDispatchEvent();
472 DispatchEventResult dispatch_result = 473 DispatchEventResult dispatch_result =
473 WorkerGlobalScope()->DispatchEvent(event); 474 WorkerGlobalScope()->DispatchEvent(event);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 return *client_; 599 return *client_;
599 } 600 }
600 601
601 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::WorkerGlobalScope() 602 ServiceWorkerGlobalScope* ServiceWorkerGlobalScopeProxy::WorkerGlobalScope()
602 const { 603 const {
603 DCHECK(worker_global_scope_); 604 DCHECK(worker_global_scope_);
604 return worker_global_scope_; 605 return worker_global_scope_;
605 } 606 }
606 607
607 } // namespace blink 608 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698