| 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 #include "content/browser/renderer_host/render_view_host.h" | 5 #include "content/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "content/browser/host_zoom_map.h" | 23 #include "content/browser/host_zoom_map.h" |
| 24 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 24 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
| 25 #include "content/browser/power_save_blocker.h" | 25 #include "content/browser/power_save_blocker.h" |
| 26 #include "content/browser/renderer_host/render_process_host.h" | 26 #include "content/browser/renderer_host/render_process_host.h" |
| 27 #include "content/browser/renderer_host/render_view_host_delegate.h" | 27 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 28 #include "content/browser/renderer_host/render_view_host_observer.h" | 28 #include "content/browser/renderer_host/render_view_host_observer.h" |
| 29 #include "content/browser/renderer_host/render_widget_host.h" | 29 #include "content/browser/renderer_host/render_widget_host.h" |
| 30 #include "content/browser/renderer_host/render_widget_host_view.h" | 30 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 31 #include "content/browser/site_instance.h" | 31 #include "content/browser/site_instance.h" |
| 32 #include "content/browser/user_metrics.h" | 32 #include "content/browser/user_metrics.h" |
| 33 #include "content/common/content_constants.h" | |
| 34 #include "content/common/desktop_notification_messages.h" | 33 #include "content/common/desktop_notification_messages.h" |
| 35 #include "content/common/drag_messages.h" | 34 #include "content/common/drag_messages.h" |
| 36 #include "content/public/browser/notification_service.h" | |
| 37 #include "content/common/speech_input_messages.h" | 35 #include "content/common/speech_input_messages.h" |
| 38 #include "content/common/swapped_out_messages.h" | 36 #include "content/common/swapped_out_messages.h" |
| 39 #include "content/common/view_messages.h" | 37 #include "content/common/view_messages.h" |
| 40 #include "content/public/browser/content_browser_client.h" | 38 #include "content/public/browser/content_browser_client.h" |
| 41 #include "content/public/browser/native_web_keyboard_event.h" | 39 #include "content/public/browser/native_web_keyboard_event.h" |
| 42 #include "content/public/browser/notification_details.h" | 40 #include "content/public/browser/notification_details.h" |
| 41 #include "content/public/browser/notification_service.h" |
| 43 #include "content/public/browser/notification_types.h" | 42 #include "content/public/browser/notification_types.h" |
| 44 #include "content/public/common/bindings_policy.h" | 43 #include "content/public/common/bindings_policy.h" |
| 44 #include "content/public/common/content_constants.h" |
| 45 #include "content/public/common/result_codes.h" | 45 #include "content/public/common/result_codes.h" |
| 46 #include "content/public/common/url_constants.h" | 46 #include "content/public/common/url_constants.h" |
| 47 #include "net/base/net_util.h" | 47 #include "net/base/net_util.h" |
| 48 #include "net/url_request/url_request_context_getter.h" | 48 #include "net/url_request/url_request_context_getter.h" |
| 49 #include "third_party/skia/include/core/SkBitmap.h" | 49 #include "third_party/skia/include/core/SkBitmap.h" |
| 50 #include "ui/gfx/native_widget_types.h" | 50 #include "ui/gfx/native_widget_types.h" |
| 51 #include "webkit/glue/context_menu.h" | 51 #include "webkit/glue/context_menu.h" |
| 52 #include "webkit/glue/webaccessibility.h" | 52 #include "webkit/glue/webaccessibility.h" |
| 53 #include "webkit/glue/webdropdata.h" | 53 #include "webkit/glue/webdropdata.h" |
| 54 | 54 |
| (...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 } | 1301 } |
| 1302 | 1302 |
| 1303 void RenderViewHost::ClearFocusedNode() { | 1303 void RenderViewHost::ClearFocusedNode() { |
| 1304 Send(new ViewMsg_ClearFocusedNode(routing_id())); | 1304 Send(new ViewMsg_ClearFocusedNode(routing_id())); |
| 1305 } | 1305 } |
| 1306 | 1306 |
| 1307 void RenderViewHost::SetZoomLevel(double level) { | 1307 void RenderViewHost::SetZoomLevel(double level) { |
| 1308 Send(new ViewMsg_SetZoomLevel(routing_id(), level)); | 1308 Send(new ViewMsg_SetZoomLevel(routing_id(), level)); |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 void RenderViewHost::Zoom(PageZoom::Function zoom_function) { | 1311 void RenderViewHost::Zoom(content::PageZoom zoom) { |
| 1312 Send(new ViewMsg_Zoom(routing_id(), zoom_function)); | 1312 Send(new ViewMsg_Zoom(routing_id(), zoom)); |
| 1313 } | 1313 } |
| 1314 | 1314 |
| 1315 void RenderViewHost::ReloadFrame() { | 1315 void RenderViewHost::ReloadFrame() { |
| 1316 Send(new ViewMsg_ReloadFrame(routing_id())); | 1316 Send(new ViewMsg_ReloadFrame(routing_id())); |
| 1317 } | 1317 } |
| 1318 | 1318 |
| 1319 void RenderViewHost::Find(int request_id, const string16& search_text, | 1319 void RenderViewHost::Find(int request_id, const string16& search_text, |
| 1320 const WebKit::WebFindOptions& options) { | 1320 const WebKit::WebFindOptions& options) { |
| 1321 Send(new ViewMsg_Find(routing_id(), request_id, search_text, options)); | 1321 Send(new ViewMsg_Find(routing_id(), request_id, search_text, options)); |
| 1322 } | 1322 } |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1496 | 1496 |
| 1497 void RenderViewHost::OnWebUISend(const GURL& source_url, | 1497 void RenderViewHost::OnWebUISend(const GURL& source_url, |
| 1498 const std::string& name, | 1498 const std::string& name, |
| 1499 const base::ListValue& args) { | 1499 const base::ListValue& args) { |
| 1500 delegate_->WebUISend(this, source_url, name, args); | 1500 delegate_->WebUISend(this, source_url, name, args); |
| 1501 } | 1501 } |
| 1502 | 1502 |
| 1503 void RenderViewHost::ClearPowerSaveBlockers() { | 1503 void RenderViewHost::ClearPowerSaveBlockers() { |
| 1504 STLDeleteValues(&power_save_blockers_); | 1504 STLDeleteValues(&power_save_blockers_); |
| 1505 } | 1505 } |
| OLD | NEW |