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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2928643003: Propagate auto-resize viewport values to OOPIF processes (Closed)
Patch Set: Created 3 years, 6 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
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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 // RenderWidgetHostDelegate -------------------------------------------------- 661 // RenderWidgetHostDelegate --------------------------------------------------
662 662
663 void RenderWidgetCreated(RenderWidgetHostImpl* render_widget_host) override; 663 void RenderWidgetCreated(RenderWidgetHostImpl* render_widget_host) override;
664 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; 664 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override;
665 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override; 665 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override;
666 void RenderWidgetLostFocus(RenderWidgetHostImpl* render_widget_host) override; 666 void RenderWidgetLostFocus(RenderWidgetHostImpl* render_widget_host) override;
667 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, 667 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host,
668 bool width_changed) override; 668 bool width_changed) override;
669 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, 669 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host,
670 const gfx::Size& new_size) override; 670 const gfx::Size& new_size) override;
671 gfx::Size GetAutoResizeSize() override;
672 void ResetAutoResizeSize() override;
671 void ScreenInfoChanged() override; 673 void ScreenInfoChanged() override;
672 void UpdateDeviceScaleFactor(double device_scale_factor) override; 674 void UpdateDeviceScaleFactor(double device_scale_factor) override;
673 void GetScreenInfo(ScreenInfo* screen_info) override; 675 void GetScreenInfo(ScreenInfo* screen_info) override;
674 KeyboardEventProcessingResult PreHandleKeyboardEvent( 676 KeyboardEventProcessingResult PreHandleKeyboardEvent(
675 const NativeWebKeyboardEvent& event) override; 677 const NativeWebKeyboardEvent& event) override;
676 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; 678 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override;
677 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override; 679 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override;
678 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override; 680 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override;
679 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override; 681 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override;
680 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager() 682 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager()
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 // Used to correctly handle integer zooming through a smooth scroll device. 1441 // Used to correctly handle integer zooming through a smooth scroll device.
1440 float zoom_scroll_remainder_; 1442 float zoom_scroll_remainder_;
1441 1443
1442 // The intrinsic size of the page. 1444 // The intrinsic size of the page.
1443 gfx::Size preferred_size_; 1445 gfx::Size preferred_size_;
1444 1446
1445 // The preferred size for content screen capture. When |capturer_count_| > 0, 1447 // The preferred size for content screen capture. When |capturer_count_| > 0,
1446 // this overrides |preferred_size_|. 1448 // this overrides |preferred_size_|.
1447 gfx::Size preferred_size_for_capture_; 1449 gfx::Size preferred_size_for_capture_;
1448 1450
1451 // Size set by a top-level frame with auto-resize enabled. This is needed by
1452 // out-of-process iframes for their visible viewport size.
1453 gfx::Size auto_resize_size_;
1454
1449 #if defined(OS_ANDROID) 1455 #if defined(OS_ANDROID)
1450 // Date time chooser opened by this tab. 1456 // Date time chooser opened by this tab.
1451 // Only used in Android since all other platforms use a multi field UI. 1457 // Only used in Android since all other platforms use a multi field UI.
1452 std::unique_ptr<DateTimeChooserAndroid> date_time_chooser_; 1458 std::unique_ptr<DateTimeChooserAndroid> date_time_chooser_;
1453 #endif 1459 #endif
1454 1460
1455 // Holds information about a current color chooser dialog, if one is visible. 1461 // Holds information about a current color chooser dialog, if one is visible.
1456 struct ColorChooserInfo { 1462 struct ColorChooserInfo {
1457 ColorChooserInfo(int render_process_id, 1463 ColorChooserInfo(int render_process_id,
1458 int render_frame_id, 1464 int render_frame_id,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 // Adds/removes a callback called on creation of each new WebContents. 1628 // Adds/removes a callback called on creation of each new WebContents.
1623 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1629 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1624 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1630 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1625 1631
1626 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); 1632 DISALLOW_COPY_AND_ASSIGN(FriendWrapper);
1627 }; 1633 };
1628 1634
1629 } // namespace content 1635 } // namespace content
1630 1636
1631 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1637 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698