2009-07-24 21:11:01 +02:00
|
|
|
// Copyright (c) 2008-2009 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
2008-12-02 16:48:14 +01:00
|
|
|
|
2009-04-28 02:29:14 +02:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
2008-12-02 16:48:14 +01:00
|
|
|
#include <string>
|
|
|
|
|
2009-04-28 02:29:14 +02:00
|
|
|
#include "base/string_piece.h"
|
2009-05-28 02:31:21 +02:00
|
|
|
#include "v8/include/v8.h"
|
2009-04-28 02:29:14 +02:00
|
|
|
|
2009-08-13 19:23:08 +02:00
|
|
|
namespace WebKit {
|
2008-12-02 16:48:14 +01:00
|
|
|
class WebFrame;
|
2009-08-13 19:23:08 +02:00
|
|
|
}
|
2008-12-02 16:48:14 +01:00
|
|
|
class WebView;
|
|
|
|
|
|
|
|
namespace webkit_glue {
|
|
|
|
|
|
|
|
#if defined(OS_WIN)
|
|
|
|
// Capture a bitmap of the web view.
|
|
|
|
void CaptureWebViewBitmap(HWND mainWnd, WebView* webview, HBITMAP& bitmap,
|
|
|
|
SIZE& size);
|
|
|
|
|
|
|
|
// Save a bitmap image to file, providing optional alternative data in |lpBits|
|
|
|
|
BOOL SaveBitmapToFile(HBITMAP hBmp, HDC hDC, LPCTSTR file, LPBYTE lpBits);
|
|
|
|
#endif
|
|
|
|
|
2009-03-05 18:14:16 +01:00
|
|
|
// Text encoding objects must be initialized on the main thread.
|
|
|
|
void InitializeTextEncoding();
|
|
|
|
|
2009-07-24 21:11:01 +02:00
|
|
|
// This is called indirectly by the network layer to access resources.
|
2009-04-28 02:29:14 +02:00
|
|
|
StringPiece NetResourceProvider(int key);
|
|
|
|
|
2009-05-28 02:31:21 +02:00
|
|
|
// Retrieve the V8 context associated with the frame.
|
2009-08-13 19:23:08 +02:00
|
|
|
v8::Handle<v8::Context> GetV8Context(WebKit::WebFrame* frame);
|
2009-05-28 02:31:21 +02:00
|
|
|
|
2008-12-02 16:48:14 +01:00
|
|
|
} // namespace webkit_glue
|