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

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

Issue 1500873002: Implement sequential focus navigation for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Daniel's comments Created 5 years 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/render_frame_proxy_host.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_RENDER_FRAME_PROXY_HOST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/frame_host/render_frame_host_impl.h" 9 #include "content/browser/frame_host/render_frame_host_impl.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
11 #include "ipc/ipc_listener.h" 11 #include "ipc/ipc_listener.h"
12 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
13 #include "third_party/WebKit/public/platform/WebFocusType.h"
13 14
14 struct FrameMsg_PostMessage_Params; 15 struct FrameMsg_PostMessage_Params;
15 16
16 namespace content { 17 namespace content {
17 18
18 class CrossProcessFrameConnector; 19 class CrossProcessFrameConnector;
19 class FrameTreeNode; 20 class FrameTreeNode;
20 class RenderProcessHost; 21 class RenderProcessHost;
21 class RenderFrameHostImpl; 22 class RenderFrameHostImpl;
22 class RenderViewHostImpl; 23 class RenderViewHostImpl;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 // Returns if the RenderFrameProxy for this host is alive. 124 // Returns if the RenderFrameProxy for this host is alive.
124 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } 125 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; }
125 126
126 private: 127 private:
127 // IPC Message handlers. 128 // IPC Message handlers.
128 void OnDetach(); 129 void OnDetach();
129 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); 130 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params);
130 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params); 131 void OnRouteMessageEvent(const FrameMsg_PostMessage_Params& params);
131 void OnDidChangeOpener(int32 opener_routing_id); 132 void OnDidChangeOpener(int32 opener_routing_id);
133 void OnAdvanceFocus(blink::WebFocusType type, int32_t source_routing_id);
132 134
133 // This RenderFrameProxyHost's routing id. 135 // This RenderFrameProxyHost's routing id.
134 int routing_id_; 136 int routing_id_;
135 137
136 // The SiteInstance this proxy is associated with. 138 // The SiteInstance this proxy is associated with.
137 scoped_refptr<SiteInstance> site_instance_; 139 scoped_refptr<SiteInstance> site_instance_;
138 140
139 // The renderer process this RenderFrameHostProxy is associated with. It is 141 // The renderer process this RenderFrameHostProxy is associated with. It is
140 // equivalent to the result of site_instance_->GetProcess(), but that 142 // equivalent to the result of site_instance_->GetProcess(), but that
141 // method has the side effect of creating the process if it doesn't exist. 143 // method has the side effect of creating the process if it doesn't exist.
(...skipping 20 matching lines...) Expand all
162 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts 164 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts
163 // are associated with it. 165 // are associated with it.
164 RenderViewHostImpl* render_view_host_; 166 RenderViewHostImpl* render_view_host_;
165 167
166 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); 168 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost);
167 }; 169 };
168 170
169 } // namespace 171 } // namespace
170 172
171 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 173 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_proxy_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698