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

Unified Diff: chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h

Issue 1999593002: Update chrome://device-emulator with newer Polymer guidelines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: narrow mode drawer + webui safety Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h b/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h
index e42cf943ed9e1a8eb103bd573955985dc8f8fad2..0af60a94ed3439a657eaafb3bab3cf3503b69062 100644
--- a/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h
+++ b/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h
@@ -36,7 +36,7 @@ class DeviceEmulatorMessageHandler
~DeviceEmulatorMessageHandler() override;
// Adds |this| as an observer to all necessary objects.
- void Init();
+ void Init(const base::ListValue* args);
// Callback for the "removeBluetoothDevice" message. This is called by
// the view to remove a bluetooth device from the FakeBluetoothDeviceClient's
@@ -84,6 +84,8 @@ class DeviceEmulatorMessageHandler
// content::WebUIMessageHandler:
void RegisterMessages() override;
+ void OnJavascriptAllowed() override;
+ void OnJavascriptDisallowed() override;
// Callback for the "requestPowerInfo" message. This asynchronously requests
// for power settings such as battery percentage, external power, etc. to

Powered by Google App Engine
This is Rietveld 408576698