OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 // load. This is used for metrics collection. | 115 // load. This is used for metrics collection. |
116 virtual void DidObserveLoadingBehavior( | 116 virtual void DidObserveLoadingBehavior( |
117 blink::WebLoadingBehaviorFlag behavior) {} | 117 blink::WebLoadingBehaviorFlag behavior) {} |
118 | 118 |
119 // Called when the focused node has changed to |node|. | 119 // Called when the focused node has changed to |node|. |
120 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 120 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
121 | 121 |
122 // Called when accessibility is enabled or disabled. | 122 // Called when accessibility is enabled or disabled. |
123 virtual void AccessibilityModeChanged() {} | 123 virtual void AccessibilityModeChanged() {} |
124 | 124 |
125 // For printing. | |
126 virtual void ScriptedPrint(bool user_initiated) {} | |
127 virtual void DidStartLoading() {} | |
nasko
2016/10/27 20:26:26
Let's not add this, as Start/Stop Loading is globa
Lei Zhang
2016/10/28 23:27:10
Done.
| |
128 virtual void DidStopLoading() {} | |
129 | |
125 // IPC::Listener implementation. | 130 // IPC::Listener implementation. |
126 bool OnMessageReceived(const IPC::Message& message) override; | 131 bool OnMessageReceived(const IPC::Message& message) override; |
127 | 132 |
128 // IPC::Sender implementation. | 133 // IPC::Sender implementation. |
129 bool Send(IPC::Message* message) override; | 134 bool Send(IPC::Message* message) override; |
130 | 135 |
131 RenderFrame* render_frame() const; | 136 RenderFrame* render_frame() const; |
132 int routing_id() const { return routing_id_; } | 137 int routing_id() const { return routing_id_; } |
133 | 138 |
134 protected: | 139 protected: |
(...skipping 10 matching lines...) Expand all Loading... | |
145 RenderFrame* render_frame_; | 150 RenderFrame* render_frame_; |
146 // The routing ID of the associated RenderFrame. | 151 // The routing ID of the associated RenderFrame. |
147 int routing_id_; | 152 int routing_id_; |
148 | 153 |
149 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 154 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
150 }; | 155 }; |
151 | 156 |
152 } // namespace content | 157 } // namespace content |
153 | 158 |
154 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 159 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |