| OLD | NEW |
| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 return ExtensionsBrowserClient::Get()->CreateBluetoothChooser(frame, |
| 440 event_handler); | 440 event_handler); |
| 441 } | 441 } |
| 442 | 442 |
| 443 content::BluetoothAllowedDevicesMapBase* AppWindow::GetBluetoothDevicesMap( |
| 444 content::RenderFrameHost* frame) { |
| 445 return ExtensionsBrowserClient::Get()->GetBluetoothDevicesMap(frame); |
| 446 } |
| 447 |
| 443 void AppWindow::RenderViewCreated(content::RenderViewHost* render_view_host) { | 448 void AppWindow::RenderViewCreated(content::RenderViewHost* render_view_host) { |
| 444 app_delegate_->RenderViewCreated(render_view_host); | 449 app_delegate_->RenderViewCreated(render_view_host); |
| 445 } | 450 } |
| 446 | 451 |
| 447 void AppWindow::SetOnFirstCommitCallback(const base::Closure& callback) { | 452 void AppWindow::SetOnFirstCommitCallback(const base::Closure& callback) { |
| 448 DCHECK(on_first_commit_callback_.is_null()); | 453 DCHECK(on_first_commit_callback_.is_null()); |
| 449 on_first_commit_callback_ = callback; | 454 on_first_commit_callback_ = callback; |
| 450 } | 455 } |
| 451 | 456 |
| 452 void AppWindow::OnReadyToCommitFirstNavigation() { | 457 void AppWindow::OnReadyToCommitFirstNavigation() { |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 region.bounds.x(), | 1118 region.bounds.x(), |
| 1114 region.bounds.y(), | 1119 region.bounds.y(), |
| 1115 region.bounds.right(), | 1120 region.bounds.right(), |
| 1116 region.bounds.bottom(), | 1121 region.bounds.bottom(), |
| 1117 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); | 1122 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); |
| 1118 } | 1123 } |
| 1119 return sk_region; | 1124 return sk_region; |
| 1120 } | 1125 } |
| 1121 | 1126 |
| 1122 } // namespace extensions | 1127 } // namespace extensions |
| OLD | NEW |