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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « win8/metro_driver/secondary_tile.cc ('k') | win8/metro_driver/settings_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/settings_handler.h
diff --git a/win8/metro_driver/settings_handler.h b/win8/metro_driver/settings_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..5b234ad12e1d2a7aa08b328e81faf094f6034336
--- /dev/null
+++ b/win8/metro_driver/settings_handler.h
@@ -0,0 +1,44 @@
+// 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 CHROME_BROWSER_UI_METRO_DRIVER_SETTINGS_HANDLER_H_
+#define CHROME_BROWSER_UI_METRO_DRIVER_SETTINGS_HANDLER_H_
+
+#include <windows.ui.applicationsettings.h>
+#include <windows.ui.popups.h>
+
+#include "winrt_utils.h"
+
+// This class handles the settings charm.
+class SettingsHandler {
+ public:
+ SettingsHandler();
+ ~SettingsHandler();
+
+ HRESULT Initialize();
+
+ private:
+ typedef winfoundtn::Collections::IVector<
+ winui::ApplicationSettings::SettingsCommand*> ISettingsCommandVector;
+
+ HRESULT OnSettingsCommandsRequested(
+ winui::ApplicationSettings::ISettingsPane* settings_pane,
+ winui::ApplicationSettings::
+ ISettingsPaneCommandsRequestedEventArgs* args);
+
+ HRESULT AppendNewSettingsCommand(
+ const wchar_t* id,
+ const wchar_t* name,
+ winui::ApplicationSettings::ISettingsCommandFactory*
+ settings_command_factory,
+ ISettingsCommandVector* settings_command_vector);
+
+ static HRESULT OnSettings(winui::Popups::IUICommand* command);
+ static HRESULT GetSettingsId(const wchar_t* value,
+ winfoundtn::IPropertyValue** settings_id);
+
+ EventRegistrationToken settings_token_;
+};
+
+#endif // CHROME_BROWSER_UI_METRO_DRIVER_SETTINGS_HANDLER_H_
« 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