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

Side by Side Diff: chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/chromeos/emulator/device_emulator_message_hand ler.h" 5 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_hand ler.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "ash/common/system/tray/system_tray_delegate.h" 10 #include "ash/common/system/tray/system_tray_delegate.h"
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 623
624 device->Set("uuids", std::move(uuids)); 624 device->Set("uuids", std::move(uuids));
625 625
626 return device; 626 return device;
627 } 627 }
628 628
629 void DeviceEmulatorMessageHandler::TouchpadExists(bool exists) { 629 void DeviceEmulatorMessageHandler::TouchpadExists(bool exists) {
630 if (!IsJavascriptAllowed()) 630 if (!IsJavascriptAllowed())
631 return; 631 return;
632 web_ui()->CallJavascriptFunctionUnsafe(kTouchpadExistsCallback, 632 web_ui()->CallJavascriptFunctionUnsafe(kTouchpadExistsCallback,
633 base::FundamentalValue(exists)); 633 base::Value(exists));
634 } 634 }
635 635
636 void DeviceEmulatorMessageHandler::MouseExists(bool exists) { 636 void DeviceEmulatorMessageHandler::MouseExists(bool exists) {
637 if (!IsJavascriptAllowed()) 637 if (!IsJavascriptAllowed())
638 return; 638 return;
639 web_ui()->CallJavascriptFunctionUnsafe(kMouseExistsCallback, 639 web_ui()->CallJavascriptFunctionUnsafe(kMouseExistsCallback,
640 base::FundamentalValue(exists)); 640 base::Value(exists));
641 } 641 }
642 642
643 } // namespace chromeos 643 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698