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

Side by Side Diff: extensions/browser/app_window/app_window.cc

Issue 2577183002: Add UMA for the number of devices in the chooser when a device is paired (Closed)
Patch Set: address comments 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "extensions/browser/app_window/app_window.h" 5 #include "extensions/browser/app_window/app_window.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 helper_->RequestToLockMouse(); 428 helper_->RequestToLockMouse();
429 } 429 }
430 430
431 bool AppWindow::PreHandleGestureEvent(WebContents* source, 431 bool AppWindow::PreHandleGestureEvent(WebContents* source,
432 const blink::WebGestureEvent& event) { 432 const blink::WebGestureEvent& event) {
433 return AppWebContentsHelper::ShouldSuppressGestureEvent(event); 433 return AppWebContentsHelper::ShouldSuppressGestureEvent(event);
434 } 434 }
435 435
436 std::unique_ptr<content::BluetoothChooser> AppWindow::RunBluetoothChooser( 436 std::unique_ptr<content::BluetoothChooser> AppWindow::RunBluetoothChooser(
437 content::RenderFrameHost* frame, 437 content::RenderFrameHost* frame,
438 const content::BluetoothChooser::EventHandler& event_handler) { 438 const content::BluetoothChooser::EventHandler& event_handler,
439 return ExtensionsBrowserClient::Get()->CreateBluetoothChooser(frame, 439 bool accept_all_devices) {
440 event_handler); 440 return ExtensionsBrowserClient::Get()->CreateBluetoothChooser(
441 frame, event_handler, accept_all_devices);
441 } 442 }
442 443
443 void AppWindow::RenderViewCreated(content::RenderViewHost* render_view_host) { 444 void AppWindow::RenderViewCreated(content::RenderViewHost* render_view_host) {
444 app_delegate_->RenderViewCreated(render_view_host); 445 app_delegate_->RenderViewCreated(render_view_host);
445 } 446 }
446 447
447 void AppWindow::SetOnFirstCommitCallback(const base::Closure& callback) { 448 void AppWindow::SetOnFirstCommitCallback(const base::Closure& callback) {
448 DCHECK(on_first_commit_callback_.is_null()); 449 DCHECK(on_first_commit_callback_.is_null());
449 on_first_commit_callback_ = callback; 450 on_first_commit_callback_ = callback;
450 } 451 }
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 region.bounds.x(), 1114 region.bounds.x(),
1114 region.bounds.y(), 1115 region.bounds.y(),
1115 region.bounds.right(), 1116 region.bounds.right(),
1116 region.bounds.bottom(), 1117 region.bounds.bottom(),
1117 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); 1118 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op);
1118 } 1119 }
1119 return sk_region; 1120 return sk_region;
1120 } 1121 }
1121 1122
1122 } // namespace extensions 1123 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698