summaryrefslogtreecommitdiffstats
path: root/components/scheduler/renderer/render_widget_scheduling_state.h
blob: 7ad042733ddc83af57c26ef0b8ca64c387ca7583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2015 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.

#ifndef COMPONENTS_SCHEDULER_RENDERER_RENDER_WIDGET_SCHEDULING_STATE_H_
#define COMPONENTS_SCHEDULER_RENDERER_RENDER_WIDGET_SCHEDULING_STATE_H_

#include "components/scheduler/scheduler_export.h"

namespace scheduler {

class RenderWidgetSignals;

class SCHEDULER_EXPORT RenderWidgetSchedulingState {
 public:
  void SetHidden(bool hidden);
  void SetHasTouchHandler(bool has_touch_handler);

  ~RenderWidgetSchedulingState();

 private:
  friend class RenderWidgetSignals;

  explicit RenderWidgetSchedulingState(
      RenderWidgetSignals* render_widget_scheduling_signals);

  RenderWidgetSignals* render_widget_signals_;  // NOT OWNED
  bool hidden_;
  bool has_touch_handler_;
};

}  // namespace scheduler

#endif  // COMPONENTS_SCHEDULER_RENDERER_RENDER_WIDGET_SCHEDULING_STATE_H_