OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 friend class RenderFrameImplTest; | 699 friend class RenderFrameImplTest; |
700 friend class RenderFrameObserver; | 700 friend class RenderFrameObserver; |
701 friend class RenderAccessibilityImplTest; | 701 friend class RenderAccessibilityImplTest; |
702 friend class TestRenderFrame; | 702 friend class TestRenderFrame; |
703 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 703 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
704 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 704 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
705 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 705 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
706 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 706 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
707 FRIEND_TEST_ALL_PREFIXES(RenderAccessibilityImplTest, | 707 FRIEND_TEST_ALL_PREFIXES(RenderAccessibilityImplTest, |
708 AccessibilityMessagesQueueWhileSwappedOut); | 708 AccessibilityMessagesQueueWhileSwappedOut); |
| 709 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest, ZoomLimit); |
709 | 710 |
710 // A wrapper class used as the callback for JavaScript executed | 711 // A wrapper class used as the callback for JavaScript executed |
711 // in an isolated world. | 712 // in an isolated world. |
712 class JavaScriptIsolatedWorldRequest | 713 class JavaScriptIsolatedWorldRequest |
713 : public blink::WebScriptExecutionCallback { | 714 : public blink::WebScriptExecutionCallback { |
714 public: | 715 public: |
715 JavaScriptIsolatedWorldRequest( | 716 JavaScriptIsolatedWorldRequest( |
716 int id, | 717 int id, |
717 bool notify_result, | 718 bool notify_result, |
718 int routing_id, | 719 int routing_id, |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 // Sends a reply to the current find operation handling if it was a | 1032 // Sends a reply to the current find operation handling if it was a |
1032 // synchronous find request. | 1033 // synchronous find request. |
1033 void SendFindReply(int request_id, | 1034 void SendFindReply(int request_id, |
1034 int match_count, | 1035 int match_count, |
1035 int ordinal, | 1036 int ordinal, |
1036 const blink::WebRect& selection_rect, | 1037 const blink::WebRect& selection_rect, |
1037 bool final_status_update); | 1038 bool final_status_update); |
1038 | 1039 |
1039 void InitializeBlameContext(RenderFrameImpl* parent_frame); | 1040 void InitializeBlameContext(RenderFrameImpl* parent_frame); |
1040 | 1041 |
| 1042 void OnGotZoomLevel(const GURL& url, double zoom_level); |
| 1043 |
1041 // Stores the WebLocalFrame we are associated with. This is null from the | 1044 // Stores the WebLocalFrame we are associated with. This is null from the |
1042 // constructor until BindToWebFrame is called, and it is null after | 1045 // constructor until BindToWebFrame is called, and it is null after |
1043 // frameDetached is called until destruction (which is asynchronous in the | 1046 // frameDetached is called until destruction (which is asynchronous in the |
1044 // case of the main frame, but not subframes). | 1047 // case of the main frame, but not subframes). |
1045 blink::WebLocalFrame* frame_; | 1048 blink::WebLocalFrame* frame_; |
1046 | 1049 |
1047 // Boolean value indicating whether this RenderFrameImpl object is for the | 1050 // Boolean value indicating whether this RenderFrameImpl object is for the |
1048 // main frame or not. It remains accurate during destruction, even when | 1051 // main frame or not. It remains accurate during destruction, even when |
1049 // |frame_| has been invalidated. | 1052 // |frame_| has been invalidated. |
1050 bool is_main_frame_; | 1053 bool is_main_frame_; |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 AccessibilityMode accessibility_mode_; | 1223 AccessibilityMode accessibility_mode_; |
1221 | 1224 |
1222 // Only valid if |accessibility_mode_| is anything other than | 1225 // Only valid if |accessibility_mode_| is anything other than |
1223 // AccessibilityModeOff. | 1226 // AccessibilityModeOff. |
1224 RenderAccessibilityImpl* render_accessibility_; | 1227 RenderAccessibilityImpl* render_accessibility_; |
1225 | 1228 |
1226 std::unique_ptr<blink::WebAppBannerClient> app_banner_client_; | 1229 std::unique_ptr<blink::WebAppBannerClient> app_banner_client_; |
1227 | 1230 |
1228 std::unique_ptr<blink::WebBluetooth> bluetooth_; | 1231 std::unique_ptr<blink::WebBluetooth> bluetooth_; |
1229 | 1232 |
| 1233 HostZoomLevels host_zoom_levels_; |
| 1234 |
1230 // Manages play, pause notifications for WebMediaPlayer implementations; its | 1235 // Manages play, pause notifications for WebMediaPlayer implementations; its |
1231 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. | 1236 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. |
1232 media::RendererWebMediaPlayerDelegate* media_player_delegate_; | 1237 media::RendererWebMediaPlayerDelegate* media_player_delegate_; |
1233 | 1238 |
1234 // Whether or not this RenderFrame is using Lo-Fi mode. | 1239 // Whether or not this RenderFrame is using Lo-Fi mode. |
1235 bool is_using_lofi_; | 1240 bool is_using_lofi_; |
1236 | 1241 |
1237 // Effective connection type when the document of this frame was fetched. | 1242 // Effective connection type when the document of this frame was fetched. |
1238 blink::WebEffectiveConnectionType effective_connection_type_; | 1243 blink::WebEffectiveConnectionType effective_connection_type_; |
1239 | 1244 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 mojom::FrameHostPtr frame_host_; | 1283 mojom::FrameHostPtr frame_host_; |
1279 | 1284 |
1280 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1285 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1281 | 1286 |
1282 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1287 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1283 }; | 1288 }; |
1284 | 1289 |
1285 } // namespace content | 1290 } // namespace content |
1286 | 1291 |
1287 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1292 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |