| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" |
| 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
| 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
| 47 #include "ui/base/javascript_message_type.h" |
| 47 #include "ui/gfx/surface/transport_dib.h" | 48 #include "ui/gfx/surface/transport_dib.h" |
| 48 #include "webkit/glue/webpreferences.h" | 49 #include "webkit/glue/webpreferences.h" |
| 49 #include "webkit/media/webmediaplayer_delegate.h" | 50 #include "webkit/media/webmediaplayer_delegate.h" |
| 50 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 51 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
| 51 | 52 |
| 52 #if defined(OS_WIN) | 53 #if defined(OS_WIN) |
| 53 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the | 54 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the |
| 54 // root. VS warns when we inherit the WebWidgetClient method implementations | 55 // root. VS warns when we inherit the WebWidgetClient method implementations |
| 55 // from RenderWidget. It's safe to ignore that warning. | 56 // from RenderWidget. It's safe to ignore that warning. |
| 56 #pragma warning(disable: 4250) | 57 #pragma warning(disable: 4250) |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 // called, that means we have got whole html page. In here we should | 712 // called, that means we have got whole html page. In here we should |
| 712 // finally get right encoding of page. | 713 // finally get right encoding of page. |
| 713 void UpdateEncoding(WebKit::WebFrame* frame, | 714 void UpdateEncoding(WebKit::WebFrame* frame, |
| 714 const std::string& encoding_name); | 715 const std::string& encoding_name); |
| 715 | 716 |
| 716 void OpenURL(WebKit::WebFrame* frame, | 717 void OpenURL(WebKit::WebFrame* frame, |
| 717 const GURL& url, | 718 const GURL& url, |
| 718 const content::Referrer& referrer, | 719 const content::Referrer& referrer, |
| 719 WebKit::WebNavigationPolicy policy); | 720 WebKit::WebNavigationPolicy policy); |
| 720 | 721 |
| 721 bool RunJavaScriptMessage(int type, | 722 bool RunJavaScriptMessage(ui::JavascriptMessageType type, |
| 722 const string16& message, | 723 const string16& message, |
| 723 const string16& default_value, | 724 const string16& default_value, |
| 724 const GURL& frame_url, | 725 const GURL& frame_url, |
| 725 string16* result); | 726 string16* result); |
| 726 | 727 |
| 727 // Sends a message and runs a nested message loop. | 728 // Sends a message and runs a nested message loop. |
| 728 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); | 729 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); |
| 729 | 730 |
| 730 // Called when the "pinned to left/right edge" state needs to be updated. | 731 // Called when the "pinned to left/right edge" state needs to be updated. |
| 731 void UpdateScrollState(WebKit::WebFrame* frame); | 732 void UpdateScrollState(WebKit::WebFrame* frame); |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1227 // bunch of stuff, you should probably create a helper class and put your | 1228 // bunch of stuff, you should probably create a helper class and put your |
| 1228 // data and methods on that to avoid bloating RenderView more. You can | 1229 // data and methods on that to avoid bloating RenderView more. You can |
| 1229 // use the Observer interface to filter IPC messages and receive frame change | 1230 // use the Observer interface to filter IPC messages and receive frame change |
| 1230 // notifications. | 1231 // notifications. |
| 1231 // --------------------------------------------------------------------------- | 1232 // --------------------------------------------------------------------------- |
| 1232 | 1233 |
| 1233 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1234 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1234 }; | 1235 }; |
| 1235 | 1236 |
| 1236 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1237 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |