summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/update_recommended_message_box.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/update_recommended_message_box.h')
-rw-r--r--chrome/browser/views/update_recommended_message_box.h43
1 files changed, 5 insertions, 38 deletions
diff --git a/chrome/browser/views/update_recommended_message_box.h b/chrome/browser/views/update_recommended_message_box.h
index 033dc01..a5f589e 100644
--- a/chrome/browser/views/update_recommended_message_box.h
+++ b/chrome/browser/views/update_recommended_message_box.h
@@ -2,45 +2,12 @@
// 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_
+#ifndef CHROME_BROWSER_UPDATE_RECOMMENDED_MESSAGE_BOX_H_
+#define CHROME_BROWSER_UPDATE_RECOMMENDED_MESSAGE_BOX_H_
#pragma once
-#include "base/basictypes.h"
-#include "gfx/native_widget_types.h"
-#include "views/window/dialog_delegate.h"
+#include "chrome/browser/ui/views/update_recommended_message_box.h"
+// TODO(beng): remove this file once all includes have been updated.
-class MessageBoxView;
+#endif // CHROME_BROWSER_UPDATE_RECOMMENDED_MESSAGE_BOX_H_
-// 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);
-
- // 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_