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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 void SetPendingWindowRect(const WebKit::WebRect& r); | 234 void SetPendingWindowRect(const WebKit::WebRect& r); |
235 | 235 |
236 // Called by OnHandleInputEvent() to notify subclasses that a key event was | 236 // Called by OnHandleInputEvent() to notify subclasses that a key event was |
237 // just handled. | 237 // just handled. |
238 virtual void DidHandleKeyEvent() {} | 238 virtual void DidHandleKeyEvent() {} |
239 | 239 |
240 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was | 240 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was |
241 // just handled. | 241 // just handled. |
242 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 242 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
243 | 243 |
| 244 // Used to determine wheter does DoDeferredUpdate() |
| 245 // The web page might not be loaded enough to paint. |
| 246 virtual bool IsReadyToPaint() const { return true; } |
| 247 |
244 // Routing ID that allows us to communicate to the parent browser process | 248 // Routing ID that allows us to communicate to the parent browser process |
245 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. | 249 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. |
246 int32 routing_id_; | 250 int32 routing_id_; |
247 | 251 |
248 // We are responsible for destroying this object via its Close method. | 252 // We are responsible for destroying this object via its Close method. |
249 WebKit::WebWidget* webwidget_; | 253 WebKit::WebWidget* webwidget_; |
250 | 254 |
251 // Set to the ID of the view that initiated creating this view, if any. When | 255 // Set to the ID of the view that initiated creating this view, if any. When |
252 // the view was initiated by the browser (the common case), this will be | 256 // the view was initiated by the browser (the common case), this will be |
253 // MSG_ROUTING_NONE. This is used in determining ownership when opening | 257 // MSG_ROUTING_NONE. This is used in determining ownership when opening |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 // Indicates if the next sequence of Char events should be suppressed or not. | 346 // Indicates if the next sequence of Char events should be suppressed or not. |
343 bool suppress_next_char_events_; | 347 bool suppress_next_char_events_; |
344 | 348 |
345 // Set to true if painting to the window is handled by the GPU process. | 349 // Set to true if painting to the window is handled by the GPU process. |
346 bool is_gpu_rendering_active_; | 350 bool is_gpu_rendering_active_; |
347 | 351 |
348 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 352 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
349 }; | 353 }; |
350 | 354 |
351 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ | 355 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |