OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CONTENT_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_ | 5 #ifndef CONTENT_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_ |
6 #define CONTENT_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_ | 6 #define CONTENT_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_ |
7 #pragma once | |
8 | 7 |
9 #include <Carbon/Carbon.h> | 8 #include <Carbon/Carbon.h> |
10 | 9 |
11 #import "base/basictypes.h" | 10 #import "base/basictypes.h" |
12 | 11 |
13 // This is really a WebPluginDelegateImpl, but that class is private to the | 12 // This is really a WebPluginDelegateImpl, but that class is private to the |
14 // framework, and these functions are called from a dylib. | 13 // framework, and these functions are called from a dylib. |
15 typedef void* OpaquePluginRef; | 14 typedef void* OpaquePluginRef; |
16 | 15 |
17 namespace mac_plugin_interposing { | 16 namespace mac_plugin_interposing { |
(...skipping 30 matching lines...) Expand all Loading... |
48 // Sends a message to the plugin that a cursor was set. | 47 // Sends a message to the plugin that a cursor was set. |
49 void NotifyPluginOfSetCursor(OpaquePluginRef delegate, | 48 void NotifyPluginOfSetCursor(OpaquePluginRef delegate, |
50 const Cursor* cursor); | 49 const Cursor* cursor); |
51 | 50 |
52 // Returns true if the window containing the given plugin delegate is focused. | 51 // Returns true if the window containing the given plugin delegate is focused. |
53 bool GetPluginWindowHasFocus(const OpaquePluginRef delegate); | 52 bool GetPluginWindowHasFocus(const OpaquePluginRef delegate); |
54 | 53 |
55 } // namespace MacPluginInterpose | 54 } // namespace MacPluginInterpose |
56 | 55 |
57 #endif // CONTENT_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_ | 56 #endif // CONTENT_PLUGIN_PLUGIN_INTERPOSE_UTIL_MAC_H_ |
OLD | NEW |