Home | History | Annotate | Download | only in extensions
      1 // Copyright (c) 2010 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 
      5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_MAC_H_
      6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_MAC_H_
      7 #pragma once
      8 
      9 #include "chrome/browser/extensions/extension_host.h"
     10 
     11 class RenderWidgetHostView;
     12 
     13 class ExtensionHostMac : public ExtensionHost {
     14  public:
     15   ExtensionHostMac(const Extension* extension, SiteInstance* site_instance,
     16                    const GURL& url, ViewType::Type host_type) :
     17       ExtensionHost(extension, site_instance, url, host_type) {}
     18   virtual ~ExtensionHostMac();
     19  protected:
     20   virtual RenderWidgetHostView* CreateNewWidgetInternal(
     21       int route_id,
     22       WebKit::WebPopupType popup_type);
     23   virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view,
     24                                          const gfx::Rect& initial_pos);
     25  private:
     26   virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event);
     27 
     28   DISALLOW_COPY_AND_ASSIGN(ExtensionHostMac);
     29 };
     30 
     31 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_MAC_H_
     32