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

Unified Diff: chrome/browser/views/update_recommended_message_box.h

Issue 2225003: Implement upgrade notifications.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
Index: chrome/browser/views/update_recommended_message_box.h
===================================================================
--- chrome/browser/views/update_recommended_message_box.h (revision 0)
+++ chrome/browser/views/update_recommended_message_box.h (revision 0)
@@ -0,0 +1,49 @@
+// Copyright (c) 2010 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_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_
+#define CHROME_BROWSER_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_
+
+#include "base/basictypes.h"
+#include "gfx/native_widget_types.h"
+#include "views/window/dialog_delegate.h"
+
+class MessageBoxView;
+class PrefService;
+
+// A dialog box that tells the user that an update is recommended in order for
+// the latest version to be put to use.
+class UpdateRecommendedMessageBox : public views::DialogDelegate {
+ public:
+ // This box is modal to |parent_window|.
+ static void ShowMessageBox(gfx::NativeWindow parent_window);
+
+ // Register preferences specific to this view.
+ static void RegisterUpdateRecommendedPrefs(PrefService* prefs);
+
+ // Overridden from views::DialogDelegate:
+ virtual bool Accept();
+
+ protected:
+ // Overridden from views::DialogDelegate:
+ virtual int GetDialogButtons() const;
+ virtual std::wstring GetDialogButtonLabel(
+ MessageBoxFlags::DialogButton button) const;
+ virtual std::wstring GetWindowTitle() const;
+
+ // Overridden from views::WindowDelegate:
+ virtual void DeleteDelegate();
+ virtual bool IsModal() const;
+ virtual views::View* GetContentsView();
+
+ private:
+ explicit UpdateRecommendedMessageBox(gfx::NativeWindow parent_window);
+ virtual ~UpdateRecommendedMessageBox();
+
+ MessageBoxView* message_box_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(UpdateRecommendedMessageBox);
+};
+
+#endif // CHROME_BROWSER_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_
Property changes on: chrome\browser\views\update_recommended_message_box.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698