blob: 9e35cecd49ab4e729fd97c43deb27d5a6eb9bb5f [file] [log] [blame]
// 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 "core/frame/ScreenOrientationController.h"
namespace blink {
ScreenOrientationController::ScreenOrientationController(LocalFrame& frame)
: Supplement<LocalFrame>(frame) {}
// static
ScreenOrientationController* ScreenOrientationController::from(
LocalFrame& frame) {
return static_cast<ScreenOrientationController*>(
Supplement<LocalFrame>::from(frame, supplementName()));
}
DEFINE_TRACE(ScreenOrientationController) {
Supplement<LocalFrame>::trace(visitor);
}
// static
void ScreenOrientationController::provideTo(
LocalFrame& frame,
ScreenOrientationController* controller) {
Supplement<LocalFrame>::provideTo(frame, supplementName(), controller);
}
// static
const char* ScreenOrientationController::supplementName() {
return "ScreenOrientationController";
}
} // namespace blink