Chromium Code Reviews| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 111 virtual void DidChangePerformanceTiming() {} | 111 virtual void DidChangePerformanceTiming() {} |
| 112 | 112 |
| 113 // Notification when the renderer uses a particular code path during a page | 113 // Notification when the renderer uses a particular code path during a page |
| 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 an element has gained focus inside the frame and after all the | |
| 122 // required animations (if any) have finished. | |
|
Charlie Reis
2017/04/05 20:13:44
nit: Fix double space before "have"
EhsanK
2017/04/06 21:31:27
Done. Thanks!
| |
| 123 virtual void DidCompleteFocusChangeInFrame() {} | |
| 124 | |
| 125 // Called when a gesture tap or mouse down occurs inside |node| in this frame. | |
| 126 virtual void DidCompleteLeftMouseDownOrGestureTapInNode( | |
|
Charlie Reis
2017/04/05 20:13:44
This name is a bit awkward, but I'm ok with it if
EhsanK
2017/04/06 21:31:27
Yes I was not sure how it should be named. In real
Charlie Reis
2017/04/10 06:22:33
Ah, my mistake! I was reading it wrong.
| |
| 127 const blink::WebNode& node) {} | |
| 128 | |
| 121 // Called when accessibility is enabled or disabled. | 129 // Called when accessibility is enabled or disabled. |
| 122 virtual void AccessibilityModeChanged() {} | 130 virtual void AccessibilityModeChanged() {} |
| 123 | 131 |
| 124 // Called when script in the page calls window.print(). | 132 // Called when script in the page calls window.print(). |
| 125 virtual void ScriptedPrint(bool user_initiated) {} | 133 virtual void ScriptedPrint(bool user_initiated) {} |
| 126 | 134 |
| 127 // IPC::Listener implementation. | 135 // IPC::Listener implementation. |
| 128 bool OnMessageReceived(const IPC::Message& message) override; | 136 bool OnMessageReceived(const IPC::Message& message) override; |
| 129 | 137 |
| 130 // IPC::Sender implementation. | 138 // IPC::Sender implementation. |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 147 RenderFrame* render_frame_; | 155 RenderFrame* render_frame_; |
| 148 // The routing ID of the associated RenderFrame. | 156 // The routing ID of the associated RenderFrame. |
| 149 int routing_id_; | 157 int routing_id_; |
| 150 | 158 |
| 151 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 159 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
| 152 }; | 160 }; |
| 153 | 161 |
| 154 } // namespace content | 162 } // namespace content |
| 155 | 163 |
| 156 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 164 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| OLD | NEW |