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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 // active RenderWidgets. | 373 // active RenderWidgets. |
374 void SetSwappedOut(bool is_swapped_out); | 374 void SetSwappedOut(bool is_swapped_out); |
375 | 375 |
376 // Allows the process to exit once the unload handler has finished, if there | 376 // Allows the process to exit once the unload handler has finished, if there |
377 // are no other active RenderWidgets. | 377 // are no other active RenderWidgets. |
378 void WasSwappedOut(); | 378 void WasSwappedOut(); |
379 | 379 |
380 void FlushPendingInputEventAck(); | 380 void FlushPendingInputEventAck(); |
381 void DoDeferredClose(); | 381 void DoDeferredClose(); |
382 void DoDeferredSetWindowRect(const blink::WebRect& pos); | 382 void DoDeferredSetWindowRect(const blink::WebRect& pos); |
| 383 void NotifyOnClose(); |
383 | 384 |
384 // Resizes the render widget. | 385 // Resizes the render widget. |
385 void Resize(const gfx::Size& new_size, | 386 void Resize(const gfx::Size& new_size, |
386 const gfx::Size& physical_backing_size, | 387 const gfx::Size& physical_backing_size, |
387 bool top_controls_shrink_blink_size, | 388 bool top_controls_shrink_blink_size, |
388 float top_controls_height, | 389 float top_controls_height, |
389 const gfx::Size& visible_viewport_size, | 390 const gfx::Size& visible_viewport_size, |
390 const gfx::Rect& resizer_rect, | 391 const gfx::Rect& resizer_rect, |
391 bool is_fullscreen, | 392 bool is_fullscreen, |
392 ResizeAck resize_ack); | 393 ResizeAck resize_ack); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 ui::MenuSourceType context_menu_source_type_; | 803 ui::MenuSourceType context_menu_source_type_; |
803 bool has_host_context_menu_location_; | 804 bool has_host_context_menu_location_; |
804 gfx::Point host_context_menu_location_; | 805 gfx::Point host_context_menu_location_; |
805 | 806 |
806 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 807 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
807 }; | 808 }; |
808 | 809 |
809 } // namespace content | 810 } // namespace content |
810 | 811 |
811 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 812 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |