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

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

Issue 476113004: Replace overdraw_bottom_height with top_controls_layout_height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // active RenderWidgets. 334 // active RenderWidgets.
335 void SetSwappedOut(bool is_swapped_out); 335 void SetSwappedOut(bool is_swapped_out);
336 336
337 void FlushPendingInputEventAck(); 337 void FlushPendingInputEventAck();
338 void DoDeferredClose(); 338 void DoDeferredClose();
339 void DoDeferredSetWindowRect(const blink::WebRect& pos); 339 void DoDeferredSetWindowRect(const blink::WebRect& pos);
340 340
341 // Resizes the render widget. 341 // Resizes the render widget.
342 void Resize(const gfx::Size& new_size, 342 void Resize(const gfx::Size& new_size,
343 const gfx::Size& physical_backing_size, 343 const gfx::Size& physical_backing_size,
344 float overdraw_bottom_height, 344 float top_controls_layout_height,
345 const gfx::Size& visible_viewport_size, 345 const gfx::Size& visible_viewport_size,
346 const gfx::Rect& resizer_rect, 346 const gfx::Rect& resizer_rect,
347 bool is_fullscreen, 347 bool is_fullscreen,
348 ResizeAck resize_ack); 348 ResizeAck resize_ack);
349 // Used to force the size of a window when running layout tests. 349 // Used to force the size of a window when running layout tests.
350 void ResizeSynchronously(const gfx::Rect& new_position); 350 void ResizeSynchronously(const gfx::Rect& new_position);
351 virtual void SetScreenMetricsEmulationParameters( 351 virtual void SetScreenMetricsEmulationParameters(
352 float device_scale_factor, 352 float device_scale_factor,
353 const gfx::Point& root_layer_offset, 353 const gfx::Point& root_layer_offset,
354 float root_layer_scale); 354 float root_layer_scale);
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // We store the current cursor object so we can avoid spamming SetCursor 565 // We store the current cursor object so we can avoid spamming SetCursor
566 // messages. 566 // messages.
567 WebCursor current_cursor_; 567 WebCursor current_cursor_;
568 568
569 // The size of the RenderWidget. 569 // The size of the RenderWidget.
570 gfx::Size size_; 570 gfx::Size size_;
571 571
572 // The size of the view's backing surface in non-DPI-adjusted pixels. 572 // The size of the view's backing surface in non-DPI-adjusted pixels.
573 gfx::Size physical_backing_size_; 573 gfx::Size physical_backing_size_;
574 574
575 // The height of the physical backing surface that is overdrawn opaquely in 575 // The amount that the viewport size given to Blink was shrunk by the URL-bar
576 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). 576 // (always 0 on platforms where URL-bar hiding isn't supported).
577 float overdraw_bottom_height_; 577 float top_controls_layout_height_;
578 578
579 // The size of the visible viewport in DPI-adjusted pixels. 579 // The size of the visible viewport in DPI-adjusted pixels.
580 gfx::Size visible_viewport_size_; 580 gfx::Size visible_viewport_size_;
581 581
582 // The area that must be reserved for drawing the resize corner. 582 // The area that must be reserved for drawing the resize corner.
583 gfx::Rect resizer_rect_; 583 gfx::Rect resizer_rect_;
584 584
585 // Flags for the next ViewHostMsg_UpdateRect message. 585 // Flags for the next ViewHostMsg_UpdateRect message.
586 int next_paint_flags_; 586 int next_paint_flags_;
587 587
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 ui::MenuSourceType context_menu_source_type_; 740 ui::MenuSourceType context_menu_source_type_;
741 bool has_host_context_menu_location_; 741 bool has_host_context_menu_location_;
742 gfx::Point host_context_menu_location_; 742 gfx::Point host_context_menu_location_;
743 743
744 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 744 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
745 }; 745 };
746 746
747 } // namespace content 747 } // namespace content
748 748
749 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 749 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698