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

Unified Diff: chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h

Issue 289013002: cros: Clean up screenlockPrivate plumbing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/extensions/api/screenlock_private/screenlock_private_api.h
diff --git a/chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h b/chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h
index 317274fb2a5ace54aaff23c3df5b0bbec1533425..1abbf64787ca2fe69e2d82e829a91501462a114f 100644
--- a/chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h
+++ b/chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_SCREENLOCK_PRIVATE_SCREENLOCK_PRIVATE_API_H_
+#include <string>
+
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/signin/screenlock_bridge.h"
#include "extensions/browser/browser_context_keyed_api_factory.h"
@@ -49,35 +51,35 @@ class ScreenlockPrivateShowMessageFunction
private:
virtual ~ScreenlockPrivateShowMessageFunction();
- DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateShowMessageFunction );
+ DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateShowMessageFunction);
};
-class ScreenlockPrivateShowButtonFunction
+class ScreenlockPrivateShowCustomIconFunction
: public ChromeAsyncExtensionFunction {
public:
- DECLARE_EXTENSION_FUNCTION("screenlockPrivate.showButton",
- SCREENLOCKPRIVATE_SHOWBUTTON)
- ScreenlockPrivateShowButtonFunction();
+ DECLARE_EXTENSION_FUNCTION("screenlockPrivate.showCustomIcon",
+ SCREENLOCKPRIVATE_SHOWCUSTOMICON)
+ ScreenlockPrivateShowCustomIconFunction();
virtual bool RunAsync() OVERRIDE;
private:
- virtual ~ScreenlockPrivateShowButtonFunction();
+ virtual ~ScreenlockPrivateShowCustomIconFunction();
void OnImageLoaded(const gfx::Image& image);
- DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateShowButtonFunction);
+ DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateShowCustomIconFunction);
};
-class ScreenlockPrivateHideButtonFunction
+class ScreenlockPrivateHideCustomIconFunction
: public ChromeAsyncExtensionFunction {
public:
- DECLARE_EXTENSION_FUNCTION("screenlockPrivate.hideButton",
- SCREENLOCKPRIVATE_HIDEBUTTON)
- ScreenlockPrivateHideButtonFunction();
+ DECLARE_EXTENSION_FUNCTION("screenlockPrivate.hideCustomIcon",
+ SCREENLOCKPRIVATE_HIDECUSTOMICON)
+ ScreenlockPrivateHideCustomIconFunction();
virtual bool RunAsync() OVERRIDE;
private:
- virtual ~ScreenlockPrivateHideButtonFunction();
+ virtual ~ScreenlockPrivateHideCustomIconFunction();
void OnImageLoaded(const gfx::Image& image);
- DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateHideButtonFunction);
+ DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateHideCustomIconFunction);
};
class ScreenlockPrivateSetAuthTypeFunction
@@ -125,8 +127,6 @@ class ScreenlockPrivateEventRouter : public extensions::BrowserContextKeyedAPI,
explicit ScreenlockPrivateEventRouter(content::BrowserContext* context);
virtual ~ScreenlockPrivateEventRouter();
- void OnButtonClicked();
-
void OnAuthAttempted(ScreenlockBridge::LockHandler::AuthType auth_type,
const std::string& value);

Powered by Google App Engine
This is Rietveld 408576698