| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "chrome/common/edit_command.h" | 23 #include "chrome/common/edit_command.h" |
| 24 #include "chrome/common/navigation_gesture.h" | 24 #include "chrome/common/navigation_gesture.h" |
| 25 #include "chrome/common/notification_type.h" | 25 #include "chrome/common/notification_type.h" |
| 26 #include "chrome/common/renderer_preferences.h" | 26 #include "chrome/common/renderer_preferences.h" |
| 27 #include "chrome/common/view_types.h" | 27 #include "chrome/common/view_types.h" |
| 28 #include "chrome/renderer/automation/dom_automation_controller.h" | 28 #include "chrome/renderer/automation/dom_automation_controller.h" |
| 29 #include "chrome/renderer/dom_ui_bindings.h" | 29 #include "chrome/renderer/dom_ui_bindings.h" |
| 30 #include "chrome/renderer/extensions/extension_process_bindings.h" | 30 #include "chrome/renderer/extensions/extension_process_bindings.h" |
| 31 #include "chrome/renderer/external_host_bindings.h" | 31 #include "chrome/renderer/external_host_bindings.h" |
| 32 #include "chrome/renderer/notification_provider.h" |
| 32 #include "chrome/renderer/render_widget.h" | 33 #include "chrome/renderer/render_widget.h" |
| 33 #include "third_party/skia/include/core/SkBitmap.h" | 34 #include "third_party/skia/include/core/SkBitmap.h" |
| 34 #include "testing/gtest/include/gtest/gtest_prod.h" | 35 #include "testing/gtest/include/gtest/gtest_prod.h" |
| 35 #include "webkit/api/public/WebConsoleMessage.h" | 36 #include "webkit/api/public/WebConsoleMessage.h" |
| 36 #include "webkit/api/public/WebFrameClient.h" | 37 #include "webkit/api/public/WebFrameClient.h" |
| 37 #include "webkit/api/public/WebTextDirection.h" | 38 #include "webkit/api/public/WebTextDirection.h" |
| 38 #include "webkit/glue/dom_serializer_delegate.h" | 39 #include "webkit/glue/dom_serializer_delegate.h" |
| 39 #include "webkit/glue/form_data.h" | 40 #include "webkit/glue/form_data.h" |
| 40 #include "webkit/glue/image_resource_fetcher.h" | 41 #include "webkit/glue/image_resource_fetcher.h" |
| 41 #include "webkit/glue/password_form_dom_manager.h" | 42 #include "webkit/glue/password_form_dom_manager.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 const WebKit::WebPoint& from, const WebKit::WebDragData& data, | 265 const WebKit::WebPoint& from, const WebKit::WebDragData& data, |
| 265 WebKit::WebDragOperationsMask mask); | 266 WebKit::WebDragOperationsMask mask); |
| 266 virtual bool acceptsLoadDrops(); | 267 virtual bool acceptsLoadDrops(); |
| 267 virtual void focusNext(); | 268 virtual void focusNext(); |
| 268 virtual void focusPrevious(); | 269 virtual void focusPrevious(); |
| 269 virtual void navigateBackForwardSoon(int offset); | 270 virtual void navigateBackForwardSoon(int offset); |
| 270 virtual int historyBackListCount(); | 271 virtual int historyBackListCount(); |
| 271 virtual int historyForwardListCount(); | 272 virtual int historyForwardListCount(); |
| 272 virtual void didAddHistoryItem(); | 273 virtual void didAddHistoryItem(); |
| 273 | 274 |
| 275 virtual WebKit::WebNotificationPresenter* GetNotificationPresenter() { |
| 276 return notification_provider_.get(); |
| 277 } |
| 278 |
| 274 // WebKit::WebWidgetClient | 279 // WebKit::WebWidgetClient |
| 275 // Most methods are handled by RenderWidget. | 280 // Most methods are handled by RenderWidget. |
| 276 virtual void show(WebKit::WebNavigationPolicy policy); | 281 virtual void show(WebKit::WebNavigationPolicy policy); |
| 277 virtual void closeWidgetSoon(); | 282 virtual void closeWidgetSoon(); |
| 278 virtual void runModal(); | 283 virtual void runModal(); |
| 279 | 284 |
| 280 // WebKit::WebFrameClient | 285 // WebKit::WebFrameClient |
| 281 virtual WebKit::WebPlugin* createPlugin( | 286 virtual WebKit::WebPlugin* createPlugin( |
| 282 WebKit::WebFrame* frame, const WebKit::WebPluginParams& params); | 287 WebKit::WebFrame* frame, const WebKit::WebPluginParams& params); |
| 283 virtual WebKit::WebWorker* createWorker( | 288 virtual WebKit::WebWorker* createWorker( |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 // Cache the preferred width of the page in order to prevent sending the IPC | 897 // Cache the preferred width of the page in order to prevent sending the IPC |
| 893 // when layout() recomputes it but it doesn't actually change. | 898 // when layout() recomputes it but it doesn't actually change. |
| 894 int preferred_width_; | 899 int preferred_width_; |
| 895 | 900 |
| 896 // If true, we send IPC messages when the preferred width changes. | 901 // If true, we send IPC messages when the preferred width changes. |
| 897 bool send_preferred_width_changes_; | 902 bool send_preferred_width_changes_; |
| 898 | 903 |
| 899 // The text selection the last time DidChangeSelection got called. | 904 // The text selection the last time DidChangeSelection got called. |
| 900 std::string last_selection_; | 905 std::string last_selection_; |
| 901 | 906 |
| 907 // Hopds a reference to the service which provides desktop notifications. |
| 908 scoped_refptr<NotificationProvider> notification_provider_; |
| 909 |
| 902 // Set to true if request for capturing page text has been made. | 910 // Set to true if request for capturing page text has been made. |
| 903 bool determine_page_text_after_loading_stops_; | 911 bool determine_page_text_after_loading_stops_; |
| 904 | 912 |
| 905 // Holds state pertaining to a navigation that we initiated. This is held by | 913 // Holds state pertaining to a navigation that we initiated. This is held by |
| 906 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_ | 914 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_ |
| 907 // as a temporary holder for the state until the WebDataSource corresponding | 915 // as a temporary holder for the state until the WebDataSource corresponding |
| 908 // to the new navigation is created. See DidCreateDataSource. | 916 // to the new navigation is created. See DidCreateDataSource. |
| 909 scoped_ptr<NavigationState> pending_navigation_state_; | 917 scoped_ptr<NavigationState> pending_navigation_state_; |
| 910 | 918 |
| 911 // PrintWebViewHelper handles printing. Note that this object is constructed | 919 // PrintWebViewHelper handles printing. Note that this object is constructed |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 | 974 |
| 967 // ImageResourceFetchers schedule via DownloadImage. | 975 // ImageResourceFetchers schedule via DownloadImage. |
| 968 typedef std::set<webkit_glue::ImageResourceFetcher*> ImageResourceFetcherSet; | 976 typedef std::set<webkit_glue::ImageResourceFetcher*> ImageResourceFetcherSet; |
| 969 ImageResourceFetcherSet image_fetchers_; | 977 ImageResourceFetcherSet image_fetchers_; |
| 970 | 978 |
| 971 | 979 |
| 972 DISALLOW_COPY_AND_ASSIGN(RenderView); | 980 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 973 }; | 981 }; |
| 974 | 982 |
| 975 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 983 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |