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

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

Issue 435383002: adds WARP support to Chromium, for Metro mode only, on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move kViewerConnect Created 6 years, 3 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
« ui/gl/gl_surface_win.cc ('K') | « ui/gl/gl_switches.cc ('k') | no next file » | 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 // 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 10 matching lines...) Expand all
21 #include "base/win/scoped_process_information.h" 21 #include "base/win/scoped_process_information.h"
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/gfx/win/dpi.h" 32 #include "ui/gfx/win/dpi.h"
32 #include "win8/delegate_execute/chrome_util.h" 33 #include "win8/delegate_execute/chrome_util.h"
33 #include "win8/delegate_execute/delegate_execute_util.h" 34 #include "win8/delegate_execute/delegate_execute_util.h"
34 #include "win8/viewer/metro_viewer_constants.h" 35 #include "win8/viewer/metro_viewer_constants.h"
35 36
36 namespace { 37 namespace {
37 // Helper function to retrieve the url from IShellItem interface passed in. 38 // Helper function to retrieve the url from IShellItem interface passed in.
38 // Returns S_OK on success. 39 // Returns S_OK on success.
39 HRESULT GetUrlFromShellItem(IShellItem* shell_item, base::string16* url) { 40 HRESULT GetUrlFromShellItem(IShellItem* shell_item, base::string16* url) {
40 DCHECK(shell_item); 41 DCHECK(shell_item);
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 AtlTrace("Invalid registry launch mode value %u\n", reg_value); 495 AtlTrace("Invalid registry launch mode value %u\n", reg_value);
495 launch_mode = ECHUIM_DESKTOP; 496 launch_mode = ECHUIM_DESKTOP;
496 } else { 497 } else {
497 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value); 498 launch_mode = static_cast<EC_HOST_UI_MODE>(reg_value);
498 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]);
499 } 500 }
500 501
501 launch_mode_determined = true; 502 launch_mode_determined = true;
502 return launch_mode; 503 return launch_mode;
503 } 504 }
OLDNEW
« ui/gl/gl_surface_win.cc ('K') | « ui/gl/gl_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698