OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 // Certain GPU features might have been blacklisted. | 454 // Certain GPU features might have been blacklisted. |
455 GpuDataManagerImpl::GetInstance()->UpdateRendererWebPrefs(&prefs); | 455 GpuDataManagerImpl::GetInstance()->UpdateRendererWebPrefs(&prefs); |
456 | 456 |
457 if (ChildProcessSecurityPolicyImpl::GetInstance()->HasWebUIBindings( | 457 if (ChildProcessSecurityPolicyImpl::GetInstance()->HasWebUIBindings( |
458 GetProcess()->GetID())) { | 458 GetProcess()->GetID())) { |
459 prefs.loads_images_automatically = true; | 459 prefs.loads_images_automatically = true; |
460 prefs.javascript_enabled = true; | 460 prefs.javascript_enabled = true; |
461 } | 461 } |
462 | 462 |
463 prefs.is_online = !net::NetworkChangeNotifier::IsOffline(); | 463 prefs.is_online = !net::NetworkChangeNotifier::IsOffline(); |
| 464 prefs.connection_type = net::NetworkChangeNotifier::GetConnectionType(); |
464 | 465 |
465 prefs.gesture_tap_highlight_enabled = !command_line.HasSwitch( | 466 prefs.gesture_tap_highlight_enabled = !command_line.HasSwitch( |
466 switches::kDisableGestureTapHighlight); | 467 switches::kDisableGestureTapHighlight); |
467 | 468 |
468 prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors(); | 469 prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors(); |
469 | 470 |
470 prefs.viewport_meta_enabled = | 471 prefs.viewport_meta_enabled = |
471 command_line.HasSwitch(switches::kEnableViewportMeta); | 472 command_line.HasSwitch(switches::kEnableViewportMeta); |
472 | 473 |
473 prefs.viewport_enabled = | 474 prefs.viewport_enabled = |
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1680 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1681 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1681 | 1682 |
1682 frame_tree->ResetForMainFrameSwap(); | 1683 frame_tree->ResetForMainFrameSwap(); |
1683 } | 1684 } |
1684 | 1685 |
1685 void RenderViewHostImpl::SelectWordAroundCaret() { | 1686 void RenderViewHostImpl::SelectWordAroundCaret() { |
1686 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1687 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1687 } | 1688 } |
1688 | 1689 |
1689 } // namespace content | 1690 } // namespace content |
OLD | NEW |