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

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

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 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 | « content/public/browser/web_contents.h ('k') | content/public/browser/web_contents_delegate.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 (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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 // Request to enumerate a directory. This is equivalent to running the file 351 // Request to enumerate a directory. This is equivalent to running the file
352 // chooser in directory-enumeration mode and having the user select the given 352 // chooser in directory-enumeration mode and having the user select the given
353 // directory. 353 // directory.
354 virtual void EnumerateDirectory(WebContents* web_contents, 354 virtual void EnumerateDirectory(WebContents* web_contents,
355 int request_id, 355 int request_id,
356 const base::FilePath& path) {} 356 const base::FilePath& path) {}
357 357
358 // Shows a chooser for the user to select a nearby Bluetooth device. The 358 // Shows a chooser for the user to select a nearby Bluetooth device. The
359 // observer must live at least as long as the returned chooser object. 359 // observer must live at least as long as the returned chooser object.
360 virtual scoped_ptr<BluetoothChooser> RunBluetoothChooser( 360 virtual std::unique_ptr<BluetoothChooser> RunBluetoothChooser(
361 RenderFrameHost* frame, 361 RenderFrameHost* frame,
362 const BluetoothChooser::EventHandler& event_handler); 362 const BluetoothChooser::EventHandler& event_handler);
363 363
364 // Returns true if the delegate will embed a WebContents-owned fullscreen 364 // Returns true if the delegate will embed a WebContents-owned fullscreen
365 // render widget. In this case, the delegate may access the widget by calling 365 // render widget. In this case, the delegate may access the widget by calling
366 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, 366 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned,
367 // WebContents will be responsible for showing the fullscreen widget. 367 // WebContents will be responsible for showing the fullscreen widget.
368 virtual bool EmbedsFullscreenWidget() const; 368 virtual bool EmbedsFullscreenWidget() const;
369 369
370 // Called when the renderer puts a tab into fullscreen mode. 370 // Called when the renderer puts a tab into fullscreen mode.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 // Called when |this| is no longer the WebContentsDelegate for |source|. 545 // Called when |this| is no longer the WebContentsDelegate for |source|.
546 void Detach(WebContents* source); 546 void Detach(WebContents* source);
547 547
548 // The WebContents that this is currently a delegate for. 548 // The WebContents that this is currently a delegate for.
549 std::set<WebContents*> attached_contents_; 549 std::set<WebContents*> attached_contents_;
550 }; 550 };
551 551
552 } // namespace content 552 } // namespace content
553 553
554 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 554 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698