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