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

Unified Diff: chrome/browser/ui/webui/options/easy_unlock_handler.h

Issue 475483003: Wire easy unlock settings UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/easy_unlock_handler.h
diff --git a/chrome/browser/ui/webui/options/easy_unlock_handler.h b/chrome/browser/ui/webui/options/easy_unlock_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..24173fa7df3ed56a67115656cb018e159715d9e5
--- /dev/null
+++ b/chrome/browser/ui/webui/options/easy_unlock_handler.h
@@ -0,0 +1,43 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_EASY_UNLOCK_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS_EASY_UNLOCK_HANDLER_H_
+
+#include "base/macros.h"
+#include "chrome/browser/signin/easy_unlock_service_observer.h"
+#include "chrome/browser/ui/webui/options/options_ui.h"
+
+namespace options {
+
+class EasyUnlockHandler : public OptionsPageUIHandler,
+ public EasyUnlockServiceObserver {
+ public:
+ EasyUnlockHandler();
+ virtual ~EasyUnlockHandler();
+
+ // OptionsPageUIHandler
+ virtual void InitializeHandler() OVERRIDE;
+ virtual void GetLocalizedValues(base::DictionaryValue* values) OVERRIDE;
+
+ // WebUIMessageHandler
+ virtual void RegisterMessages() OVERRIDE;
+
+ // EasyUnlockServiceObserver
+ virtual void OnTurnOffOperationStatusChanged() OVERRIDE;
+
+ private:
+ void SendTurnOffOperationStatus();
+
+ // JS callbacks.
+ void HandleGetTurnOffFlowStatus(const base::ListValue* args);
+ void HandleRequestTurnOff(const base::ListValue* args);
+ void HandlePageDismissed(const base::ListValue* args);
+
+ DISALLOW_COPY_AND_ASSIGN(EasyUnlockHandler);
+};
+
+} // namespace options
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_EASY_UNLOCK_HANDLER_H_
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.cc ('k') | chrome/browser/ui/webui/options/easy_unlock_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698