diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-07 19:17:08 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-07 19:17:08 +0000 |
commit | 5b963d0f04a1e4baf5bf9a371890bbb698520f7d (patch) | |
tree | 9c020c289fa550d28b6b67789ee199a77ef759fb /win8/delegate_execute/delegate_execute_operation.h | |
parent | d13928d51c251bdcc76b961c1ad8bb9339da9917 (diff) | |
download | chromium_src-5b963d0f04a1e4baf5bf9a371890bbb698520f7d.zip chromium_src-5b963d0f04a1e4baf5bf9a371890bbb698520f7d.tar.gz chromium_src-5b963d0f04a1e4baf5bf9a371890bbb698520f7d.tar.bz2 |
Integrate the Windows 8 code into the Chromium tree (take 2).
This time, also: fix invalid path in metro_driver.gyp. Also, set executable bit on check_sdk_patch.py and post_build.bat.
This reverts "Revert 155429 - Integrate the Windows 8 code into the Chromium tree."
Original CL: https://chromiumcodereview.appspot.com/10875008
BUG=127799
TEST=A Chromium build can run as the immersive browser on Windows 8.
TBR=ben
Review URL: https://chromiumcodereview.appspot.com/10912152
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8/delegate_execute/delegate_execute_operation.h')
-rw-r--r-- | win8/delegate_execute/delegate_execute_operation.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/win8/delegate_execute/delegate_execute_operation.h b/win8/delegate_execute/delegate_execute_operation.h new file mode 100644 index 0000000..59acfd7a --- /dev/null +++ b/win8/delegate_execute/delegate_execute_operation.h @@ -0,0 +1,52 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ +#define WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ + +#include <atldef.h> + +#include "base/basictypes.h" +#include "base/file_path.h" + +class CommandLine; + +namespace delegate_execute { + +// Parses a portion of the DelegateExecute handler's command line to determine +// the desired operation. +class DelegateExecuteOperation { + public: + enum OperationType { + EXE_MODULE, + RELAUNCH_CHROME, + }; + + DelegateExecuteOperation(); + ~DelegateExecuteOperation(); + + void Initialize(const CommandLine* command_line); + + OperationType operation_type() const { + return operation_type_; + } + + // Returns the argument to the --relaunch-shortcut switch. Valid only when + // the operation is RELAUNCH_CHROME. + const FilePath& relaunch_shortcut() const { + ATLASSERT(operation_type_ == RELAUNCH_CHROME); + return relaunch_shortcut_; + } + + private: + void Clear(); + + OperationType operation_type_; + FilePath relaunch_shortcut_; + DISALLOW_COPY_AND_ASSIGN(DelegateExecuteOperation); +}; + +} // namespace delegate_execute + +#endif // WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ |