Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: content/renderer/render_widget.h

Issue 894193003: ResizeSynchronously should resize the visible viewport as well. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed variable names Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 SetWindowRectSynchronously(const gfx::Rect& new_window_rect);
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 611
614 // Set to the ID of the view that initiated creating this view, if any. When 612 // Set to the ID of the view that initiated creating this view, if any. When
615 // the view was initiated by the browser (the common case), this will be 613 // the view was initiated by the browser (the common case), this will be
616 // MSG_ROUTING_NONE. This is used in determining ownership when opening 614 // MSG_ROUTING_NONE. This is used in determining ownership when opening
617 // child tabs. See RenderWidget::createWebViewWithRequest. 615 // child tabs. See RenderWidget::createWebViewWithRequest.
618 // 616 //
619 // This ID may refer to an invalid view if that view is closed before this 617 // This ID may refer to an invalid view if that view is closed before this
620 // view is. 618 // view is.
621 int32 opener_id_; 619 int32 opener_id_;
622 620
623 // The position where this view should be initially shown. 621 // The rect where this view should be initially shown.
624 gfx::Rect initial_pos_; 622 gfx::Rect initial_rect_;
625 623
626 bool init_complete_; 624 bool init_complete_;
627 625
628 // We store the current cursor object so we can avoid spamming SetCursor 626 // We store the current cursor object so we can avoid spamming SetCursor
629 // messages. 627 // messages.
630 WebCursor current_cursor_; 628 WebCursor current_cursor_;
631 629
632 // The size of the RenderWidget. 630 // The size of the RenderWidget.
633 gfx::Size size_; 631 gfx::Size size_;
634 632
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698