'private/ewk_custom_handlers_private.h',
'private/ewk_error_private.h',
'private/ewk_favicon_database_private.h',
+ 'private/ewk_frame_private.cc',
'private/ewk_frame_private.h',
'private/ewk_geolocation_private.cc',
'private/ewk_geolocation_private.h',
'tizen_webview/public/tw_back_forward_list_impl.cc',
'tizen_webview/public/tw_find_options.h',
'tizen_webview/public/tw_context_menu_controller.cc',
- 'tizen_webview/public/tw_frame.cc',
'tizen_webview/public/tw_back_forward_list.h',
'tizen_webview/public/tw_policy_decision.cc',
'tizen_webview/public/tw_touch_point.h',
'tizen_webview/public/tw_webview_delegate.cc',
'tizen_webview/public/tw_touch_event.h',
'tizen_webview/public/tw_callbacks.h',
- 'tizen_webview/public/tw_frame.h',
'tizen_webview/public/tw_webview_delegate.h',
'tizen_webview/public/tw_context_menu_controller.h',
'tizen_webview/public/tw_selection_controller.h',
#include "common/web_contents_utils.h"
#include "components/sessions/serialized_navigation_entry.h"
#include "components/sessions/content/content_serialized_navigation_builder.h"
+#include "private/ewk_frame_private.h"
#include "private/ewk_policy_decision_private.h"
#include "private/ewk_settings_private.h"
#include "private/ewk_text_style_private.h"
return settings_.get();
}
-tizen_webview::Frame* EWebView::GetMainFrame() {
+_Ewk_Frame* EWebView::GetMainFrame() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (!frame_.get()) {
RenderViewHost* render_view_host = web_contents_->GetRenderViewHost();
if (render_view_host)
- frame_.reset(new tizen_webview::Frame(render_view_host->GetMainFrame()));
+ frame_.reset(new _Ewk_Frame(render_view_host->GetMainFrame()));
}
return frame_.get();
#include "tizen_webview/public/tw_touch_event.h"
#include "tizen_webview/public/tw_callbacks.h"
#include "tizen_webview/public/tw_content_security_policy.h"
-#include "tizen_webview/public/tw_frame.h"
#include "tizen_webview/public/tw_find_options.h"
#include "tizen_webview/public/tw_touch_event.h"
const char* GetSelectedText() const;
bool IsLastAvailableTextEmpty() const;
Ewk_Settings* GetSettings();
- tizen_webview::Frame* GetMainFrame();
+ _Ewk_Frame* GetMainFrame();
void UpdateWebKitPreferences();
void LoadHTMLString(const char* html, const char* base_uri, const char* unreachable_uri);
void LoadPlainTextString(const char* plain_text);
scoped_ptr<content::WebContentsDelegateEfl> web_contents_delegate_;
std::string pending_url_request_;
scoped_ptr<Ewk_Settings> settings_;
- scoped_ptr<tizen_webview::Frame> frame_;
+ scoped_ptr<_Ewk_Frame> frame_;
scoped_ptr<tizen_webview::PolicyDecision> window_policy_;
Evas_Object* evas_object_;
Evas_Object* native_view_;
-// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Copyright 2014 Samsung Electronics. All rights reserved.
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Copyright 2015 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "tw_frame.h"
+#include "ewk_frame_private.h"
#include "common/navigation_policy_params.h"
#include "content/public/browser/render_frame_host.h"
using content::RenderViewHost;
using content::WebContents;
-namespace tizen_webview {
-Frame::Frame(RenderFrameHost* rfh)
+_Ewk_Frame::_Ewk_Frame(RenderFrameHost* rfh)
: is_main_frame_(false) {
if (!rfh)
return;
is_main_frame_ = wc->GetMainFrame() == rfh;
}
-Frame::Frame(const NavigationPolicyParams ¶ms)
+_Ewk_Frame::_Ewk_Frame(const NavigationPolicyParams ¶ms)
: is_main_frame_(params.is_main_frame)
{
}
-} //namespace tizen_webview
+
#ifndef EWK_FRAME_PRIVATE_H
#define EWK_FRAME_PRIVATE_H
-#include <tizen_webview/public/tw_frame.h>
+namespace content {
+class RenderFrameHost;
+}
-struct _Ewk_Frame : public tizen_webview::Frame {
+struct NavigationPolicyParams;
+
+class _Ewk_Frame {
+public:
+ _Ewk_Frame(content::RenderFrameHost* rfh);
+ _Ewk_Frame(const NavigationPolicyParams ¶ms);
+
+ bool IsMainFrame() const { return is_main_frame_; }
+
+private:
+ bool is_main_frame_;
};
+
#endif // EWK_FRAME_PRIVATE_H
#include <content/public/browser/render_view_host.h>
#include "eweb_view.h"
#include <net/http/http_response_headers.h>
+#include "private/ewk_frame_private.h"
using content::BrowserThread;
using content::RenderFrameHost;
_Ewk_Policy_Decision::_Ewk_Policy_Decision(const NavigationPolicyParams ¶ms, content::RenderViewHost* rvh)
: web_view_(NULL)
, navigation_policy_handler_(new NavigationPolicyHandlerEfl(rvh, params))
- , frame_(new tizen_webview::Frame(params))
+ , frame_(new _Ewk_Frame(params))
, cookie_(params.cookie)
, httpMethod_(params.httpMethod)
, responseHeaders_(NULL)
view->web_contents().GetMainFrame();
}
- frame_.reset(new tizen_webview::Frame(rfh));
+ frame_.reset(new _Ewk_Frame(rfh));
}
_Ewk_Policy_Decision::~_Ewk_Policy_Decision() {
* In some situations there is no renderer associated to the response
* Such case can be observed while running TC utc_blink_ewk_geolocation_permission_request_suspend_func
*/
- frame_.reset(new tizen_webview::Frame(host));
+ frame_.reset(new _Ewk_Frame(host));
}
}
}
-tizen_webview::Frame* _Ewk_Policy_Decision::GetFrameRef() const {
+_Ewk_Frame* _Ewk_Policy_Decision::GetFrameRef() const {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Ups, forgot to initialize something?
DCHECK(frame_.get());
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/common/resource_type.h"
#include "third_party/WebKit/public/web/WebViewModeEnums.h"
-#include "tizen_webview/public/tw_frame.h"
#include "tizen_webview/public/tw_policy_decision.h"
#include <tizen_webview/public/tw_policy_decision.h>
NavigationPolicyHandlerEfl* GetNavigationPolicyHandler() const { return navigation_policy_handler_.get(); }
- tizen_webview::Frame* GetFrameRef() const;
+ _Ewk_Frame* GetFrameRef() const;
void InitializeOnUIThread();
void ParseUrl(const GURL& url);
EWebView* web_view_;
scoped_refptr<PolicyResponseDelegateEfl> policy_response_delegate_;
scoped_ptr<NavigationPolicyHandlerEfl> navigation_policy_handler_;
- scoped_ptr<tizen_webview::Frame> frame_;
+ scoped_ptr<_Ewk_Frame> frame_;
content::WebContentsDelegate::NewWindowDecideCallback window_create_callback_;
std::string cookie_;
std::string url_;
+++ /dev/null
-// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Copyright 2014 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef TIZEN_WEBVIEW_PUBLIC_TW_FRAME_H_
-#define TIZEN_WEBVIEW_PUBLIC_TW_FRAME_H_
-
-namespace content {
-class RenderFrameHost;
-}
-
-struct NavigationPolicyParams;
-
-namespace tizen_webview {
-class Frame {
-public:
- Frame(content::RenderFrameHost* rfh);
- Frame(const NavigationPolicyParams ¶ms);
-
- bool IsMainFrame() const { return is_main_frame_; }
-
-private:
- bool is_main_frame_;
-};
-}
-
-#endif // TIZEN_WEBVIEW_PUBLIC_TW_FRAME_H_
return impl_->GetResponseStatusCode();
}
-tizen_webview::Frame* PolicyDecision::GetFrameRef() const {
+_Ewk_Frame* PolicyDecision::GetFrameRef() const {
return impl_->GetFrameRef();
}
struct NavigationPolicyParams;
class PolicyResponseDelegateEfl;
class EWebView;
+class _Ewk_Frame;
namespace tizen_webview {
-class Frame;
class WebView;
enum Policy_Decision_Type {
tizen_webview::Policy_Decision_Type GetDecisionType() const;
Eina_Hash* GetResponseHeaders() const;
int GetResponseStatusCode() const;
- Frame* GetFrameRef() const;
+ _Ewk_Frame* GetFrameRef() const;
private:
typedef ::_Ewk_Policy_Decision Impl;
Impl* impl_;
#endif
}
-tizen_webview::Frame* WebView::GetMainFrame() {
+_Ewk_Frame* WebView::GetMainFrame() {
return impl_->GetMainFrame();
}
// TODO END
class EWebView;
+class _Ewk_Frame;
namespace gfx {
class Point;
namespace tizen_webview {
-class Frame;
class ContextMenuController;
class SelectionController;
class WebContext;
void ResetContextMenuController();
void HideSelectionHandlers();
- Frame* GetMainFrame();
+ _Ewk_Frame* GetMainFrame();
// ---- User Agent
bool SetUserAgent(const char* userAgent);