| Index: third_party/grpc/src/python/grpcio/grpc/_cython/loader.c
|
| diff --git a/third_party/WebKit/Source/core/page/PagePopup.h b/third_party/grpc/src/python/grpcio/grpc/_cython/loader.c
|
| similarity index 72%
|
| copy from third_party/WebKit/Source/core/page/PagePopup.h
|
| copy to third_party/grpc/src/python/grpcio/grpc/_cython/loader.c
|
| index 1f6583187d90a45c516e5e729d4c92a4e1037a5a..3b72806ea18cb0426f65cf558225c1327f50e1e2 100644
|
| --- a/third_party/WebKit/Source/core/page/PagePopup.h
|
| +++ b/third_party/grpc/src/python/grpcio/grpc/_cython/loader.c
|
| @@ -1,5 +1,7 @@
|
| /*
|
| - * Copyright (C) 2012 Google Inc. All rights reserved.
|
| + *
|
| + * Copyright 2016, Google Inc.
|
| + * All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -26,29 +28,41 @@
|
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + *
|
| */
|
|
|
| -#ifndef PagePopup_h
|
| -#define PagePopup_h
|
| +#include "loader.h"
|
|
|
| -#include "wtf/Forward.h"
|
| +#ifdef __cplusplus
|
| +extern "C" {
|
| +#endif /* __cpluslus */
|
|
|
| -namespace blink {
|
| +#if GPR_WIN32
|
|
|
| -class AXObject;
|
| -class IntRect;
|
| +int pygrpc_load_core(char *path) {
|
| + HMODULE grpc_c;
|
| +#ifdef GPR_ARCH_32
|
| + /* Close your eyes for a moment, it'll all be over soon. */
|
| + char *six = strrchr(path, '6');
|
| + *six++ = '3';
|
| + *six = '2';
|
| +#endif
|
| + grpc_c = LoadLibraryA(path);
|
| + if (grpc_c) {
|
| + pygrpc_load_imports(grpc_c);
|
| + return 1;
|
| + }
|
|
|
| -// A PagePopup object is created by ChromeClient::openPagePopup(), and deleted
|
| -// by ChromeClient::closePagePopup().
|
| -class PagePopup {
|
| -public:
|
| - virtual AXObject* rootAXObject() = 0;
|
| - virtual void setWindowRect(const IntRect&) = 0;
|
| - virtual void postMessage(const String& message) = 0;
|
| + return 0;
|
| +}
|
|
|
| -protected:
|
| - virtual ~PagePopup() { }
|
| -};
|
| +#else
|
| +
|
| +int pygrpc_load_core(char *path) { return 1; }
|
| +
|
| +#endif /* !GPR_WIN32 */
|
| +
|
| +#ifdef __cplusplus
|
| +}
|
| +#endif /* __cpluslus */
|
|
|
| -} // namespace blink
|
| -#endif
|
|
|