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

Side by Side Diff: chrome/browser/ui/webui/settings/chromeos/device_pointer_handler.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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/settings/chromeos/device_pointer_handler.h" 5 #include "chrome/browser/ui/webui/settings/chromeos/device_pointer_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "content/public/browser/web_ui.h" 10 #include "content/public/browser/web_ui.h"
(...skipping 21 matching lines...) Expand all
32 pointer_device_observer_->CheckDevices(); 32 pointer_device_observer_->CheckDevices();
33 } 33 }
34 34
35 void PointerHandler::OnJavascriptDisallowed() { 35 void PointerHandler::OnJavascriptDisallowed() {
36 pointer_device_observer_->RemoveObserver(this); 36 pointer_device_observer_->RemoveObserver(this);
37 } 37 }
38 38
39 void PointerHandler::TouchpadExists(bool exists) { 39 void PointerHandler::TouchpadExists(bool exists) {
40 CallJavascriptFunction("cr.webUIListenerCallback", 40 CallJavascriptFunction("cr.webUIListenerCallback",
41 base::StringValue("has-touchpad-changed"), 41 base::StringValue("has-touchpad-changed"),
42 base::FundamentalValue(exists)); 42 base::Value(exists));
43 } 43 }
44 44
45 void PointerHandler::MouseExists(bool exists) { 45 void PointerHandler::MouseExists(bool exists) {
46 CallJavascriptFunction("cr.webUIListenerCallback", 46 CallJavascriptFunction("cr.webUIListenerCallback",
47 base::StringValue("has-mouse-changed"), 47 base::StringValue("has-mouse-changed"),
48 base::FundamentalValue(exists)); 48 base::Value(exists));
49 } 49 }
50 50
51 void PointerHandler::HandleInitialize(const base::ListValue* args) { 51 void PointerHandler::HandleInitialize(const base::ListValue* args) {
52 AllowJavascript(); 52 AllowJavascript();
53 } 53 }
54 54
55 } // namespace settings 55 } // namespace settings
56 } // namespace chromeos 56 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698