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

Side by Side Diff: Source/modules/presentation/AvailableChangeEvent.cpp

Issue 832263007: Added plumbing for the availablechange event from Blink to WebPresentationClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "modules/presentation/AvailableChangeEvent.h"
7
8 namespace blink {
9
10 AvailableChangeEvent::~AvailableChangeEvent()
11 {
12 }
13
14 AvailableChangeEvent::AvailableChangeEvent()
15 : m_available(false)
16 {
17 }
18
19 AvailableChangeEvent::AvailableChangeEvent(const AtomicString& eventType, bool a vailable)
20 : Event(eventType, false, false)
21 , m_available(available)
22 {
23 }
24
25 AvailableChangeEvent::AvailableChangeEvent(const AtomicString& eventType, const AvailableChangeEventInit& initializer)
26 : Event(eventType, initializer)
27 , m_available(initializer.hasAvailable() ? initializer.available() : false)
Peter Beverloo 2015/01/07 14:29:08 Please set the default value in AvailableChangeEve
whywhat 2015/01/07 16:22:15 Done.
28 {
29 }
30
31 const AtomicString& AvailableChangeEvent::interfaceName() const
32 {
33 return EventNames::AvailableChangeEvent;
34 }
35
36 } // namespace blink
37
38
Peter Beverloo 2015/01/07 14:29:08 nit: excess newlines.
whywhat 2015/01/07 16:22:15 Done.
39
40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698