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

Unified Diff: chrome/browser/extensions/extension_tabs_module.h

Issue 570048: Add zoom extension API (Closed)
Patch Set: Zoom extension API with docs and examples Created 9 years, 10 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/extension_tabs_module.h
diff --git a/chrome/browser/extensions/extension_tabs_module.h b/chrome/browser/extensions/extension_tabs_module.h
index 71258675631e222a7cb754199ff93b91e51b5c8b..2409aa79012755cda51bc3e43f98c50e07dd3c0e 100644
--- a/chrome/browser/extensions/extension_tabs_module.h
+++ b/chrome/browser/extensions/extension_tabs_module.h
@@ -126,6 +126,26 @@ class RemoveTabFunction : public SyncExtensionFunction {
virtual bool RunImpl();
DECLARE_EXTENSION_FUNCTION_NAME("tabs.remove")
};
+class SetZoomPercentTabFunction : public AsyncExtensionFunction,
+ public NotificationObserver {
+ private:
+ ~SetZoomPercentTabFunction() {}
+ virtual bool RunImpl();
+
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+ NotificationRegistrar registrar_;
+ int tab_id_;
+ int request_id_;
+ DECLARE_EXTENSION_FUNCTION_NAME("tabs.setZoomPercent")
+};
+class GetZoomPercentTabFunction : public SyncExtensionFunction {
+ ~GetZoomPercentTabFunction() {}
+ virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("tabs.getZoomPercent");
+};
+
class DetectTabLanguageFunction : public AsyncExtensionFunction,
public NotificationObserver {
private:
« no previous file with comments | « chrome/browser/extensions/extension_tabs_apitest.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698