Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / chromeos / pointer_handler.h
blob091c9cd150d7d98349764cbb3746517586decb58
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_POINTER_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_POINTER_HANDLER_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h"
10 #include "base/prefs/pref_member.h"
11 #include "chrome/browser/chromeos/system/pointer_device_observer.h"
12 #include "chrome/browser/ui/webui/options/options_ui.h"
14 namespace chromeos {
15 namespace options {
17 // Pointer settings overlay page UI handler.
18 class PointerHandler
19 : public ::options::OptionsPageUIHandler,
20 public chromeos::system::PointerDeviceObserver::Observer {
21 public:
22 PointerHandler();
23 ~PointerHandler() override;
25 // OptionsPageUIHandler implementation.
26 void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
28 private:
29 // PointerDeviceObserver implementation.
30 void TouchpadExists(bool exists) override;
31 void MouseExists(bool exists) override;
33 // Set the title dynamically based on whether a touchpad and/or mouse is
34 // detected.
35 void UpdateTitle();
37 bool has_touchpad_;
38 bool has_mouse_;
40 DISALLOW_COPY_AND_ASSIGN(PointerHandler);
43 } // namespace options
44 } // namespace chromeos
46 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_POINTER_HANDLER_H_