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

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

Issue 2577183002: Add UMA for the number of devices in the chooser when a device is paired (Closed)
Patch Set: fixed android build Created 4 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
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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 // chooser in directory-enumeration mode and having the user select the given 367 // chooser in directory-enumeration mode and having the user select the given
368 // directory. 368 // directory.
369 virtual void EnumerateDirectory(WebContents* web_contents, 369 virtual void EnumerateDirectory(WebContents* web_contents,
370 int request_id, 370 int request_id,
371 const base::FilePath& path) {} 371 const base::FilePath& path) {}
372 372
373 // Shows a chooser for the user to select a nearby Bluetooth device. The 373 // Shows a chooser for the user to select a nearby Bluetooth device. The
374 // observer must live at least as long as the returned chooser object. 374 // observer must live at least as long as the returned chooser object.
375 virtual std::unique_ptr<BluetoothChooser> RunBluetoothChooser( 375 virtual std::unique_ptr<BluetoothChooser> RunBluetoothChooser(
376 RenderFrameHost* frame, 376 RenderFrameHost* frame,
377 const BluetoothChooser::EventHandler& event_handler); 377 const BluetoothChooser::EventHandler& event_handler,
378 bool accept_all_devices);
378 379
379 // Returns true if the delegate will embed a WebContents-owned fullscreen 380 // Returns true if the delegate will embed a WebContents-owned fullscreen
380 // render widget. In this case, the delegate may access the widget by calling 381 // render widget. In this case, the delegate may access the widget by calling
381 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned, 382 // WebContents::GetFullscreenRenderWidgetHostView(). If false is returned,
382 // WebContents will be responsible for showing the fullscreen widget. 383 // WebContents will be responsible for showing the fullscreen widget.
383 virtual bool EmbedsFullscreenWidget() const; 384 virtual bool EmbedsFullscreenWidget() const;
384 385
385 // Called when the renderer puts a tab into fullscreen mode. 386 // Called when the renderer puts a tab into fullscreen mode.
386 // |origin| is the origin of the initiating frame inside the |web_contents|. 387 // |origin| is the origin of the initiating frame inside the |web_contents|.
387 // |origin| can be empty in which case the |web_contents| last committed 388 // |origin| can be empty in which case the |web_contents| last committed
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 // Called when |this| is no longer the WebContentsDelegate for |source|. 568 // Called when |this| is no longer the WebContentsDelegate for |source|.
568 void Detach(WebContents* source); 569 void Detach(WebContents* source);
569 570
570 // The WebContents that this is currently a delegate for. 571 // The WebContents that this is currently a delegate for.
571 std::set<WebContents*> attached_contents_; 572 std::set<WebContents*> attached_contents_;
572 }; 573 };
573 574
574 } // namespace content 575 } // namespace content
575 576
576 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 577 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698