Chromium Code Reviews| Index: extensions/browser/guest_view/app_view/app_view_guest_delegate.h |
| diff --git a/extensions/browser/guest_view/app_view/app_view_guest_delegate.h b/extensions/browser/guest_view/app_view/app_view_guest_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c137217e35a69cd25a0228a8769b33008181d50a |
| --- /dev/null |
| +++ b/extensions/browser/guest_view/app_view/app_view_guest_delegate.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ |
| +#define EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ |
| + |
| +#include "content/public/common/context_menu_params.h" |
| + |
| +namespace content { |
| +class BrowserContext; |
| +class WebContents; |
| +} |
| + |
| +namespace extensions { |
| +class Extension; |
| + |
| +class AppViewGuestDelegate { |
| + public: |
| + AppViewGuestDelegate(); |
| + virtual ~AppViewGuestDelegate(); |
| + |
| + // Shows the context menu for the guest |
| + virtual bool HandleContextMenu(content::WebContents* web_contents, |
|
Xi Han
2014/08/18 21:29:11
Please rename to OnHandleContextMenu(). Thanks.
|
| + const content::ContextMenuParams& params); |
| + |
| + // Gets the Extension that matches the id |
| + virtual const Extension* GetExtensionById(content::BrowserContext* context, |
|
Xi Han
2014/08/18 21:29:11
Please remove this function.
|
| + const std::string& id, |
| + bool include_disabled) const; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(AppViewGuestDelegate); |
| +}; |
| + |
| +} // namespace extensions |
| + |
| +#endif // EXTENSIONS_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_DELEGATE_H_ |