Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed common.gypi to have default value for enable_viewport Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 const CommandLine& browser_cmd, 617 const CommandLine& browser_cmd,
618 CommandLine* renderer_cmd) const { 618 CommandLine* renderer_cmd) const {
619 // Propagate the following switches to the renderer command line (along 619 // Propagate the following switches to the renderer command line (along
620 // with any associated values) if present in the browser command line. 620 // with any associated values) if present in the browser command line.
621 static const char* const kSwitchNames[] = { 621 static const char* const kSwitchNames[] = {
622 // We propagate the Chrome Frame command line here as well in case the 622 // We propagate the Chrome Frame command line here as well in case the
623 // renderer is not run in the sandbox. 623 // renderer is not run in the sandbox.
624 switches::kAuditAllHandles, 624 switches::kAuditAllHandles,
625 switches::kAuditHandles, 625 switches::kAuditHandles,
626 switches::kChromeFrame, 626 switches::kChromeFrame,
627 switches::kDefaultDeviceScaleFactor,
627 switches::kDisable3DAPIs, 628 switches::kDisable3DAPIs,
628 switches::kDisableAcceleratedCompositing, 629 switches::kDisableAcceleratedCompositing,
629 switches::kDisableApplicationCache, 630 switches::kDisableApplicationCache,
630 switches::kDisableAudio, 631 switches::kDisableAudio,
631 switches::kDisableBreakpad, 632 switches::kDisableBreakpad,
632 #if defined(OS_MACOSX) 633 #if defined(OS_MACOSX)
633 switches::kDisableCompositedCoreAnimationPlugins, 634 switches::kDisableCompositedCoreAnimationPlugins,
634 #endif 635 #endif
635 switches::kDisableDataTransferItems, 636 switches::kDisableDataTransferItems,
636 switches::kDisableDatabases, 637 switches::kDisableDatabases,
(...skipping 10 matching lines...) Expand all
647 switches::kDisableLogging, 648 switches::kDisableLogging,
648 switches::kDisableSeccompSandbox, 649 switches::kDisableSeccompSandbox,
649 switches::kDisableSessionStorage, 650 switches::kDisableSessionStorage,
650 switches::kDisableSharedWorkers, 651 switches::kDisableSharedWorkers,
651 switches::kDisableSpeechInput, 652 switches::kDisableSpeechInput,
652 switches::kDisableWebAudio, 653 switches::kDisableWebAudio,
653 switches::kDisableWebSockets, 654 switches::kDisableWebSockets,
654 switches::kDomAutomationController, 655 switches::kDomAutomationController,
655 switches::kEnableAccessibilityLogging, 656 switches::kEnableAccessibilityLogging,
656 switches::kEnableDCHECK, 657 switches::kEnableDCHECK,
658 switches::kEnableFixedLayout,
657 switches::kEnableGamepad, 659 switches::kEnableGamepad,
658 switches::kEnableGPUServiceLogging, 660 switches::kEnableGPUServiceLogging,
659 switches::kEnableGPUClientLogging, 661 switches::kEnableGPUClientLogging,
660 switches::kEnableLogging, 662 switches::kEnableLogging,
661 switches::kEnableMediaSource, 663 switches::kEnableMediaSource,
662 switches::kEnableMediaStream, 664 switches::kEnableMediaStream,
663 switches::kEnableShadowDOM, 665 switches::kEnableShadowDOM,
664 switches::kEnableStrictSiteIsolation, 666 switches::kEnableStrictSiteIsolation,
665 switches::kDisableFullScreen, 667 switches::kDisableFullScreen,
666 switches::kEnablePepperTesting, 668 switches::kEnablePepperTesting,
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 // Only honor the request if appropriate persmissions are granted. 1292 // Only honor the request if appropriate persmissions are granted.
1291 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1293 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1292 path)) 1294 path))
1293 content::GetContentClient()->browser()->OpenItem(path); 1295 content::GetContentClient()->browser()->OpenItem(path);
1294 } 1296 }
1295 1297
1296 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1298 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1297 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1299 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1298 MHTMLGenerated(job_id, data_size); 1300 MHTMLGenerated(job_id, data_size);
1299 } 1301 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698