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

Unified Diff: win8/metro_driver/metro_dialog_box.h

Issue 1815463002: Remove win8/metro_driver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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/ime/text_store_delegate.h ('k') | win8/metro_driver/metro_dialog_box.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/metro_dialog_box.h
diff --git a/win8/metro_driver/metro_dialog_box.h b/win8/metro_driver/metro_dialog_box.h
deleted file mode 100644
index a8ee5b6604e491f209877d90964f68204236d726..0000000000000000000000000000000000000000
--- a/win8/metro_driver/metro_dialog_box.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// 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_METRO_DIALOG_BOX_H_
-#define CHROME_BROWSER_UI_METRO_DRIVER_METRO_DIALOG_BOX_H_
-
-#include <windows.ui.popups.h>
-#include <string>
-
-#include "base/logging.h"
-#include "base/memory/ref_counted.h"
-#include "base/win/metro.h"
-
-// Provides functionality to display a dialog box
-class MetroDialogBox : public winui::Popups::IUICommandInvokedHandler {
- public:
- struct DialogBoxInfo {
- base::string16 title;
- base::string16 content;
- base::string16 button1_label;
- base::string16 button2_label;
- base::win::MetroDialogButtonPressedHandler button1_handler;
- base::win::MetroDialogButtonPressedHandler button2_handler;
- };
-
- MetroDialogBox();
- ~MetroDialogBox();
-
- // Displays the dialog box.
- void Show(const DialogBoxInfo& dialog_box_info);
-
- // Dismisses the dialog box.
- void Dismiss();
-
- // IUICommandInvokedHandler implementation.
- // Dummy implementation of IUnknown. This is fine as the lifetime of this
- // class is tied to the lifetime of the ChromeAppView instance.
- virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void** object) {
- DVLOG(1) << __FUNCTION__;
- CHECK(false);
- return E_NOINTERFACE;
- }
-
- virtual ULONG STDMETHODCALLTYPE AddRef(void) {
- DVLOG(1) << __FUNCTION__;
- return 1;
- }
-
- virtual ULONG STDMETHODCALLTYPE Release(void) {
- DVLOG(1) << __FUNCTION__;
- return 1;
- }
-
- virtual HRESULT STDMETHODCALLTYPE Invoke(winui::Popups::IUICommand* command);
-
- private:
- // The actual dialog box.
- mswr::ComPtr<winui::Popups::IMessageDialog> dialog_box_;
- DialogBoxInfo dialog_box_info_;
-};
-
-#endif // CHROME_BROWSER_UI_METRO_DRIVER_METRO_DIALOG_BOX_H_
-
« no previous file with comments | « win8/metro_driver/ime/text_store_delegate.h ('k') | win8/metro_driver/metro_dialog_box.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698