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 // Helper functions that are used by the NPObject proxy and stub. | 5 // Helper functions that are used by the NPObject proxy and stub. |
6 | 6 |
7 #ifndef CONTENT_COMMON_NPOBJECT_UTIL_H_ | 7 #ifndef CONTENT_COMMON_NPOBJECT_UTIL_H_ |
8 #define CONTENT_COMMON_NPOBJECT_UTIL_H_ | 8 #define CONTENT_COMMON_NPOBJECT_UTIL_H_ |
9 #pragma once | |
10 | 9 |
11 #include "build/build_config.h" | 10 #include "build/build_config.h" |
12 | 11 |
13 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
14 #include <windows.h> | 13 #include <windows.h> |
15 #endif | 14 #endif |
16 | 15 |
17 #include "content/common/npobject_stub.h" | 16 #include "content/common/npobject_stub.h" |
18 | 17 |
19 class GURL; | 18 class GURL; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #if defined(OS_WIN) | 61 #if defined(OS_WIN) |
63 // Given a plugin's HWND, returns an event associated with the WebContentsImpl | 62 // Given a plugin's HWND, returns an event associated with the WebContentsImpl |
64 // that's set when inside a messagebox. This tells the plugin process that | 63 // that's set when inside a messagebox. This tells the plugin process that |
65 // the message queue should be pumped (as what would happen if everything was | 64 // the message queue should be pumped (as what would happen if everything was |
66 // in-process). This avoids deadlocks when a plugin invokes javascript that | 65 // in-process). This avoids deadlocks when a plugin invokes javascript that |
67 // causes a message box to come up. | 66 // causes a message box to come up. |
68 HANDLE GetMessageBoxEvent(HWND hwnd); | 67 HANDLE GetMessageBoxEvent(HWND hwnd); |
69 #endif // defined(OS_WIN) | 68 #endif // defined(OS_WIN) |
70 | 69 |
71 #endif // CONTENT_COMMON_NPOBJECT_UTIL_H_ | 70 #endif // CONTENT_COMMON_NPOBJECT_UTIL_H_ |
OLD | NEW |