| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LAUNCHER_PAGE_LAUNCHER_PAGE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_LAUNCHER_PAGE_LAUNCHER_PAGE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_LAUNCHER_PAGE_LAUNCHER_PAGE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_LAUNCHER_PAGE_LAUNCHER_PAGE_API_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/chrome_extension_function.h" | 8 #include "chrome/browser/extensions/chrome_extension_function.h" |
| 9 #include "extensions/browser/browser_context_keyed_api_factory.h" | 9 #include "extensions/browser/browser_context_keyed_api_factory.h" |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 protected: | 59 protected: |
| 60 ~LauncherPageShowFunction() override {} | 60 ~LauncherPageShowFunction() override {} |
| 61 | 61 |
| 62 ResponseAction Run() override; | 62 ResponseAction Run() override; |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 DISALLOW_COPY_AND_ASSIGN(LauncherPageShowFunction); | 65 DISALLOW_COPY_AND_ASSIGN(LauncherPageShowFunction); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 class LauncherPageHideFunction : public UIThreadExtensionFunction { |
| 69 public: |
| 70 DECLARE_EXTENSION_FUNCTION("launcherPage.hide", LAUNCHERPAGE_HIDE); |
| 71 |
| 72 LauncherPageHideFunction(); |
| 73 |
| 74 protected: |
| 75 ~LauncherPageHideFunction() override {} |
| 76 |
| 77 ResponseAction Run() override; |
| 78 |
| 79 private: |
| 80 DISALLOW_COPY_AND_ASSIGN(LauncherPageHideFunction); |
| 81 }; |
| 82 |
| 68 class LauncherPageSetEnabledFunction : public UIThreadExtensionFunction { | 83 class LauncherPageSetEnabledFunction : public UIThreadExtensionFunction { |
| 69 public: | 84 public: |
| 70 DECLARE_EXTENSION_FUNCTION("launcherPage.setEnabled", | 85 DECLARE_EXTENSION_FUNCTION("launcherPage.setEnabled", |
| 71 LAUNCHERPAGE_SETENABLED); | 86 LAUNCHERPAGE_SETENABLED); |
| 72 | 87 |
| 73 LauncherPageSetEnabledFunction(); | 88 LauncherPageSetEnabledFunction(); |
| 74 | 89 |
| 75 protected: | 90 protected: |
| 76 ~LauncherPageSetEnabledFunction() override {} | 91 ~LauncherPageSetEnabledFunction() override {} |
| 77 | 92 |
| 78 ResponseAction Run() override; | 93 ResponseAction Run() override; |
| 79 | 94 |
| 80 private: | 95 private: |
| 81 DISALLOW_COPY_AND_ASSIGN(LauncherPageSetEnabledFunction); | 96 DISALLOW_COPY_AND_ASSIGN(LauncherPageSetEnabledFunction); |
| 82 }; | 97 }; |
| 83 | 98 |
| 84 } // namespace extensions | 99 } // namespace extensions |
| 85 | 100 |
| 86 #endif // CHROME_BROWSER_EXTENSIONS_API_LAUNCHER_PAGE_LAUNCHER_PAGE_API_H_ | 101 #endif // CHROME_BROWSER_EXTENSIONS_API_LAUNCHER_PAGE_LAUNCHER_PAGE_API_H_ |
| OLD | NEW |