// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_BASE_SCOPED_VISIBILITY_TRACKER_H_ #define UI_BASE_SCOPED_VISIBILITY_TRACKER_H_ #include "base/component_export.h" #include "base/memory/raw_ptr.h" #include "base/time/time.h" namespace base { class TickClock; } // namespace base namespace ui { // This class tracks the total time it is visible, based on receiving // OnShown/OnHidden notifications, which are logically idempotent. class COMPONENT_EXPORT(UI_BASE) ScopedVisibilityTracker { … }; } // namespace ui #endif // UI_BASE_SCOPED_VISIBILITY_TRACKER_H_