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

Side by Side Diff: chrome/browser/extensions/api/extension_action/extension_action_api.h

Issue 472333002: Remove deprecated chrome.pageActions api functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histograms.xml 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/extension_action/extension_action_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_ACTION_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_ACTION_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_ACTION_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_ACTION_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 460
461 class PageActionGetPopupFunction 461 class PageActionGetPopupFunction
462 : public extensions::ExtensionActionGetPopupFunction { 462 : public extensions::ExtensionActionGetPopupFunction {
463 public: 463 public:
464 DECLARE_EXTENSION_FUNCTION("pageAction.getPopup", PAGEACTION_GETPOPUP) 464 DECLARE_EXTENSION_FUNCTION("pageAction.getPopup", PAGEACTION_GETPOPUP)
465 465
466 protected: 466 protected:
467 virtual ~PageActionGetPopupFunction() {} 467 virtual ~PageActionGetPopupFunction() {}
468 }; 468 };
469 469
470 // Base class for deprecated page actions APIs
471 class PageActionsFunction : public ChromeSyncExtensionFunction {
472 protected:
473 PageActionsFunction();
474 virtual ~PageActionsFunction();
475 bool SetPageActionEnabled(bool enable);
476 };
477
478 // Implement chrome.pageActions.enableForTab().
479 class EnablePageActionsFunction : public PageActionsFunction {
480 public:
481 DECLARE_EXTENSION_FUNCTION("pageActions.enableForTab",
482 PAGEACTIONS_ENABLEFORTAB)
483
484 protected:
485 virtual ~EnablePageActionsFunction() {}
486
487 // ExtensionFunction:
488 virtual bool RunSync() OVERRIDE;
489 };
490
491 // Implement chrome.pageActions.disableForTab().
492 class DisablePageActionsFunction : public PageActionsFunction {
493 public:
494 DECLARE_EXTENSION_FUNCTION("pageActions.disableForTab",
495 PAGEACTIONS_DISABLEFORTAB)
496
497 protected:
498 virtual ~DisablePageActionsFunction() {}
499
500 // ExtensionFunction:
501 virtual bool RunSync() OVERRIDE;
502 };
503
504 #endif // CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_ACTION_API_H _ 470 #endif // CHROME_BROWSER_EXTENSIONS_API_EXTENSION_ACTION_EXTENSION_ACTION_API_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/extension_action/extension_action_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698