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

Unified Diff: ui/yes_no_dialog.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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 | « ui/uilib/static_line.cc ('k') | ui/yes_no_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/yes_no_dialog.h
diff --git a/ui/yes_no_dialog.h b/ui/yes_no_dialog.h
deleted file mode 100644
index 97214d9a8a737a695485f7ee391ca9b3b95ac549..0000000000000000000000000000000000000000
--- a/ui/yes_no_dialog.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// Copyright 2011 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-#ifndef OMAHA_UI_YES_NO_DIALOG_H_
-#define OMAHA_UI_YES_NO_DIALOG_H_
-
-#include "omaha/base/scoped_any.h"
-#include "omaha/base/wtl_atlapp_wrapper.h"
-#include "omaha/client/resource.h"
-
-namespace omaha {
-
-class YesNoDialog
- : public CAxDialogImpl<YesNoDialog>,
- public CMessageFilter {
- typedef CAxDialogImpl<YesNoDialog> Base;
-
- public:
- static const int IDD = IDD_YES_NO;
-
- YesNoDialog(CMessageLoop* message_loop, HWND parent);
- ~YesNoDialog();
-
- HRESULT Initialize(const CString& yes_no_title,
- const CString& yes_no_text);
- HRESULT Show();
-
- bool yes_clicked() const {
- return yes_clicked_;
- }
-
- // CMessageFilter interface method.
- BOOL PreTranslateMessage(MSG* msg) {
- return CWindow::IsDialogMessage(msg);
- }
-
- BEGIN_MSG_MAP(YesNoDialog)
- COMMAND_HANDLER(IDOK, BN_CLICKED, OnClickedButton)
- COMMAND_ID_HANDLER(IDCANCEL, OnClickedButton)
- MESSAGE_HANDLER(WM_CLOSE, OnClose)
- MESSAGE_HANDLER(WM_NCDESTROY, OnNCDestroy)
- CHAIN_MSG_MAP(Base)
- END_MSG_MAP()
-
- private:
- // Message and command handlers.
- LRESULT OnClickedButton(WORD notify_code,
- WORD id,
- HWND wnd_ctl,
- BOOL& handled); // NOLINT(runtime/references)
- LRESULT OnClose(UINT msg,
- WPARAM wparam,
- LPARAM lparam,
- BOOL& handled); // NOLINT(runtime/references)
- LRESULT OnNCDestroy(UINT msg,
- WPARAM wparam,
- LPARAM lparam,
- BOOL& handled); // NOLINT(runtime/references)
-
- CMessageLoop* message_loop_;
- HWND parent_;
- bool yes_clicked_;
-
- // Handle to large icon to show when ALT-TAB.
- scoped_hicon hicon_;
-
- DISALLOW_COPY_AND_ASSIGN(YesNoDialog);
-};
-
-} // namespace omaha
-
-#endif // OMAHA_UI_YES_NO_DIALOG_H_
-
« no previous file with comments | « ui/uilib/static_line.cc ('k') | ui/yes_no_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698