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

Side by Side Diff: content/browser/frame_host/cross_process_frame_connector.h

Issue 2122023002: Cross-process frames should be notified of device scale factor changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version of patch without second test. Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
11 #include "content/browser/renderer_host/event_with_latency_info.h" 11 #include "content/browser/renderer_host/event_with_latency_info.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/input/input_event_ack_state.h" 13 #include "content/common/input/input_event_ack_state.h"
14 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
15 15
16 namespace blink { 16 namespace blink {
17 class WebGestureEvent; 17 class WebGestureEvent;
18 class WebInputEvent; 18 class WebInputEvent;
19 struct WebScreenInfo;
20 } 19 }
21 20
22 namespace cc { 21 namespace cc {
23 class SurfaceId; 22 class SurfaceId;
24 struct SurfaceSequence; 23 struct SurfaceSequence;
25 } 24 }
26 25
27 namespace IPC { 26 namespace IPC {
28 class Message; 27 class Message;
29 } 28 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 86
88 void RenderProcessGone(); 87 void RenderProcessGone();
89 88
90 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, 89 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id,
91 const gfx::Size& frame_size, 90 const gfx::Size& frame_size,
92 float scale_factor, 91 float scale_factor,
93 const cc::SurfaceSequence& sequence); 92 const cc::SurfaceSequence& sequence);
94 93
95 gfx::Rect ChildFrameRect(); 94 gfx::Rect ChildFrameRect();
96 float device_scale_factor() const { return device_scale_factor_; } 95 float device_scale_factor() const { return device_scale_factor_; }
97 void GetScreenInfo(blink::WebScreenInfo* results);
98 void UpdateCursor(const WebCursor& cursor); 96 void UpdateCursor(const WebCursor& cursor);
99 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, 97 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point,
100 const cc::SurfaceId& surface_id); 98 const cc::SurfaceId& surface_id);
101 // TransformPointToLocalCoordSpace() can only transform points between 99 // TransformPointToLocalCoordSpace() can only transform points between
102 // surfaces where one is embedded (not necessarily directly) within the 100 // surfaces where one is embedded (not necessarily directly) within the
103 // other. For points that can be in sibling surfaces, they must first be 101 // other. For points that can be in sibling surfaces, they must first be
104 // converted to the root surface's coordinate space. 102 // converted to the root surface's coordinate space.
105 gfx::Point TransformPointToLocalCoordSpace( 103 gfx::Point TransformPointToLocalCoordSpace(
106 const gfx::Point& point, 104 const gfx::Point& point,
107 const cc::SurfaceId& original_surface, 105 const cc::SurfaceId& original_surface,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 gfx::Rect child_frame_rect_; 162 gfx::Rect child_frame_rect_;
165 float device_scale_factor_; 163 float device_scale_factor_;
166 164
167 bool is_scroll_bubbling_; 165 bool is_scroll_bubbling_;
168 }; 166 };
169 167
170 } // namespace content 168 } // namespace content
171 169
172 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 170 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
173 171
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/page_handler.cc ('k') | content/browser/frame_host/cross_process_frame_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698