| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 17 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
| 18 #include "cc/debug/rendering_stats_instrumentation.h" | 19 #include "cc/debug/rendering_stats_instrumentation.h" |
| 19 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
| 20 #include "content/common/cursors/webcursor.h" | 21 #include "content/common/cursors/webcursor.h" |
| 21 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 22 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 22 #include "content/common/input/synthetic_gesture_params.h" | 23 #include "content/common/input/synthetic_gesture_params.h" |
| 24 #include "content/public/common/widget_visible_state.h" |
| 23 #include "ipc/ipc_listener.h" | 25 #include "ipc/ipc_listener.h" |
| 24 #include "ipc/ipc_sender.h" | 26 #include "ipc/ipc_sender.h" |
| 25 #include "third_party/WebKit/public/platform/WebRect.h" | 27 #include "third_party/WebKit/public/platform/WebRect.h" |
| 26 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 28 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 27 #include "third_party/WebKit/public/web/WebPopupType.h" | 29 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 28 #include "third_party/WebKit/public/web/WebTextDirection.h" | 30 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 29 #include "third_party/WebKit/public/web/WebTextInputInfo.h" | 31 #include "third_party/WebKit/public/web/WebTextInputInfo.h" |
| 30 #include "third_party/WebKit/public/web/WebTouchAction.h" | 32 #include "third_party/WebKit/public/web/WebTouchAction.h" |
| 31 #include "third_party/WebKit/public/web/WebWidget.h" | 33 #include "third_party/WebKit/public/web/WebWidget.h" |
| 32 #include "third_party/WebKit/public/web/WebWidgetClient.h" | 34 #include "third_party/WebKit/public/web/WebWidgetClient.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void QueueSyntheticGesture( | 177 void QueueSyntheticGesture( |
| 176 scoped_ptr<SyntheticGestureParams> gesture_params, | 178 scoped_ptr<SyntheticGestureParams> gesture_params, |
| 177 const SyntheticGestureCompletionCallback& callback); | 179 const SyntheticGestureCompletionCallback& callback); |
| 178 | 180 |
| 179 // Close the underlying WebWidget. | 181 // Close the underlying WebWidget. |
| 180 virtual void Close(); | 182 virtual void Close(); |
| 181 | 183 |
| 182 // Notifies about a compositor frame commit operation having finished. | 184 // Notifies about a compositor frame commit operation having finished. |
| 183 virtual void DidCommitCompositorFrame(); | 185 virtual void DidCommitCompositorFrame(); |
| 184 | 186 |
| 187 // FIXME: docs |
| 188 void QueueMessage(IPC::Message* msg); |
| 189 |
| 185 // Handle common setup/teardown for handling IME events. | 190 // Handle common setup/teardown for handling IME events. |
| 186 void StartHandlingImeEvent(); | 191 void StartHandlingImeEvent(); |
| 187 void FinishHandlingImeEvent(); | 192 void FinishHandlingImeEvent(); |
| 188 | 193 |
| 189 // Returns whether we currently should handle an IME event. | 194 // Returns whether we currently should handle an IME event. |
| 190 bool ShouldHandleImeEvent(); | 195 bool ShouldHandleImeEvent(); |
| 191 | 196 |
| 192 virtual void InstrumentWillBeginFrame(int frame_id) {} | 197 virtual void InstrumentWillBeginFrame(int frame_id) {} |
| 193 virtual void InstrumentDidBeginFrame() {} | 198 virtual void InstrumentDidBeginFrame() {} |
| 194 virtual void InstrumentDidCancelFrame() {} | 199 virtual void InstrumentDidCancelFrame() {} |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 | 723 |
| 719 ui::MenuSourceType context_menu_source_type_; | 724 ui::MenuSourceType context_menu_source_type_; |
| 720 gfx::Point touch_editing_context_menu_location_; | 725 gfx::Point touch_editing_context_menu_location_; |
| 721 | 726 |
| 722 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 727 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 723 }; | 728 }; |
| 724 | 729 |
| 725 } // namespace content | 730 } // namespace content |
| 726 | 731 |
| 727 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 732 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |