shell_app_view_guest_delegate.cc 843 B

1234567891011121314151617181920212223242526272829
  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
  3. // found in the LICENSE file.
  4. #include "extensions/shell/browser/shell_app_view_guest_delegate.h"
  5. #include "extensions/shell/browser/shell_app_delegate.h"
  6. namespace extensions {
  7. ShellAppViewGuestDelegate::ShellAppViewGuestDelegate() {
  8. }
  9. ShellAppViewGuestDelegate::~ShellAppViewGuestDelegate() {
  10. }
  11. bool ShellAppViewGuestDelegate::HandleContextMenu(
  12. content::RenderFrameHost& render_frame_host,
  13. const content::ContextMenuParams& params) {
  14. // Eat the context menu request, as AppShell doesn't show context menus.
  15. return true;
  16. }
  17. AppDelegate* ShellAppViewGuestDelegate::CreateAppDelegate(
  18. content::WebContents* web_contents) {
  19. return new ShellAppDelegate();
  20. }
  21. } // namespace extensions