blob: 0eeac6890a6626e5359cf0733243655a5088ca41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/events/visual_viewport_scroll_event.h"
#include "third_party/blink/renderer/core/dom/events/event_target.h"
#include "third_party/blink/renderer/core/event_type_names.h"
#include "third_party/blink/renderer/core/frame/use_counter.h"
namespace blink {
VisualViewportScrollEvent::~VisualViewportScrollEvent() = default;
VisualViewportScrollEvent::VisualViewportScrollEvent()
: Event(EventTypeNames::scroll, Bubbles::kNo, Cancelable::kNo) {}
void VisualViewportScrollEvent::DoneDispatchingEventAtCurrentTarget() {
UseCounter::Count(currentTarget()->GetExecutionContext(),
WebFeature::kVisualViewportScrollFired);
}
} // namespace blink
|