| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 11 #include "views/window/dialog_delegate.h" | 11 #include "views/window/dialog_delegate.h" |
| 12 | 12 |
| 13 class MessageBoxView; | 13 class MessageBoxView; |
| 14 | 14 |
| 15 // A dialog box that tells the user that an update is recommended in order for | 15 // A dialog box that tells the user that an update is recommended in order for |
| 16 // the latest version to be put to use. | 16 // the latest version to be put to use. |
| 17 class UpdateRecommendedMessageBox : public views::DialogDelegate { | 17 class UpdateRecommendedMessageBox : public views::DialogDelegate { |
| 18 public: | 18 public: |
| 19 // This box is modal to |parent_window|. | 19 // This box is modal to |parent_window|. |
| 20 static void ShowMessageBox(gfx::NativeWindow parent_window); | 20 static void ShowMessageBox(gfx::NativeWindow parent_window); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 37 private: | 37 private: |
| 38 explicit UpdateRecommendedMessageBox(gfx::NativeWindow parent_window); | 38 explicit UpdateRecommendedMessageBox(gfx::NativeWindow parent_window); |
| 39 virtual ~UpdateRecommendedMessageBox(); | 39 virtual ~UpdateRecommendedMessageBox(); |
| 40 | 40 |
| 41 MessageBoxView* message_box_view_; | 41 MessageBoxView* message_box_view_; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(UpdateRecommendedMessageBox); | 43 DISALLOW_COPY_AND_ASSIGN(UpdateRecommendedMessageBox); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_UI_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_ | 46 #endif // CHROME_BROWSER_UI_VIEWS_UPDATE_RECOMMENDED_MESSAGE_BOX_H_ |
| OLD | NEW |