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

Side by Side Diff: content/app/content_main_runner.cc

Issue 11953054: Fix high-DPI on Windows to make use of DIP scaling in WebKit. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove redundant comments. Created 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.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 #include "content/public/app/content_main_runner.h" 5 #include "content/public/app/content_main_runner.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/allocator/allocator_extension.h" 9 #include "base/allocator/allocator_extension.h"
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 delegate->ProcessRegistersWithSystemProcess(process_type))) { 653 delegate->ProcessRegistersWithSystemProcess(process_type))) {
654 base::SystemMonitor::AllocateSystemIOPorts(); 654 base::SystemMonitor::AllocateSystemIOPorts();
655 } 655 }
656 656
657 if (!process_type.empty() && 657 if (!process_type.empty() &&
658 (!delegate || delegate->ShouldSendMachPort(process_type))) { 658 (!delegate || delegate->ShouldSendMachPort(process_type))) {
659 SendTaskPortToParentProcess(); 659 SendTaskPortToParentProcess();
660 } 660 }
661 #elif defined(OS_WIN) 661 #elif defined(OS_WIN)
662 // This must be done early enough since some helper functions like 662 // This must be done early enough since some helper functions like
663 // IsTouchEnanbled, needed to load resources, may call into the theme dll. 663 // IsTouchEnabled, needed to load resources, may call into the theme dll.
664 EnableThemeSupportOnAllWindowStations(); 664 EnableThemeSupportOnAllWindowStations();
665 #if defined(ENABLE_HIDPI) 665 #if defined(ENABLE_HIDPI)
666 ui::EnableHighDPISupport(); 666 ui::EnableHighDPISupport();
667 #endif 667 #endif
668 SetupCRT(command_line); 668 SetupCRT(command_line);
669 #endif 669 #endif
670 670
671 #if defined(OS_POSIX) 671 #if defined(OS_POSIX)
672 if (!process_type.empty()) { 672 if (!process_type.empty()) {
673 // When you hit Ctrl-C in a terminal running the browser 673 // When you hit Ctrl-C in a terminal running the browser
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 812
813 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 813 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
814 }; 814 };
815 815
816 // static 816 // static
817 ContentMainRunner* ContentMainRunner::Create() { 817 ContentMainRunner* ContentMainRunner::Create() {
818 return new ContentMainRunnerImpl(); 818 return new ContentMainRunnerImpl();
819 } 819 }
820 820
821 } // namespace content 821 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698