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

Side by Side Diff: chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.cc

Issue 2568283003: bluetooth: Add notification system to internals page. (Closed)
Patch Set: Remove margin, fix bug where snackbar dismisses if shown with no focus 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.h" 5 #include "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_ui.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 #include "chrome/grit/browser_resources.h" 9 #include "chrome/grit/browser_resources.h"
10 #include "content/public/browser/web_ui_data_source.h" 10 #include "content/public/browser/web_ui_data_source.h"
(...skipping 14 matching lines...) Expand all
25 html_source->AddResourcePath("device_collection.js", 25 html_source->AddResourcePath("device_collection.js",
26 IDR_BLUETOOTH_INTERNALS_DEVICE_COLLECTION_JS); 26 IDR_BLUETOOTH_INTERNALS_DEVICE_COLLECTION_JS);
27 html_source->AddResourcePath("device_table.js", 27 html_source->AddResourcePath("device_table.js",
28 IDR_BLUETOOTH_INTERNALS_DEVICE_TABLE_JS); 28 IDR_BLUETOOTH_INTERNALS_DEVICE_TABLE_JS);
29 html_source->AddResourcePath("devices_page.js", 29 html_source->AddResourcePath("devices_page.js",
30 IDR_BLUETOOTH_INTERNALS_DEVICES_PAGE_JS); 30 IDR_BLUETOOTH_INTERNALS_DEVICES_PAGE_JS);
31 html_source->AddResourcePath("interfaces.js", 31 html_source->AddResourcePath("interfaces.js",
32 IDR_BLUETOOTH_INTERNALS_INTERFACES_JS); 32 IDR_BLUETOOTH_INTERNALS_INTERFACES_JS);
33 html_source->AddResourcePath("sidebar.js", 33 html_source->AddResourcePath("sidebar.js",
34 IDR_BLUETOOTH_INTERNALS_SIDEBAR_JS); 34 IDR_BLUETOOTH_INTERNALS_SIDEBAR_JS);
35 html_source->AddResourcePath("snackbar.js",
36 IDR_BLUETOOTH_INTERNALS_SNACKBAR_JS);
35 37
36 html_source->AddResourcePath( 38 html_source->AddResourcePath(
37 "device/bluetooth/public/interfaces/adapter.mojom", 39 "device/bluetooth/public/interfaces/adapter.mojom",
38 IDR_BLUETOOTH_ADAPTER_MOJO_JS); 40 IDR_BLUETOOTH_ADAPTER_MOJO_JS);
39 html_source->AddResourcePath( 41 html_source->AddResourcePath(
40 "device/bluetooth/public/interfaces/device.mojom", 42 "device/bluetooth/public/interfaces/device.mojom",
41 IDR_BLUETOOTH_DEVICE_MOJO_JS); 43 IDR_BLUETOOTH_DEVICE_MOJO_JS);
42 html_source->AddResourcePath("device/bluetooth/public/interfaces/uuid.mojom", 44 html_source->AddResourcePath("device/bluetooth/public/interfaces/uuid.mojom",
43 IDR_BLUETOOTH_UUID_MOJO_JS); 45 IDR_BLUETOOTH_UUID_MOJO_JS);
44 html_source->SetDefaultResource(IDR_BLUETOOTH_INTERNALS_HTML); 46 html_source->SetDefaultResource(IDR_BLUETOOTH_INTERNALS_HTML);
45 html_source->DisableI18nAndUseGzipForAllPaths(); 47 html_source->DisableI18nAndUseGzipForAllPaths();
46 48
47 Profile* profile = Profile::FromWebUI(web_ui); 49 Profile* profile = Profile::FromWebUI(web_ui);
48 content::WebUIDataSource::Add(profile, html_source); 50 content::WebUIDataSource::Add(profile, html_source);
49 } 51 }
50 52
51 BluetoothInternalsUI::~BluetoothInternalsUI() {} 53 BluetoothInternalsUI::~BluetoothInternalsUI() {}
OLDNEW
« no previous file with comments | « chrome/browser/resources/bluetooth_internals/snackbar.js ('k') | chrome/test/data/webui/bluetooth_internals_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698