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

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

Issue 2178213002: Add note page to settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-add-switch
Patch Set: Initial upload Created 4 years, 4 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698