| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/renderer/automation/dom_automation_controller.h" | 22 #include "chrome/renderer/automation/dom_automation_controller.h" |
| 23 #include "chrome/renderer/dom_ui_bindings.h" | 23 #include "chrome/renderer/dom_ui_bindings.h" |
| 24 #include "chrome/renderer/external_host_bindings.h" | 24 #include "chrome/renderer/external_host_bindings.h" |
| 25 #include "chrome/renderer/extensions/extension_bindings.h" | 25 #include "chrome/renderer/extensions/extension_bindings.h" |
| 26 #include "chrome/renderer/external_js_object.h" | 26 #include "chrome/renderer/external_js_object.h" |
| 27 #include "chrome/renderer/render_widget.h" | 27 #include "chrome/renderer/render_widget.h" |
| 28 #include "media/audio/audio_output.h" | 28 #include "media/audio/audio_output.h" |
| 29 #include "testing/gtest/include/gtest/gtest_prod.h" | 29 #include "testing/gtest/include/gtest/gtest_prod.h" |
| 30 #include "webkit/glue/console_message_level.h" | 30 #include "webkit/glue/console_message_level.h" |
| 31 #include "webkit/glue/dom_serializer_delegate.h" | 31 #include "webkit/glue/dom_serializer_delegate.h" |
| 32 #include "webkit/glue/feed.h" |
| 32 #include "webkit/glue/form_data.h" | 33 #include "webkit/glue/form_data.h" |
| 33 #include "webkit/glue/password_form_dom_manager.h" | 34 #include "webkit/glue/password_form_dom_manager.h" |
| 34 #include "webkit/glue/webview_delegate.h" | 35 #include "webkit/glue/webview_delegate.h" |
| 35 #include "webkit/glue/webview.h" | 36 #include "webkit/glue/webview.h" |
| 36 | 37 |
| 37 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
| 38 // RenderView is a diamond-shaped hierarchy, with WebWidgetDelegate at the root. | 39 // RenderView is a diamond-shaped hierarchy, with WebWidgetDelegate at the root. |
| 39 // VS warns when we inherit the WebWidgetDelegate method implementations from | 40 // VS warns when we inherit the WebWidgetDelegate method implementations from |
| 40 // RenderWidget. It's safe to ignore that warning. | 41 // RenderWidget. It's safe to ignore that warning. |
| 41 #pragma warning(disable: 4250) | 42 #pragma warning(disable: 4250) |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 bool RunJavaScriptMessage(int type, | 425 bool RunJavaScriptMessage(int type, |
| 425 const std::wstring& message, | 426 const std::wstring& message, |
| 426 const std::wstring& default_value, | 427 const std::wstring& default_value, |
| 427 const GURL& frame_url, | 428 const GURL& frame_url, |
| 428 std::wstring* result); | 429 std::wstring* result); |
| 429 | 430 |
| 430 // Adds search provider from the given OpenSearch description URL as a | 431 // Adds search provider from the given OpenSearch description URL as a |
| 431 // keyword search. | 432 // keyword search. |
| 432 void AddGURLSearchProvider(const GURL& osd_url, bool autodetected); | 433 void AddGURLSearchProvider(const GURL& osd_url, bool autodetected); |
| 433 | 434 |
| 435 // Update the feed list. |
| 436 void UpdateFeedList(scoped_refptr<FeedList> feedlist); |
| 437 |
| 434 // Tells the browser process to navigate to a back/forward entry at the given | 438 // Tells the browser process to navigate to a back/forward entry at the given |
| 435 // offset from current. | 439 // offset from current. |
| 436 void GoToEntryAtOffset(int offset); | 440 void GoToEntryAtOffset(int offset); |
| 437 | 441 |
| 438 // RenderView IPC message handlers | 442 // RenderView IPC message handlers |
| 439 void SendThumbnail(); | 443 void SendThumbnail(); |
| 440 void OnPrintPages(); | 444 void OnPrintPages(); |
| 441 void OnNavigate(const ViewMsg_Navigate_Params& params); | 445 void OnNavigate(const ViewMsg_Navigate_Params& params); |
| 442 void OnStop(); | 446 void OnStop(); |
| 443 void OnLoadAlternateHTMLText(const std::string& html_contents, | 447 void OnLoadAlternateHTMLText(const std::string& html_contents, |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 // change but is overridden by tests. | 799 // change but is overridden by tests. |
| 796 int delay_seconds_for_form_state_sync_; | 800 int delay_seconds_for_form_state_sync_; |
| 797 | 801 |
| 798 // A set of audio renderers registered to use IPC for audio output. | 802 // A set of audio renderers registered to use IPC for audio output. |
| 799 IDMap<AudioRendererImpl> audio_renderers_; | 803 IDMap<AudioRendererImpl> audio_renderers_; |
| 800 | 804 |
| 801 DISALLOW_COPY_AND_ASSIGN(RenderView); | 805 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 802 }; | 806 }; |
| 803 | 807 |
| 804 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 808 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |