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

Side by Side Diff: win8/metro_driver/settings_handler.h

Issue 10875008: Integrate the Windows 8 code into the Chromium tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove conflicting OWNERS file. Created 8 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
« no previous file with comments | « win8/metro_driver/secondary_tile.cc ('k') | win8/metro_driver/settings_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_METRO_DRIVER_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_METRO_DRIVER_SETTINGS_HANDLER_H_
7
8 #include <windows.ui.applicationsettings.h>
9 #include <windows.ui.popups.h>
10
11 #include "winrt_utils.h"
12
13 // This class handles the settings charm.
14 class SettingsHandler {
15 public:
16 SettingsHandler();
17 ~SettingsHandler();
18
19 HRESULT Initialize();
20
21 private:
22 typedef winfoundtn::Collections::IVector<
23 winui::ApplicationSettings::SettingsCommand*> ISettingsCommandVector;
24
25 HRESULT OnSettingsCommandsRequested(
26 winui::ApplicationSettings::ISettingsPane* settings_pane,
27 winui::ApplicationSettings::
28 ISettingsPaneCommandsRequestedEventArgs* args);
29
30 HRESULT AppendNewSettingsCommand(
31 const wchar_t* id,
32 const wchar_t* name,
33 winui::ApplicationSettings::ISettingsCommandFactory*
34 settings_command_factory,
35 ISettingsCommandVector* settings_command_vector);
36
37 static HRESULT OnSettings(winui::Popups::IUICommand* command);
38 static HRESULT GetSettingsId(const wchar_t* value,
39 winfoundtn::IPropertyValue** settings_id);
40
41 EventRegistrationToken settings_token_;
42 };
43
44 #endif // CHROME_BROWSER_UI_METRO_DRIVER_SETTINGS_HANDLER_H_
OLDNEW
« no previous file with comments | « win8/metro_driver/secondary_tile.cc ('k') | win8/metro_driver/settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698