| 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 virtual void DidChangePerformanceTiming() {} | 115 virtual void DidChangePerformanceTiming() {} |
| 116 | 116 |
| 117 // Notification when the renderer uses a particular code path during a page | 117 // Notification when the renderer uses a particular code path during a page |
| 118 // load. This is used for metrics collection. | 118 // load. This is used for metrics collection. |
| 119 virtual void DidObserveLoadingBehavior( | 119 virtual void DidObserveLoadingBehavior( |
| 120 blink::WebLoadingBehaviorFlag behavior) {} | 120 blink::WebLoadingBehaviorFlag behavior) {} |
| 121 | 121 |
| 122 // Called when the focused node has changed to |node|. | 122 // Called when the focused node has changed to |node|. |
| 123 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 123 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
| 124 | 124 |
| 125 // Called when accessibility is enabled or disabled. |
| 126 virtual void AccessibilityModeChanged() {} |
| 127 |
| 125 // IPC::Listener implementation. | 128 // IPC::Listener implementation. |
| 126 bool OnMessageReceived(const IPC::Message& message) override; | 129 bool OnMessageReceived(const IPC::Message& message) override; |
| 127 | 130 |
| 128 // IPC::Sender implementation. | 131 // IPC::Sender implementation. |
| 129 bool Send(IPC::Message* message) override; | 132 bool Send(IPC::Message* message) override; |
| 130 | 133 |
| 131 RenderFrame* render_frame() const; | 134 RenderFrame* render_frame() const; |
| 132 int routing_id() const { return routing_id_; } | 135 int routing_id() const { return routing_id_; } |
| 133 | 136 |
| 134 protected: | 137 protected: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 145 RenderFrame* render_frame_; | 148 RenderFrame* render_frame_; |
| 146 // The routing ID of the associated RenderFrame. | 149 // The routing ID of the associated RenderFrame. |
| 147 int routing_id_; | 150 int routing_id_; |
| 148 | 151 |
| 149 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 152 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
| 150 }; | 153 }; |
| 151 | 154 |
| 152 } // namespace content | 155 } // namespace content |
| 153 | 156 |
| 154 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 157 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| OLD | NEW |