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

Side by Side Diff: win8/delegate_execute/command_execute_impl.cc

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants Created 6 years, 1 month 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
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 // Implementation of the CommandExecuteImpl class which implements the 4 // Implementation of the CommandExecuteImpl class which implements the
5 // IExecuteCommand and related interfaces for handling ShellExecute based 5 // IExecuteCommand and related interfaces for handling ShellExecute based
6 // launches of the Chrome browser. 6 // launches of the Chrome browser.
7 7
8 #include "win8/delegate_execute/command_execute_impl.h" 8 #include "win8/delegate_execute/command_execute_impl.h"
9 9
10 #include <shlguid.h> 10 #include <shlguid.h>
(...skipping 11 matching lines...) Expand all
22 #include "base/win/win_util.h" 22 #include "base/win/win_util.h"
23 #include "chrome/common/chrome_constants.h" 23 #include "chrome/common/chrome_constants.h"
24 #include "chrome/common/chrome_paths.h" 24 #include "chrome/common/chrome_paths.h"
25 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
26 #include "chrome/installer/util/browser_distribution.h" 26 #include "chrome/installer/util/browser_distribution.h"
27 #include "chrome/installer/util/install_util.h" 27 #include "chrome/installer/util/install_util.h"
28 #include "chrome/installer/util/shell_util.h" 28 #include "chrome/installer/util/shell_util.h"
29 #include "chrome/installer/util/util_constants.h" 29 #include "chrome/installer/util/util_constants.h"
30 #include "ui/base/clipboard/clipboard_util_win.h" 30 #include "ui/base/clipboard/clipboard_util_win.h"
31 #include "ui/base/ui_base_switches.h" 31 #include "ui/base/ui_base_switches.h"
32 #include "ui/gfx/win/dpi.h"
33 #include "win8/delegate_execute/chrome_util.h" 32 #include "win8/delegate_execute/chrome_util.h"
34 #include "win8/delegate_execute/delegate_execute_util.h" 33 #include "win8/delegate_execute/delegate_execute_util.h"
35 #include "win8/viewer/metro_viewer_constants.h" 34 #include "win8/viewer/metro_viewer_constants.h"
36 35
37 namespace { 36 namespace {
38 // Helper function to retrieve the url from IShellItem interface passed in. 37 // Helper function to retrieve the url from IShellItem interface passed in.
39 // Returns S_OK on success. 38 // Returns S_OK on success.
40 HRESULT GetUrlFromShellItem(IShellItem* shell_item, base::string16* url) { 39 HRESULT GetUrlFromShellItem(IShellItem* shell_item, base::string16* url) {
41 DCHECK(shell_item); 40 DCHECK(shell_item);
42 DCHECK(url); 41 DCHECK(url);
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 AtlTrace("Invalid registry launch mode value %u\n", reg_value); 495 AtlTrace("Invalid registry launch mode value %u\n", reg_value);
497 launch_mode = ECHUIM_DESKTOP; 496 launch_mode = ECHUIM_DESKTOP;
498 } else { 497 } else {
499 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value); 498 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value);
500 AtlTrace("Launch mode forced by registry to %s\n", modes[launch_mode]); 499 AtlTrace("Launch mode forced by registry to %s\n", modes[launch_mode]);
501 } 500 }
502 501
503 launch_mode_determined = true; 502 launch_mode_determined = true;
504 return launch_mode; 503 return launch_mode;
505 } 504 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698