OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDER_WIDGET_SIGNALS_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDER_WIDGET_SIGN
ALS_H_ |
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDER_WIDGET_SIGNALS_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDER_WIDGET_SIGN
ALS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
11 #include "base/trace_event/trace_event_argument.h" | 11 #include "base/trace_event/trace_event_argument.h" |
12 #include "components/scheduler/scheduler_export.h" | 12 #include "public/platform/WebCommon.h" |
13 | 13 |
| 14 namespace blink { |
14 namespace scheduler { | 15 namespace scheduler { |
15 | 16 |
16 class RenderWidgetSchedulingState; | 17 class RenderWidgetSchedulingState; |
17 | 18 |
18 class SCHEDULER_EXPORT RenderWidgetSignals { | 19 class BLINK_PLATFORM_EXPORT RenderWidgetSignals { |
19 public: | 20 public: |
20 class SCHEDULER_EXPORT Observer { | 21 class BLINK_PLATFORM_EXPORT Observer { |
21 public: | 22 public: |
22 virtual ~Observer() {} | 23 virtual ~Observer() {} |
23 | 24 |
24 // If |hidden| is true then all render widgets managed by this renderer | 25 // If |hidden| is true then all render widgets managed by this renderer |
25 // process have been hidden. | 26 // process have been hidden. |
26 // If |hidden| is false at least one render widget managed by this renderer | 27 // If |hidden| is false at least one render widget managed by this renderer |
27 // process has become visible and the renderer is no longer hidden. | 28 // process has become visible and the renderer is no longer hidden. |
28 // Will be called on the main thread. | 29 // Will be called on the main thread. |
29 virtual void SetAllRenderWidgetsHidden(bool hidden) = 0; | 30 virtual void SetAllRenderWidgetsHidden(bool hidden) = 0; |
30 | 31 |
(...skipping 16 matching lines...) Expand all Loading... |
47 void DecNumVisibleRenderWidgets(); | 48 void DecNumVisibleRenderWidgets(); |
48 void IncNumVisibleRenderWidgetsWithTouchHandlers(); | 49 void IncNumVisibleRenderWidgetsWithTouchHandlers(); |
49 void DecNumVisibleRenderWidgetsWithTouchHandlers(); | 50 void DecNumVisibleRenderWidgetsWithTouchHandlers(); |
50 | 51 |
51 Observer* observer_; // NOT OWNED | 52 Observer* observer_; // NOT OWNED |
52 int num_visible_render_widgets_; | 53 int num_visible_render_widgets_; |
53 int num_visible_render_widgets_with_touch_handlers_; | 54 int num_visible_render_widgets_with_touch_handlers_; |
54 }; | 55 }; |
55 | 56 |
56 } // namespace scheduler | 57 } // namespace scheduler |
| 58 } // namespace blink |
57 | 59 |
58 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDER_WIDGET_SIGNALS_H_ | 60 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDER_WIDGET_S
IGNALS_H_ |
OLD | NEW |