OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 int cursor_position, | 144 int cursor_position, |
145 int target_start, int target_end, | 145 int target_start, int target_end, |
146 const string16& ime_string); | 146 const string16& ime_string); |
147 void OnMsgRepaint(const gfx::Size& size_to_paint); | 147 void OnMsgRepaint(const gfx::Size& size_to_paint); |
148 void OnSetTextDirection(WebKit::WebTextDirection direction); | 148 void OnSetTextDirection(WebKit::WebTextDirection direction); |
149 | 149 |
150 // Override point to notify that a paint has happened. This fires after the | 150 // Override point to notify that a paint has happened. This fires after the |
151 // browser side has updated the screen for a newly painted region. | 151 // browser side has updated the screen for a newly painted region. |
152 virtual void DidPaint() {} | 152 virtual void DidPaint() {} |
153 | 153 |
| 154 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should |
| 155 // use this method so that we can properly inform the RenderThread of our |
| 156 // state. |
| 157 void SetHidden(bool hidden); |
| 158 |
154 // True if a PaintRect_ACK message is pending. | 159 // True if a PaintRect_ACK message is pending. |
155 bool paint_reply_pending() const { | 160 bool paint_reply_pending() const { |
156 return paint_reply_pending_; | 161 return paint_reply_pending_; |
157 } | 162 } |
158 | 163 |
159 // True if a ScrollRect_ACK message is pending. | 164 // True if a ScrollRect_ACK message is pending. |
160 bool scroll_reply_pending() const { | 165 bool scroll_reply_pending() const { |
161 return current_scroll_buf_ != NULL; | 166 return current_scroll_buf_ != NULL; |
162 } | 167 } |
163 | 168 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 // we track the pending size temporarily. | 305 // we track the pending size temporarily. |
301 int pending_window_rect_count_; | 306 int pending_window_rect_count_; |
302 WebKit::WebRect pending_window_rect_; | 307 WebKit::WebRect pending_window_rect_; |
303 | 308 |
304 scoped_ptr<ViewHostMsg_ShowPopup_Params> popup_params_; | 309 scoped_ptr<ViewHostMsg_ShowPopup_Params> popup_params_; |
305 | 310 |
306 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 311 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
307 }; | 312 }; |
308 | 313 |
309 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ | 314 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |