| 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_RESTART_MESSAGE_BOX_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_RESTART_MESSAGE_BOX_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_RESTART_MESSAGE_BOX_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_RESTART_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 s/he needs to restart Chrome | 15 // A dialog box that tells the user that s/he needs to restart Chrome |
| 16 // for a change to take effect. | 16 // for a change to take effect. |
| 17 class RestartMessageBox : public views::DialogDelegate { | 17 class RestartMessageBox : 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 13 matching lines...) Expand all Loading... |
| 34 private: | 34 private: |
| 35 explicit RestartMessageBox(gfx::NativeWindow parent_window); | 35 explicit RestartMessageBox(gfx::NativeWindow parent_window); |
| 36 virtual ~RestartMessageBox(); | 36 virtual ~RestartMessageBox(); |
| 37 | 37 |
| 38 MessageBoxView* message_box_view_; | 38 MessageBoxView* message_box_view_; |
| 39 | 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(RestartMessageBox); | 40 DISALLOW_COPY_AND_ASSIGN(RestartMessageBox); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 #endif // CHROME_BROWSER_UI_VIEWS_RESTART_MESSAGE_BOX_H_ | 43 #endif // CHROME_BROWSER_UI_VIEWS_RESTART_MESSAGE_BOX_H_ |
| OLD | NEW |