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

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

Issue 1672103002: Pass the frame instead of the WebContents through RunBluetoothChooser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@doc-bubble-lifetimes
Patch Set: Fix Android Created 4 years, 10 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_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 22 matching lines...) Expand all
33 class FilePath; 33 class FilePath;
34 class ListValue; 34 class ListValue;
35 } 35 }
36 36
37 namespace content { 37 namespace content {
38 class BrowserContext; 38 class BrowserContext;
39 class ColorChooser; 39 class ColorChooser;
40 class DownloadItem; 40 class DownloadItem;
41 class JavaScriptDialogManager; 41 class JavaScriptDialogManager;
42 class PageState; 42 class PageState;
43 class RenderFrameHost;
43 class RenderViewHost; 44 class RenderViewHost;
44 class SessionStorageNamespace; 45 class SessionStorageNamespace;
45 class WebContents; 46 class WebContents;
46 class WebContentsImpl; 47 class WebContentsImpl;
47 struct ColorSuggestion; 48 struct ColorSuggestion;
48 struct ContextMenuParams; 49 struct ContextMenuParams;
49 struct DropData; 50 struct DropData;
50 struct FileChooserParams; 51 struct FileChooserParams;
51 struct NativeWebKeyboardEvent; 52 struct NativeWebKeyboardEvent;
52 struct Referrer; 53 struct Referrer;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // Request to enumerate a directory. This is equivalent to running the file 350 // Request to enumerate a directory. This is equivalent to running the file
350 // chooser in directory-enumeration mode and having the user select the given 351 // chooser in directory-enumeration mode and having the user select the given
351 // directory. 352 // directory.
352 virtual void EnumerateDirectory(WebContents* web_contents, 353 virtual void EnumerateDirectory(WebContents* web_contents,
353 int request_id, 354 int request_id,
354 const base::FilePath& path) {} 355 const base::FilePath& path) {}
355 356
356 // Shows a chooser for the user to select a nearby Bluetooth device. The 357 // Shows a chooser for the user to select a nearby Bluetooth device. The
357 // observer must live at least as long as the returned chooser object. 358 // observer must live at least as long as the returned chooser object.
358 virtual scoped_ptr<BluetoothChooser> RunBluetoothChooser( 359 virtual scoped_ptr<BluetoothChooser> RunBluetoothChooser(
359 WebContents* web_contents, 360 RenderFrameHost* frame,
360 const BluetoothChooser::EventHandler& event_handler, 361 const BluetoothChooser::EventHandler& event_handler);
361 const url::Origin& origin);
362 362
363 // Returns true if the delegate will embed a WebContents-owned fullscreen 363 // Returns true if the delegate will embed a WebContents-owned fullscreen
364 // render widget. In this case, the delegate may access the widget by calling 364 // render widget. In this case, the delegate may access the widget by calling
365 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, 365 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned,
366 // WebContents will be responsible for showing the fullscreen widget. 366 // WebContents will be responsible for showing the fullscreen widget.
367 virtual bool EmbedsFullscreenWidget() const; 367 virtual bool EmbedsFullscreenWidget() const;
368 368
369 // Called when the renderer puts a tab into fullscreen mode. 369 // Called when the renderer puts a tab into fullscreen mode.
370 // |origin| is the origin of the initiating frame inside the |web_contents|. 370 // |origin| is the origin of the initiating frame inside the |web_contents|.
371 // |origin| can be empty in which case the |web_contents| last committed 371 // |origin| can be empty in which case the |web_contents| last committed
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 // Called when |this| is no longer the WebContentsDelegate for |source|. 542 // Called when |this| is no longer the WebContentsDelegate for |source|.
543 void Detach(WebContents* source); 543 void Detach(WebContents* source);
544 544
545 // The WebContents that this is currently a delegate for. 545 // The WebContents that this is currently a delegate for.
546 std::set<WebContents*> attached_contents_; 546 std::set<WebContents*> attached_contents_;
547 }; 547 };
548 548
549 } // namespace content 549 } // namespace content
550 550
551 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 551 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698