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

Side by Side Diff: android_webview/browser/renderer_host/aw_render_view_host_ext.h

Issue 1408393003: Propagate pageScaleFactor to GuestViews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant initialization of AwLayoutSizer's page scale factor in tests Created 5 years, 1 month 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 ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
7 7
8 #include "content/public/browser/web_contents_observer.h" 8 #include "content/public/browser/web_contents_observer.h"
9 9
10 #include "android_webview/common/aw_hit_test_data.h" 10 #include "android_webview/common/aw_hit_test_data.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 void SmoothScroll(int target_x, int target_y, long duration_ms); 83 void SmoothScroll(int target_x, int target_y, long duration_ms);
84 84
85 private: 85 private:
86 // content::WebContentsObserver implementation. 86 // content::WebContentsObserver implementation.
87 void RenderViewCreated(content::RenderViewHost* view_host) override; 87 void RenderViewCreated(content::RenderViewHost* view_host) override;
88 void RenderProcessGone(base::TerminationStatus status) override; 88 void RenderProcessGone(base::TerminationStatus status) override;
89 void DidNavigateAnyFrame(content::RenderFrameHost* render_frame_host, 89 void DidNavigateAnyFrame(content::RenderFrameHost* render_frame_host,
90 const content::LoadCommittedDetails& details, 90 const content::LoadCommittedDetails& details,
91 const content::FrameNavigateParams& params) override; 91 const content::FrameNavigateParams& params) override;
92 void OnPageScaleFactorChanged(float page_scale_factor) override;
92 bool OnMessageReceived(const IPC::Message& message) override; 93 bool OnMessageReceived(const IPC::Message& message) override;
93 94
94 void OnDocumentHasImagesResponse(int msg_id, bool has_images); 95 void OnDocumentHasImagesResponse(int msg_id, bool has_images);
95 void OnUpdateHitTestData(const AwHitTestData& hit_test_data); 96 void OnUpdateHitTestData(const AwHitTestData& hit_test_data);
96 void OnPageScaleFactorChanged(float page_scale_factor);
97 void OnContentsSizeChanged(const gfx::Size& contents_size); 97 void OnContentsSizeChanged(const gfx::Size& contents_size);
98 98
99 bool IsRenderViewReady() const; 99 bool IsRenderViewReady() const;
100 100
101 AwRenderViewHostExtClient* client_; 101 AwRenderViewHostExtClient* client_;
102 102
103 SkColor background_color_; 103 SkColor background_color_;
104 104
105 std::map<int, DocumentHasImagesResult> pending_document_has_images_requests_; 105 std::map<int, DocumentHasImagesResult> pending_document_has_images_requests_;
106 106
107 // Master copy of hit test data on the browser side. This is updated 107 // Master copy of hit test data on the browser side. This is updated
108 // as a result of DoHitTest called explicitly or when the FocusedNodeChanged 108 // as a result of DoHitTest called explicitly or when the FocusedNodeChanged
109 // is called in AwRenderViewExt. 109 // is called in AwRenderViewExt.
110 AwHitTestData last_hit_test_data_; 110 AwHitTestData last_hit_test_data_;
111 111
112 bool has_new_hit_test_data_; 112 bool has_new_hit_test_data_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); 114 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt);
115 }; 115 };
116 116
117 } // namespace android_webview 117 } // namespace android_webview
118 118
119 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 119 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698