Infobar material design refresh: layout
[chromium-blink-merge.git] / chrome / browser / ui / views / update_recommended_message_box.h
blob92b5d1f90fc35a6d261751f28a8c3d54a552116b
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_
6 #define CHROME_BROWSER_UI_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_
8 #include "base/basictypes.h"
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/views/window/dialog_delegate.h"
12 namespace views {
13 class MessageBoxView;
16 // A dialog box that tells the user that an update is recommended in order for
17 // the latest version to be put to use.
18 class UpdateRecommendedMessageBox : public views::DialogDelegate {
19 public:
20 static void Show(gfx::NativeWindow parent_window);
22 private:
23 UpdateRecommendedMessageBox();
24 ~UpdateRecommendedMessageBox() override;
26 // Overridden from views::DialogDelegate:
27 bool Accept() override;
28 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
30 // Overridden from views::WidgetDelegate:
31 bool ShouldShowWindowTitle() const override;
32 base::string16 GetWindowTitle() const override;
33 void DeleteDelegate() override;
34 ui::ModalType GetModalType() const override;
35 views::View* GetContentsView() override;
36 views::Widget* GetWidget() override;
37 const views::Widget* GetWidget() const override;
39 views::MessageBoxView* message_box_view_;
41 DISALLOW_COPY_AND_ASSIGN(UpdateRecommendedMessageBox);
44 #endif // CHROME_BROWSER_UI_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_