2012-04-03 03:34:16 +02:00
|
|
|
// Copyright (c) 2012 The Chromium Embedded Framework Authors.
|
|
|
|
// Portions copyright (c) 2011 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_RENDERER_WEBKIT_GLUE_H_
|
|
|
|
#define CEF_LIBCEF_RENDERER_WEBKIT_GLUE_H_
|
|
|
|
|
|
|
|
#include <string>
|
2013-06-22 04:06:32 +02:00
|
|
|
#include "base/strings/string16.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "v8/include/v8.h"
|
|
|
|
|
|
|
|
namespace WebKit {
|
|
|
|
class WebFrame;
|
|
|
|
class WebView;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace webkit_glue {
|
|
|
|
|
2013-07-24 22:15:18 +02:00
|
|
|
bool CanGoBack(WebKit::WebView* view);
|
|
|
|
bool CanGoForward(WebKit::WebView* view);
|
|
|
|
void GoBack(WebKit::WebView* view);
|
|
|
|
void GoForward(WebKit::WebView* view);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Retrieve the V8 context associated with the frame.
|
|
|
|
v8::Handle<v8::Context> GetV8Context(WebKit::WebFrame* frame);
|
|
|
|
|
2013-06-04 19:41:37 +02:00
|
|
|
// Returns the text of the document element.
|
|
|
|
base::string16 DumpDocumentText(WebKit::WebFrame* frame);
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
} // webkit_glue
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_RENDERER_WEBKIT_GLUE_H_
|