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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge conflicts 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // Returns true to allow WebContents to continue with the default processing. 282 // Returns true to allow WebContents to continue with the default processing.
283 virtual bool OnGoToEntryOffset(int offset); 283 virtual bool OnGoToEntryOffset(int offset);
284 284
285 // Allows delegate to control whether a WebContents will be created. Returns 285 // Allows delegate to control whether a WebContents will be created. Returns
286 // true to allow the creation. Default is to allow it. In cases where the 286 // true to allow the creation. Default is to allow it. In cases where the
287 // delegate handles the creation/navigation itself, it will use |target_url|. 287 // delegate handles the creation/navigation itself, it will use |target_url|.
288 // The embedder has to synchronously adopt |route_id| or else the view will 288 // The embedder has to synchronously adopt |route_id| or else the view will
289 // be destroyed. 289 // be destroyed.
290 virtual bool ShouldCreateWebContents( 290 virtual bool ShouldCreateWebContents(
291 WebContents* web_contents, 291 WebContents* web_contents,
292 int route_id, 292 int32_t route_id,
293 int main_frame_route_id, 293 int32_t main_frame_route_id,
294 int32_t main_frame_widget_route_id,
294 WindowContainerType window_container_type, 295 WindowContainerType window_container_type,
295 const std::string& frame_name, 296 const std::string& frame_name,
296 const GURL& target_url, 297 const GURL& target_url,
297 const std::string& partition_id, 298 const std::string& partition_id,
298 SessionStorageNamespace* session_storage_namespace); 299 SessionStorageNamespace* session_storage_namespace);
299 300
300 // Notifies the delegate about the creation of a new WebContents. This 301 // Notifies the delegate about the creation of a new WebContents. This
301 // typically happens when popups are created. 302 // typically happens when popups are created.
302 virtual void WebContentsCreated(WebContents* source_contents, 303 virtual void WebContentsCreated(WebContents* source_contents,
303 int opener_render_frame_id, 304 int opener_render_frame_id,
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 // Called when |this| is no longer the WebContentsDelegate for |source|. 522 // Called when |this| is no longer the WebContentsDelegate for |source|.
522 void Detach(WebContents* source); 523 void Detach(WebContents* source);
523 524
524 // The WebContents that this is currently a delegate for. 525 // The WebContents that this is currently a delegate for.
525 std::set<WebContents*> attached_contents_; 526 std::set<WebContents*> attached_contents_;
526 }; 527 };
527 528
528 } // namespace content 529 } // namespace content
529 530
530 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 531 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698