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

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

Issue 1406103005: Preserve page-level focus for subframe cross-process navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@focus-page
Patch Set: Address Charlie's comments Created 5 years, 2 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
« no previous file with comments | « no previous file | content/browser/frame_host/cross_process_frame_connector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 scoped_ptr<cc::CompositorFrame> frame); 92 scoped_ptr<cc::CompositorFrame> frame);
93 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, 93 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id,
94 const gfx::Size& frame_size, 94 const gfx::Size& frame_size,
95 float scale_factor, 95 float scale_factor,
96 const cc::SurfaceSequence& sequence); 96 const cc::SurfaceSequence& sequence);
97 97
98 gfx::Rect ChildFrameRect(); 98 gfx::Rect ChildFrameRect();
99 float device_scale_factor() const { return device_scale_factor_; } 99 float device_scale_factor() const { return device_scale_factor_; }
100 void GetScreenInfo(blink::WebScreenInfo* results); 100 void GetScreenInfo(blink::WebScreenInfo* results);
101 void UpdateCursor(const WebCursor& cursor); 101 void UpdateCursor(const WebCursor& cursor);
102 bool HasFocus();
Charlie Reis 2015/10/27 20:34:32 nit: Add comment.
alexmos 2015/10/29 16:42:42 Done.
102 103
103 private: 104 private:
104 // Handlers for messages received from the parent frame. 105 // Handlers for messages received from the parent frame.
105 void OnCompositorFrameSwappedACK( 106 void OnCompositorFrameSwappedACK(
106 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); 107 const FrameHostMsg_CompositorFrameSwappedACK_Params& params);
107 void OnReclaimCompositorResources( 108 void OnReclaimCompositorResources(
108 const FrameHostMsg_ReclaimCompositorResources_Params& params); 109 const FrameHostMsg_ReclaimCompositorResources_Params& params);
109 void OnForwardInputEvent(const blink::WebInputEvent* event); 110 void OnForwardInputEvent(const blink::WebInputEvent* event);
110 void OnFrameRectChanged(const gfx::Rect& frame_rect); 111 void OnFrameRectChanged(const gfx::Rect& frame_rect);
111 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); 112 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor);
(...skipping 15 matching lines...) Expand all
127 RenderWidgetHostViewChildFrame* view_; 128 RenderWidgetHostViewChildFrame* view_;
128 129
129 gfx::Rect child_frame_rect_; 130 gfx::Rect child_frame_rect_;
130 float device_scale_factor_; 131 float device_scale_factor_;
131 }; 132 };
132 133
133 } // namespace content 134 } // namespace content
134 135
135 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 136 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
136 137
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/cross_process_frame_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698