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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 1224363002: OOPIF: Fix window.open to work from frames with remote parent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move OpenPopup to content_browser_test_utils_internal.cc, add back two is_active_ checks. Created 5 years, 5 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 (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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Requests to lock the mouse. Once the request is approved or rejected, 188 // Requests to lock the mouse. Once the request is approved or rejected,
189 // GotResponseToLockMouseRequest() will be called on the requesting render 189 // GotResponseToLockMouseRequest() will be called on the requesting render
190 // view host. 190 // view host.
191 virtual void RequestToLockMouse(bool user_gesture, 191 virtual void RequestToLockMouse(bool user_gesture,
192 bool last_unlocked_by_target) {} 192 bool last_unlocked_by_target) {}
193 193
194 // Notification that the view has lost the mouse lock. 194 // Notification that the view has lost the mouse lock.
195 virtual void LostMouseLock() {} 195 virtual void LostMouseLock() {}
196 196
197 // The page is trying to open a new page (e.g. a popup window). The window 197 // The page is trying to open a new page (e.g. a popup window). The window
198 // should be created associated with the given |route_id| in process 198 // should be created associated with the given |route_id| in the process of
199 // |render_process_id|, but it should not be shown yet. That should happen in 199 // |source_site_instance|, but it should not be shown yet. That
200 // response to ShowCreatedWindow. 200 // should happen in response to ShowCreatedWindow.
201 // |params.window_container_type| describes the type of RenderViewHost 201 // |params.window_container_type| describes the type of RenderViewHost
202 // container that is requested -- in particular, the window.open call may 202 // container that is requested -- in particular, the window.open call may
203 // have specified 'background' and 'persistent' in the feature string. 203 // have specified 'background' and 'persistent' in the feature string.
204 // 204 //
205 // The passed |params.frame_name| parameter is the name parameter that was 205 // The passed |params.frame_name| parameter is the name parameter that was
206 // passed to window.open(), and will be empty if none was passed. 206 // passed to window.open(), and will be empty if none was passed.
207 // 207 //
208 // Note: this is not called "CreateWindow" because that will clash with 208 // Note: this is not called "CreateWindow" because that will clash with
209 // the Windows function which is actually a #define. 209 // the Windows function which is actually a #define.
210 //
211 // TODO(alexmos): This should be moved to RenderFrameHostDelegate, and the
212 // corresponding IPC message should be sent by the RenderFrame creating the
213 // new window.
210 virtual void CreateNewWindow( 214 virtual void CreateNewWindow(
211 int render_process_id, 215 SiteInstance* source_site_instance,
212 int route_id, 216 int route_id,
213 int main_frame_route_id, 217 int main_frame_route_id,
214 const ViewHostMsg_CreateWindow_Params& params, 218 const ViewHostMsg_CreateWindow_Params& params,
215 SessionStorageNamespace* session_storage_namespace) {} 219 SessionStorageNamespace* session_storage_namespace) {}
216 220
217 // The page is trying to open a new widget (e.g. a select popup). The 221 // The page is trying to open a new widget (e.g. a select popup). The
218 // widget should be created associated with the given |route_id| in the 222 // widget should be created associated with the given |route_id| in the
219 // process |render_process_id|, but it should not be shown yet. That should 223 // process |render_process_id|, but it should not be shown yet. That should
220 // happen in response to ShowCreatedWidget. 224 // happen in response to ShowCreatedWidget.
221 // |popup_type| indicates if the widget is a popup and what kind of popup it 225 // |popup_type| indicates if the widget is a popup and what kind of popup it
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 virtual void SetIsVirtualKeyboardRequested(bool requested) {} 275 virtual void SetIsVirtualKeyboardRequested(bool requested) {}
272 virtual bool IsVirtualKeyboardRequested(); 276 virtual bool IsVirtualKeyboardRequested();
273 277
274 protected: 278 protected:
275 virtual ~RenderViewHostDelegate() {} 279 virtual ~RenderViewHostDelegate() {}
276 }; 280 };
277 281
278 } // namespace content 282 } // namespace content
279 283
280 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 284 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698