| 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 25 matching lines...) Expand all Loading... |
| 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
| 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
| 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
| 46 #include "ui/base/javascript_message_type.h" |
| 46 #include "ui/gfx/surface/transport_dib.h" | 47 #include "ui/gfx/surface/transport_dib.h" |
| 47 #include "webkit/glue/webpreferences.h" | 48 #include "webkit/glue/webpreferences.h" |
| 48 #include "webkit/media/webmediaplayer_delegate.h" | 49 #include "webkit/media/webmediaplayer_delegate.h" |
| 49 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 50 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
| 50 | 51 |
| 51 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
| 52 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the | 53 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the |
| 53 // root. VS warns when we inherit the WebWidgetClient method implementations | 54 // root. VS warns when we inherit the WebWidgetClient method implementations |
| 54 // from RenderWidget. It's safe to ignore that warning. | 55 // from RenderWidget. It's safe to ignore that warning. |
| 55 #pragma warning(disable: 4250) | 56 #pragma warning(disable: 4250) |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 // called, that means we have got whole html page. In here we should | 705 // called, that means we have got whole html page. In here we should |
| 705 // finally get right encoding of page. | 706 // finally get right encoding of page. |
| 706 void UpdateEncoding(WebKit::WebFrame* frame, | 707 void UpdateEncoding(WebKit::WebFrame* frame, |
| 707 const std::string& encoding_name); | 708 const std::string& encoding_name); |
| 708 | 709 |
| 709 void OpenURL(WebKit::WebFrame* frame, | 710 void OpenURL(WebKit::WebFrame* frame, |
| 710 const GURL& url, | 711 const GURL& url, |
| 711 const GURL& referrer, | 712 const GURL& referrer, |
| 712 WebKit::WebNavigationPolicy policy); | 713 WebKit::WebNavigationPolicy policy); |
| 713 | 714 |
| 714 bool RunJavaScriptMessage(int type, | 715 bool RunJavaScriptMessage(ui::JavascriptMessageType type, |
| 715 const string16& message, | 716 const string16& message, |
| 716 const string16& default_value, | 717 const string16& default_value, |
| 717 const GURL& frame_url, | 718 const GURL& frame_url, |
| 718 string16* result); | 719 string16* result); |
| 719 | 720 |
| 720 // Sends a message and runs a nested message loop. | 721 // Sends a message and runs a nested message loop. |
| 721 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); | 722 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); |
| 722 | 723 |
| 723 // Called when the "pinned to left/right edge" state needs to be updated. | 724 // Called when the "pinned to left/right edge" state needs to be updated. |
| 724 void UpdateScrollState(WebKit::WebFrame* frame); | 725 void UpdateScrollState(WebKit::WebFrame* frame); |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 // bunch of stuff, you should probably create a helper class and put your | 1220 // bunch of stuff, you should probably create a helper class and put your |
| 1220 // data and methods on that to avoid bloating RenderView more. You can | 1221 // data and methods on that to avoid bloating RenderView more. You can |
| 1221 // use the Observer interface to filter IPC messages and receive frame change | 1222 // use the Observer interface to filter IPC messages and receive frame change |
| 1222 // notifications. | 1223 // notifications. |
| 1223 // --------------------------------------------------------------------------- | 1224 // --------------------------------------------------------------------------- |
| 1224 | 1225 |
| 1225 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1226 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1226 }; | 1227 }; |
| 1227 | 1228 |
| 1228 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1229 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |