OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSION_HOST_MAC_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_MAC_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_MAC_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/extension_host.h" | 9 #include "chrome/browser/extensions/extension_host.h" |
10 | 10 |
| 11 namespace extensions { |
| 12 class Extension; |
| 13 } |
| 14 |
11 // TODO(mpcomplete): I don't know what this does or if it is needed anymore, | 15 // TODO(mpcomplete): I don't know what this does or if it is needed anymore, |
12 // now that ExtensionHost is restructured to rely on WebContents. | 16 // now that ExtensionHost is restructured to rely on WebContents. |
13 class ExtensionHostMac : public ExtensionHost { | 17 class ExtensionHostMac : public ExtensionHost { |
14 public: | 18 public: |
15 ExtensionHostMac(const Extension* extension, | 19 ExtensionHostMac(const extensions::Extension* extension, |
16 content::SiteInstance* site_instance, | 20 content::SiteInstance* site_instance, |
17 const GURL& url, content::ViewType host_type) : | 21 const GURL& url, content::ViewType host_type) : |
18 ExtensionHost(extension, site_instance, url, host_type) {} | 22 ExtensionHost(extension, site_instance, url, host_type) {} |
19 virtual ~ExtensionHostMac(); | 23 virtual ~ExtensionHostMac(); |
20 | 24 |
21 private: | 25 private: |
22 virtual void UnhandledKeyboardEvent( | 26 virtual void UnhandledKeyboardEvent( |
23 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 27 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
24 | 28 |
25 DISALLOW_COPY_AND_ASSIGN(ExtensionHostMac); | 29 DISALLOW_COPY_AND_ASSIGN(ExtensionHostMac); |
26 }; | 30 }; |
27 | 31 |
28 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_MAC_H_ | 32 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_MAC_H_ |
OLD | NEW |