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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
393 // Resizes the render widget. | 393 // Resizes the render widget. |
394 void Resize(const gfx::Size& new_size, | 394 void Resize(const gfx::Size& new_size, |
395 const gfx::Size& physical_backing_size, | 395 const gfx::Size& physical_backing_size, |
396 bool top_controls_shrink_blink_size, | 396 bool top_controls_shrink_blink_size, |
397 float top_controls_height, | 397 float top_controls_height, |
398 const gfx::Size& visible_viewport_size, | 398 const gfx::Size& visible_viewport_size, |
399 const gfx::Rect& resizer_rect, | 399 const gfx::Rect& resizer_rect, |
400 bool is_fullscreen, | 400 bool is_fullscreen, |
401 ResizeAck resize_ack); | 401 ResizeAck resize_ack); |
402 // Used to force the size of a window when running layout tests. | 402 // Used to force the size of a window when running layout tests. |
403 void ResizeSynchronously( | 403 void ResizeSynchronously(const gfx::Rect& new_position); |
Avi (use Gerrit)
2015/02/03 01:30:42
ditto
bokan
2015/02/03 03:13:17
Done.
| |
404 const gfx::Rect& new_position, | |
405 const gfx::Size& visible_viewport_size); | |
406 virtual void SetScreenMetricsEmulationParameters( | 404 virtual void SetScreenMetricsEmulationParameters( |
407 float device_scale_factor, | 405 float device_scale_factor, |
408 const gfx::Point& root_layer_offset, | 406 const gfx::Point& root_layer_offset, |
409 float root_layer_scale); | 407 float root_layer_scale); |
410 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 408 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
411 void SetExternalPopupOriginAdjustmentsForEmulation( | 409 void SetExternalPopupOriginAdjustmentsForEmulation( |
412 ExternalPopupMenu* popup, ScreenMetricsEmulator* emulator); | 410 ExternalPopupMenu* popup, ScreenMetricsEmulator* emulator); |
413 #endif | 411 #endif |
414 | 412 |
415 // RenderWidget IPC message handlers | 413 // RenderWidget IPC message handlers |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
813 ui::MenuSourceType context_menu_source_type_; | 811 ui::MenuSourceType context_menu_source_type_; |
814 bool has_host_context_menu_location_; | 812 bool has_host_context_menu_location_; |
815 gfx::Point host_context_menu_location_; | 813 gfx::Point host_context_menu_location_; |
816 | 814 |
817 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 815 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
818 }; | 816 }; |
819 | 817 |
820 } // namespace content | 818 } // namespace content |
821 | 819 |
822 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 820 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |