| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_RENDERER_RENDER_WIDGET_H__ | 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H__ |
| 6 #define CHROME_RENDERER_RENDER_WIDGET_H__ | 6 #define CHROME_RENDERER_RENDER_WIDGET_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gfx/native_widget_types.h" | 10 #include "base/gfx/native_widget_types.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 void DoDeferredPaint(); | 107 void DoDeferredPaint(); |
| 108 void DoDeferredScroll(); | 108 void DoDeferredScroll(); |
| 109 | 109 |
| 110 // This method is called immediately after PaintRect but before the | 110 // This method is called immediately after PaintRect but before the |
| 111 // corresponding paint or scroll message is send to the widget host. | 111 // corresponding paint or scroll message is send to the widget host. |
| 112 virtual void DidPaint() {} | 112 virtual void DidPaint() {} |
| 113 | 113 |
| 114 // RenderWidget IPC message handlers | 114 // RenderWidget IPC message handlers |
| 115 void OnClose(); | 115 void OnClose(); |
| 116 void OnCreatingNewAck(gfx::NativeViewId parent); | 116 void OnCreatingNewAck(gfx::NativeViewId parent); |
| 117 void OnResize(const gfx::Size& new_size, const gfx::Rect& resizer_rect); | 117 virtual void OnResize(const gfx::Size& new_size, |
| 118 const gfx::Rect& resizer_rect); |
| 118 void OnWasHidden(); | 119 void OnWasHidden(); |
| 119 void OnWasRestored(bool needs_repainting); | 120 void OnWasRestored(bool needs_repainting); |
| 120 void OnPaintRectAck(); | 121 void OnPaintRectAck(); |
| 121 void OnScrollRectAck(); | 122 void OnScrollRectAck(); |
| 122 void OnHandleInputEvent(const IPC::Message& message); | 123 void OnHandleInputEvent(const IPC::Message& message); |
| 123 void OnMouseCaptureLost(); | 124 void OnMouseCaptureLost(); |
| 124 void OnSetFocus(bool enable); | 125 void OnSetFocus(bool enable); |
| 125 void OnImeSetInputMode(bool is_active); | 126 void OnImeSetInputMode(bool is_active); |
| 126 void OnImeSetComposition(int string_type, int cursor_position, | 127 void OnImeSetComposition(int string_type, int cursor_position, |
| 127 int target_start, int target_end, | 128 int target_start, int target_end, |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // Whether the window for this RenderWidget can be activated. | 255 // Whether the window for this RenderWidget can be activated. |
| 255 bool activatable_; | 256 bool activatable_; |
| 256 | 257 |
| 257 // Holds all the needed plugin window moves for a scroll. | 258 // Holds all the needed plugin window moves for a scroll. |
| 258 std::vector<WebPluginGeometry> plugin_window_moves_; | 259 std::vector<WebPluginGeometry> plugin_window_moves_; |
| 259 | 260 |
| 260 DISALLOW_EVIL_CONSTRUCTORS(RenderWidget); | 261 DISALLOW_EVIL_CONSTRUCTORS(RenderWidget); |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 #endif // CHROME_RENDERER_RENDER_WIDGET_H__ | 264 #endif // CHROME_RENDERER_RENDER_WIDGET_H__ |
| OLD | NEW |