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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 327 |
328 // Finishes creation of a pending view started with Init. | 328 // Finishes creation of a pending view started with Init. |
329 void CompleteInit(); | 329 void CompleteInit(); |
330 | 330 |
331 // Sets whether this RenderWidget has been swapped out to be displayed by | 331 // Sets whether this RenderWidget has been swapped out to be displayed by |
332 // a RenderWidget in a different process. If so, no new IPC messages will be | 332 // a RenderWidget in a different process. If so, no new IPC messages will be |
333 // sent (only ACKs) and the process is free to exit when there are no other | 333 // sent (only ACKs) and the process is free to exit when there are no other |
334 // active RenderWidgets. | 334 // active RenderWidgets. |
335 void SetSwappedOut(bool is_swapped_out); | 335 void SetSwappedOut(bool is_swapped_out); |
336 | 336 |
| 337 // Allows the process to exit once the unload handler has finished, if there |
| 338 // are no other active RenderWidgets. |
| 339 void WasSwappedOut(); |
| 340 |
337 void FlushPendingInputEventAck(); | 341 void FlushPendingInputEventAck(); |
338 void DoDeferredClose(); | 342 void DoDeferredClose(); |
339 void DoDeferredSetWindowRect(const blink::WebRect& pos); | 343 void DoDeferredSetWindowRect(const blink::WebRect& pos); |
340 | 344 |
341 // Resizes the render widget. | 345 // Resizes the render widget. |
342 void Resize(const gfx::Size& new_size, | 346 void Resize(const gfx::Size& new_size, |
343 const gfx::Size& physical_backing_size, | 347 const gfx::Size& physical_backing_size, |
344 float overdraw_bottom_height, | 348 float overdraw_bottom_height, |
345 const gfx::Size& visible_viewport_size, | 349 const gfx::Size& visible_viewport_size, |
346 const gfx::Rect& resizer_rect, | 350 const gfx::Rect& resizer_rect, |
(...skipping 17 matching lines...) Expand all Loading... |
364 void OnCursorVisibilityChange(bool is_visible); | 368 void OnCursorVisibilityChange(bool is_visible); |
365 void OnMouseCaptureLost(); | 369 void OnMouseCaptureLost(); |
366 virtual void OnSetFocus(bool enable); | 370 virtual void OnSetFocus(bool enable); |
367 virtual void OnClose(); | 371 virtual void OnClose(); |
368 void OnCreatingNewAck(); | 372 void OnCreatingNewAck(); |
369 virtual void OnResize(const ViewMsg_Resize_Params& params); | 373 virtual void OnResize(const ViewMsg_Resize_Params& params); |
370 void OnChangeResizeRect(const gfx::Rect& resizer_rect); | 374 void OnChangeResizeRect(const gfx::Rect& resizer_rect); |
371 virtual void OnWasHidden(); | 375 virtual void OnWasHidden(); |
372 virtual void OnWasShown(bool needs_repainting, | 376 virtual void OnWasShown(bool needs_repainting, |
373 const ui::LatencyInfo& latency_info); | 377 const ui::LatencyInfo& latency_info); |
374 virtual void OnWasSwappedOut(); | |
375 void OnCreateVideoAck(int32 video_id); | 378 void OnCreateVideoAck(int32 video_id); |
376 void OnUpdateVideoAck(int32 video_id); | 379 void OnUpdateVideoAck(int32 video_id); |
377 void OnRequestMoveAck(); | 380 void OnRequestMoveAck(); |
378 void OnSetInputMethodActive(bool is_active); | 381 void OnSetInputMethodActive(bool is_active); |
379 void OnCandidateWindowShown(); | 382 void OnCandidateWindowShown(); |
380 void OnCandidateWindowUpdated(); | 383 void OnCandidateWindowUpdated(); |
381 void OnCandidateWindowHidden(); | 384 void OnCandidateWindowHidden(); |
382 virtual void OnImeSetComposition( | 385 virtual void OnImeSetComposition( |
383 const base::string16& text, | 386 const base::string16& text, |
384 const std::vector<blink::WebCompositionUnderline>& underlines, | 387 const std::vector<blink::WebCompositionUnderline>& underlines, |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 ui::MenuSourceType context_menu_source_type_; | 743 ui::MenuSourceType context_menu_source_type_; |
741 bool has_host_context_menu_location_; | 744 bool has_host_context_menu_location_; |
742 gfx::Point host_context_menu_location_; | 745 gfx::Point host_context_menu_location_; |
743 | 746 |
744 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 747 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
745 }; | 748 }; |
746 | 749 |
747 } // namespace content | 750 } // namespace content |
748 | 751 |
749 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 752 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |