| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <queue> | 9 #include <queue> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "webkit/glue/webview.h" | 37 #include "webkit/glue/webview.h" |
| 38 | 38 |
| 39 #if defined(OS_WIN) | 39 #if defined(OS_WIN) |
| 40 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root. | 40 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root. |
| 41 // VS warns when we inherit the WebWidgetClient method implementations from | 41 // VS warns when we inherit the WebWidgetClient method implementations from |
| 42 // RenderWidget. It's safe to ignore that warning. | 42 // RenderWidget. It's safe to ignore that warning. |
| 43 #pragma warning(disable: 4250) | 43 #pragma warning(disable: 4250) |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 class AudioMessageFilter; | 46 class AudioMessageFilter; |
| 47 class ChooseGeolocationProviderCallback; |
| 47 class DictionaryValue; | 48 class DictionaryValue; |
| 48 class DevToolsAgent; | 49 class DevToolsAgent; |
| 49 class DevToolsClient; | 50 class DevToolsClient; |
| 50 class FilePath; | 51 class FilePath; |
| 51 class GURL; | 52 class GURL; |
| 52 class ListValue; | 53 class ListValue; |
| 53 class NavigationState; | 54 class NavigationState; |
| 54 class PrintWebViewHelper; | 55 class PrintWebViewHelper; |
| 55 class WebPluginDelegate; | 56 class WebPluginDelegate; |
| 56 class WebPluginDelegateProxy; | 57 class WebPluginDelegateProxy; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 const std::wstring& text, | 167 const std::wstring& text, |
| 167 int64 node_id); | 168 int64 node_id); |
| 168 virtual void RemoveStoredAutofillEntry(const std::wstring& field_name, | 169 virtual void RemoveStoredAutofillEntry(const std::wstring& field_name, |
| 169 const std::wstring& text); | 170 const std::wstring& text); |
| 170 virtual void UpdateTargetURL(WebView* webview, | 171 virtual void UpdateTargetURL(WebView* webview, |
| 171 const GURL& url); | 172 const GURL& url); |
| 172 virtual void RunFileChooser(bool multi_select, | 173 virtual void RunFileChooser(bool multi_select, |
| 173 const string16& title, | 174 const string16& title, |
| 174 const FilePath& initial_filename, | 175 const FilePath& initial_filename, |
| 175 WebFileChooserCallback* file_chooser); | 176 WebFileChooserCallback* file_chooser); |
| 177 virtual void chooseGeolocationProvider( |
| 178 ChooseGeolocationProviderCallback *geolocation_provider_callback, |
| 179 const WebCore::KURL &url); |
| 176 virtual void AddMessageToConsole(WebView* webview, | 180 virtual void AddMessageToConsole(WebView* webview, |
| 177 const std::wstring& message, | 181 const std::wstring& message, |
| 178 unsigned int line_no, | 182 unsigned int line_no, |
| 179 const std::wstring& source_id); | 183 const std::wstring& source_id); |
| 180 | 184 |
| 181 virtual void DidStartLoading(WebView* webview); | 185 virtual void DidStartLoading(WebView* webview); |
| 182 virtual void DidStopLoading(WebView* webview); | 186 virtual void DidStopLoading(WebView* webview); |
| 183 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 187 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
| 184 WebKit::WebDataSource* ds); | 188 WebKit::WebDataSource* ds); |
| 185 virtual void DidStartProvisionalLoadForFrame( | 189 virtual void DidStartProvisionalLoadForFrame( |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 const string16& message, | 546 const string16& message, |
| 543 const WebKit::WebConsoleMessage::Level&); | 547 const WebKit::WebConsoleMessage::Level&); |
| 544 void OnReservePageIDRange(int size_of_range); | 548 void OnReservePageIDRange(int size_of_range); |
| 545 | 549 |
| 546 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, | 550 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, |
| 547 const gfx::Point& screen_point, | 551 const gfx::Point& screen_point, |
| 548 bool ended, bool cancelled); | 552 bool ended, bool cancelled); |
| 549 void OnDragSourceSystemDragEnded(); | 553 void OnDragSourceSystemDragEnded(); |
| 550 void OnInstallMissingPlugin(); | 554 void OnInstallMissingPlugin(); |
| 551 void OnFileChooserResponse(const std::vector<FilePath>& file_names); | 555 void OnFileChooserResponse(const std::vector<FilePath>& file_names); |
| 556 void OnChooseGeolocationProviderResponse(int provider_id); |
| 552 void OnEnableViewSourceMode(); | 557 void OnEnableViewSourceMode(); |
| 553 void OnEnableIntrinsicWidthChangedMode(); | 558 void OnEnableIntrinsicWidthChangedMode(); |
| 554 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 559 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
| 555 void OnMediaPlayerActionAt(int x, | 560 void OnMediaPlayerActionAt(int x, |
| 556 int y, | 561 int y, |
| 557 const MediaPlayerAction& action); | 562 const MediaPlayerAction& action); |
| 558 void OnNotifyRendererViewType(ViewType::Type view_type); | 563 void OnNotifyRendererViewType(ViewType::Type view_type); |
| 559 void OnUpdateBrowserWindowId(int window_id); | 564 void OnUpdateBrowserWindowId(int window_id); |
| 560 void OnUpdateBackForwardListCount(int back_list_count, | 565 void OnUpdateBackForwardListCount(int back_list_count, |
| 561 int forward_list_count); | 566 int forward_list_count); |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 | 772 |
| 768 // Provides access to this renderer from the remote Inspector UI. | 773 // Provides access to this renderer from the remote Inspector UI. |
| 769 scoped_ptr<DevToolsAgent> devtools_agent_; | 774 scoped_ptr<DevToolsAgent> devtools_agent_; |
| 770 | 775 |
| 771 // DevToolsClient for renderer hosting developer tools UI. It's NULL for other | 776 // DevToolsClient for renderer hosting developer tools UI. It's NULL for other |
| 772 // render views. | 777 // render views. |
| 773 scoped_ptr<DevToolsClient> devtools_client_; | 778 scoped_ptr<DevToolsClient> devtools_client_; |
| 774 | 779 |
| 775 scoped_ptr<WebFileChooserCallback> file_chooser_; | 780 scoped_ptr<WebFileChooserCallback> file_chooser_; |
| 776 | 781 |
| 782 scoped_ptr<ChooseGeolocationProviderCallback> geolocation_provider_callback_; |
| 783 |
| 777 int history_back_list_count_; | 784 int history_back_list_count_; |
| 778 int history_forward_list_count_; | 785 int history_forward_list_count_; |
| 779 | 786 |
| 780 // True if the page has any frame-level unload or beforeunload listeners. | 787 // True if the page has any frame-level unload or beforeunload listeners. |
| 781 bool has_unload_listener_; | 788 bool has_unload_listener_; |
| 782 | 789 |
| 783 // The total number of unrequested popups that exist and can be followed back | 790 // The total number of unrequested popups that exist and can be followed back |
| 784 // to a common opener. This count is shared among all RenderViews created | 791 // to a common opener. This count is shared among all RenderViews created |
| 785 // with CreateWebView(). All popups are treated as unrequested until | 792 // with CreateWebView(). All popups are treated as unrequested until |
| 786 // specifically instructed otherwise by the Browser process. | 793 // specifically instructed otherwise by the Browser process. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 // Id number of browser window which RenderView is attached to. | 865 // Id number of browser window which RenderView is attached to. |
| 859 int browser_window_id_; | 866 int browser_window_id_; |
| 860 | 867 |
| 861 // page id for the last navigation sent to the browser. | 868 // page id for the last navigation sent to the browser. |
| 862 int32 last_top_level_navigation_page_id_; | 869 int32 last_top_level_navigation_page_id_; |
| 863 | 870 |
| 864 DISALLOW_COPY_AND_ASSIGN(RenderView); | 871 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 865 }; | 872 }; |
| 866 | 873 |
| 867 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 874 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |