| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 void FinishHandlingImeEvent(); | 221 void FinishHandlingImeEvent(); |
| 222 | 222 |
| 223 // Returns whether we currently should handle an IME event. | 223 // Returns whether we currently should handle an IME event. |
| 224 bool ShouldHandleImeEvent(); | 224 bool ShouldHandleImeEvent(); |
| 225 | 225 |
| 226 virtual void InstrumentWillBeginFrame(int frame_id) {} | 226 virtual void InstrumentWillBeginFrame(int frame_id) {} |
| 227 virtual void InstrumentDidBeginFrame() {} | 227 virtual void InstrumentDidBeginFrame() {} |
| 228 virtual void InstrumentDidCancelFrame() {} | 228 virtual void InstrumentDidCancelFrame() {} |
| 229 virtual void InstrumentWillComposite() {} | 229 virtual void InstrumentWillComposite() {} |
| 230 | 230 |
| 231 // Called by the compositor when page scale animation completed. |
| 232 virtual void DidCompletePageScaleAnimation() {} |
| 233 |
| 231 // When paused in debugger, we send ack for mouse event early. This ensures | 234 // When paused in debugger, we send ack for mouse event early. This ensures |
| 232 // that we continue receiving mouse moves and pass them to debugger. Returns | 235 // that we continue receiving mouse moves and pass them to debugger. Returns |
| 233 // whether we are paused in mouse move event and have sent the ack. | 236 // whether we are paused in mouse move event and have sent the ack. |
| 234 bool SendAckForMouseMoveFromDebugger(); | 237 bool SendAckForMouseMoveFromDebugger(); |
| 235 | 238 |
| 236 // When resumed from pause in debugger while handling mouse move, | 239 // When resumed from pause in debugger while handling mouse move, |
| 237 // we should not send an extra ack (see SendAckForMouseMoveFromDebugger). | 240 // we should not send an extra ack (see SendAckForMouseMoveFromDebugger). |
| 238 void IgnoreAckForMouseMoveFromDebugger(); | 241 void IgnoreAckForMouseMoveFromDebugger(); |
| 239 | 242 |
| 240 // ScreenMetricsEmulator class manages screen emulation inside a render | 243 // ScreenMetricsEmulator class manages screen emulation inside a render |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 ui::MenuSourceType context_menu_source_type_; | 763 ui::MenuSourceType context_menu_source_type_; |
| 761 bool has_host_context_menu_location_; | 764 bool has_host_context_menu_location_; |
| 762 gfx::Point host_context_menu_location_; | 765 gfx::Point host_context_menu_location_; |
| 763 | 766 |
| 764 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 767 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 765 }; | 768 }; |
| 766 | 769 |
| 767 } // namespace content | 770 } // namespace content |
| 768 | 771 |
| 769 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 772 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |