| 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_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "extensions/browser/api/guest_view/web_view/web_view_internal_api.h" | 9 #include "extensions/browser/api/guest_view/web_view/web_view_internal_api.h" |
| 10 #include "extensions/browser/extension_function.h" | 10 #include "extensions/browser/extension_function.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 class ChromeWebViewInternalShowContextMenuFunction | 87 class ChromeWebViewInternalShowContextMenuFunction |
| 88 : public WebViewInternalExtensionFunction { | 88 : public WebViewInternalExtensionFunction { |
| 89 public: | 89 public: |
| 90 DECLARE_EXTENSION_FUNCTION("chromeWebViewInternal.showContextMenu", | 90 DECLARE_EXTENSION_FUNCTION("chromeWebViewInternal.showContextMenu", |
| 91 WEBVIEWINTERNAL_SHOWCONTEXTMENU); | 91 WEBVIEWINTERNAL_SHOWCONTEXTMENU); |
| 92 | 92 |
| 93 ChromeWebViewInternalShowContextMenuFunction(); | 93 ChromeWebViewInternalShowContextMenuFunction(); |
| 94 | 94 |
| 95 protected: | 95 protected: |
| 96 ~ChromeWebViewInternalShowContextMenuFunction() override; | 96 ~ChromeWebViewInternalShowContextMenuFunction() override; |
| 97 | 97 ResponseAction Run() override; |
| 98 private: | |
| 99 // WebViewInternalExtensionFunction implementation. | |
| 100 bool RunAsyncSafe(WebViewGuest* guest) override; | |
| 101 | 98 |
| 102 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewInternalShowContextMenuFunction); | 99 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewInternalShowContextMenuFunction); |
| 103 }; | 100 }; |
| 104 | 101 |
| 105 } // namespace extensions | 102 } // namespace extensions |
| 106 | 103 |
| 107 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H
_ | 104 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H
_ |
| OLD | NEW |