Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/webui/settings/chromeos/note_handler.h" | |
| 6 | |
| 7 #include "ash/common/ash_switches.h" | |
| 8 #include "base/command_line.h" | |
| 9 #include "content/public/browser/web_ui_data_source.h" | |
| 10 | |
| 11 namespace chromeos { | |
| 12 namespace settings { | |
| 13 | |
| 14 namespace { | |
| 15 | |
| 16 bool IsPaletteEnabled() { | |
| 17 return base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 18 ash::switches::kAshEnablePalette); | |
| 19 } | |
| 20 | |
| 21 } // namespace | |
| 22 | |
| 23 NoteHandler::NoteHandler(content::WebUIDataSource* html_source) { | |
|
jdufault
2016/07/26 19:42:56
For right now, the handler is very simple, so it i
stevenjb
2016/07/26 23:21:39
Ideally we will use an extension API instead of a
jdufault
2016/07/27 20:55:02
Most settings UI appears to use an message handler
stevenjb
2016/07/27 22:29:42
Some day, we would like to be able to run device s
jdufault
2016/07/28 17:54:40
Done.
| |
| 24 html_source->AddBoolean("noteAllowed", IsPaletteEnabled()); | |
| 25 } | |
| 26 | |
| 27 NoteHandler::~NoteHandler() {} | |
| 28 | |
| 29 void NoteHandler::RegisterMessages() {} | |
| 30 | |
| 31 void NoteHandler::OnJavascriptAllowed() {} | |
| 32 | |
| 33 void NoteHandler::OnJavascriptDisallowed() {} | |
| 34 | |
| 35 } // namespace settings | |
| 36 } // namespace chromeos | |
| OLD | NEW |